test
Viewing 15 posts - 1 through 15 (of 31 total)
  • Author
    Posts
  • bruces Friend
    #155524

    Hi, after you so successfully fixed our problem with IE7/8 support, I’m hoping you can help with this one.

    We have a Section blog layout at our site which is exhibiting a strange problem which appears to be related to the JA_Ruby template.

    The problem is that if we add an image to any article in that Section, that image appears in a strange black box in the Section blog layout — even if the image is placed after the Read More separator.

    If you scroll down to the last item in the Section blog layout, you’ll see the problem. That image is placed at the end of the article, not before the Read More separator.

    When we temporarily remove the HTML folder in the JA_Ruby template, the problem goes away immediately (but it also breaks our formatting).

    Is there a fix for this? We really would like to use images in articles but not have them appear in the Blog layout.

    Thanks.

    aman204 Friend
    #359894

    Try decrease thumbnail width for images in parameters of JA thumbnail plugin

    bruces Friend
    #359897

    Sorry, where would I find this plugin you mention? I have nothing of that name in my JA_Ruby / Joomla install.

    aman204 Friend
    #359900

    Will it be possible for you to please pm me superadmin details to take closer look

    aman204 Friend
    #360058

    You can try out this::

    Go to templates/ja_ruby/html/com_content/category/blog_item.php and remove this reference::

    <div class=”img-desc clearfix”>
    <?php echo $image; ?>
    </div>

    bruces Friend
    #360066

    This certainly appears to fix the problem for images inserted after the Read More break, but it does not show images in the Category Blog page that are inserted before the Read More break of an article.

    bruces Friend
    #360073

    In addition, I was comparing the code for com_content/section/blog.php on my site with the same code in the latest JA_Ruby download, and noticed the following fragments are different. Should I use the new fragments in my site?

    ——————–
    Sample A: Old:


    <?php if ($this->params->get('show_description_image') && $this->category->image) : ?>
    <img src="<?php echo $this->baseurl . $cparams->get('image_path') . '/' . $this->category->image; ?>" class="image_<?php echo $this->category->image_position; ?>" />

    Sample A: New: (the word SECTION is used instead of CATEGORY)


    <?php if ($this->params->get('show_description_image') && $this->section->image) : ?>
    <img src="<?php echo $this->baseurl . $cparams->get('image_path') . '/' . $this->section->image; ?>" class="image_<?php echo $this->section->image_position; ?>" />

    ——————–

    Sample B: Old:


    <?php if ($this->params->get('show_description') && $this->category->description) :
    echo $this->category->description;

    Sample B: New: (the word SECTION is used instead of CATEGORY)


    <?php if ($this->params->get('show_description') && $this->section->description) :
    echo $this->section->description;

    ——————–

    Sample C: Old:


    <?php if ($this->params->get('show_description_image') && $this->category->image) : ?>
    <div class="wrap_image"> </div>
    <?php endif; ?>

    Sample C: New: (the word SECTION is used instead of CATEGORY)


    <?php if ($this->params->get('show_description_image') && $this->section->image) : ?>
    <div class="wrap_image"> </div>
    <?php endif; ?>

    aman204 Friend
    #360148

    Sorry but I am not that familar with php tags. Probably, Someone else would be help you fine with this 🙂

    Phill Moderator
    #360164

    As you probably have realised, the JA Thumbnail plgin is an enhancement only on later templates from Teline III onwards. Before that Image resizing was don in the template overides. The template overides in Ruby add various styling and layouts to different parts of the page. I’ve just installed Ruby and am looking at the section blog layout but cannot work out what you mean by black box. Are you talking about the border it puts around each image?

    Currently your page is down so it is hard for me to take a look.

    bruces Friend
    #360172

    Sorry guys, my mentioning the black box has thrown everyone off the real issue.

    This is nothing to do with black boxes; I’m sorry I mentioned it.

    If you create an article in Joomla containing images, and have a Category Blog page where you want to show the article headline and introduction, but NOT any images that appear in the main article, JA_Ruby does not let you do it.

    Read that again: You have an article containing some images. You want the article headline and intro to appear in a Category Blog page, but you don’t want any of the article images cluttering the Category Blog page. You can’t do that in JA_Ruby. Do you get what I mean?

    If I add an image to an article BEFORE the Read More separator, it SHOULD appear in the Category Blog page. If I add an image to an article AFTER the Read More separator, it should NOT appear in the Category Blog page. This simple logic is not supported by JA_Ruby.

    This is the issue I’m trying to get your help on.

    aman204 Friend
    #360187

    Please try out this::

    Go to the same file as specified above and change this code snippet ::

    <div class=”img-desc clearfix”>
    <?php echo $image; ?>
    </div>

    <div class=”ja-article-content”>
    <?php echo $this->item->text; ?>
    </div>

    <table><tr>
    <td valign=”top” colspan=”2″>
    <?php if (isset ($this->item->toc)) : ?>
    <?php echo $this->item->toc; ?>
    <?php endif; ?>
    <div class=”ja-article-content”>
    <?php echo $this->item->text; ?>
    </div>
    </td>
    </tr></table>

    bruces Friend
    #360435

    Hmmm… that snippet does not occur in even the JA_Ruby 1.0.1 master download I have here.

    The closest I see is:

    <div class="img-desc clearfix">
    <?php echo $image; ?>
    </div>

    <div class="ja-article-content">
    <?php echo JFilterOutput::ampReplace($this->item->text); ?>
    </div>


    By the way: on this page on our site I have specially added two images: one is before the Read More break, one is after. If everything is functioning correctly, I would expect the first image to appear in the Category Blog layout page and the second image to not appear there.

    Phill Moderator
    #360438

    This is down to the way the PHP is processing all the images in that particular layout. I got a little confused at first as you were speaking of the Section layout not the Category layout.

    This is how this particular layout was designed to work.

    bruces Friend
    #360635

    OK, just so I understand the final word on this: Are you saying the JA_Ruby template is designed so that in the Category or Section Blog views, any images present in the articles making up those views are not meant to be seen, whether they are before or after the Read More break?

    I was wondering how you got demo layout, which appears to be a demo Category Blog with images… — http://www.joomlart.com/demo/#templates.joomlart.com/ja_ruby — when you click the Layouts menu.

    bruces Friend
    #360907

    Hello? Anybody there at Joomlart? I would really appreciate a simple answer to my question posted above 2 days ago. Thanks.

Viewing 15 posts - 1 through 15 (of 31 total)

This topic contains 31 replies, has 4 voices, and was last updated by  Saguaros 14 years, 1 month ago.

We moved to new unified forum. Please post all new support queries in our New Forum