-
AuthorPosts
-
October 21, 2010 at 4:07 pm #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 Friendaman204
- Join date:
- January 2010
- Posts:
- 1945
- Downloads:
- 0
- Uploads:
- 43
- Thanks:
- 11
- Thanked:
- 418 times in 356 posts
October 21, 2010 at 6:02 pm #359894Try decrease thumbnail width for images in parameters of JA thumbnail plugin
October 21, 2010 at 6:18 pm #359897Sorry, where would I find this plugin you mention? I have nothing of that name in my JA_Ruby / Joomla install.
aman204 Friendaman204
- Join date:
- January 2010
- Posts:
- 1945
- Downloads:
- 0
- Uploads:
- 43
- Thanks:
- 11
- Thanked:
- 418 times in 356 posts
October 21, 2010 at 6:23 pm #359900Will it be possible for you to please pm me superadmin details to take closer look
aman204 Friendaman204
- Join date:
- January 2010
- Posts:
- 1945
- Downloads:
- 0
- Uploads:
- 43
- Thanks:
- 11
- Thanked:
- 418 times in 356 posts
October 22, 2010 at 9:45 am #360058You 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>October 22, 2010 at 10:25 am #360066This 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.
October 22, 2010 at 10:47 am #360073In 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 Friendaman204
- Join date:
- January 2010
- Posts:
- 1945
- Downloads:
- 0
- Uploads:
- 43
- Thanks:
- 11
- Thanked:
- 418 times in 356 posts
October 22, 2010 at 6:56 pm #360148Sorry but I am not that familar with php tags. Probably, Someone else would be help you fine with this 🙂
Phill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
October 22, 2010 at 8:39 pm #360164As 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.
October 23, 2010 at 1:10 am #360172Sorry 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 Friendaman204
- Join date:
- January 2010
- Posts:
- 1945
- Downloads:
- 0
- Uploads:
- 43
- Thanks:
- 11
- Thanked:
- 418 times in 356 posts
October 23, 2010 at 7:42 am #360187Please 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>October 25, 2010 at 9:50 am #360435Hmmm… 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 ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
October 25, 2010 at 10:05 am #360438This 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.
October 26, 2010 at 3:05 pm #360635OK, 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.
-
AuthorPosts
This topic contains 31 replies, has 4 voices, and was last updated by Saguaros 14 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum