-
AuthorPosts
-
toloekka Friend
toloekka
- Join date:
- September 2007
- Posts:
- 117
- Downloads:
- 168
- Uploads:
- 35
- Thanks:
- 6
- Thanked:
- 7 times in 1 posts
November 5, 2011 at 8:05 pm #423363Thanks once again n6rej. 🙂
Take your time and the day off, you have helped me on the way already. Maybe you can look into this a bit later and I think we are close now. It must be a solution for Category Blog Layout also I think, when it works for Section Blog Layout, Front Page Blog Layout and for Single Article Layout……
But I have tried this in the blog_item.php file.
If I delete line 28 in this file:<div class="article-image">
it pushes left and right colums down below the main content again (only in Category Blog Layout for Menu Item “Om oss”).
and if I delete line 27 to 31:
<?php if ($image) : ?>
<div class="article-image">
<?php echo $image ?>
</div>
<?php endif; ?>there will be no image at all.
If I delete line 18 to 26:
<?php
//get images
$regex = '#<img[^>]*>#';
$image = '';
if (preg_match ($regex, $this->item->text, $matches)) {
$image = $matches[0];
$this->item->text = str_replace ($image, '', $this->item->text);
}
?>It seems to OK. But is this a safe way to do it? Do I break up something else and will this give some other problems?
If I delete the hole blog_item.php file, it also seems to be OK. But I cannot just delete that file???
I have not done any testing in the blog.php file. Deleting this file did not show me any effect.
PS! I have done all my testing localy, so the testsite http://www.english.safarimgm.com is still Default regarding php and css files. I can give you login to that site if you want.
Tom Løkka
toloekka Friendtoloekka
- Join date:
- September 2007
- Posts:
- 117
- Downloads:
- 168
- Uploads:
- 35
- Thanks:
- 6
- Thanked:
- 7 times in 1 posts
November 8, 2011 at 8:11 pm #423718Do you have any comments on this n6rej, or maybe someone else?
Tom Løkka:)
Phill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
November 8, 2011 at 8:41 pm #423721Deleting lines 18 to 26 is fine but you should also be able to get rid of line 27-31 at the same time. That way you will have a clean sheet with regards to images.
toloekka Friendtoloekka
- Join date:
- September 2007
- Posts:
- 117
- Downloads:
- 168
- Uploads:
- 35
- Thanks:
- 6
- Thanked:
- 7 times in 1 posts
November 8, 2011 at 8:59 pm #423723OK Phill. 🙂
I now also deleted line 27-31.
<?php if ($image) : ?>
<div class="article-image">
<?php echo $image ?>
</div>
<?php endif; ?>It still looks fine and I hope it will continue with that.
Thanks!
Tom LøkkaPhill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
November 8, 2011 at 9:23 pm #423724Yep it will. That returns the setup to the default Joomla way of doing images with none of the JA overrides in place.
The overrides are good for basic users who want everything in a uniform style but some users want more control. Developer members and JAEC members have access to the JA Thumbnail plugin that adds this sort of functionality in a more user controlled way from the Joomla back end. For those users this bit of code is overriden by the plugin.
1 user says Thank You to Phill for this useful post
toloekka Friendtoloekka
- Join date:
- September 2007
- Posts:
- 117
- Downloads:
- 168
- Uploads:
- 35
- Thanks:
- 6
- Thanked:
- 7 times in 1 posts
November 8, 2011 at 10:15 pm #423730Thanks again. 🙂
Maybe I also should be a JAEC member – hmmmm? I will have a look at the extension for the JAEC Club and see if there are many extension that is interesting.
Tom Løkka
designorama Frienddesignorama
- Join date:
- June 2011
- Posts:
- 26
- Downloads:
- 37
- Uploads:
- 0
- Thanks:
- 3
- Thanked:
- 1 times in 1 posts
December 20, 2011 at 4:36 am #430459I didn’t want the images at all on the front page so on the template.css (JA_community Plus) I added display:none; on the code.
Like that:
div.article-image {
display: none;
float: left;
margin: 10px 20px 0 0;
width: 105px;
} -
AuthorPosts
This topic contains 37 replies, has 6 voices, and was last updated by designorama 12 years, 10 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum