-
AuthorPosts
-
viktorg Friend
viktorg
- Join date:
- November -0001
- Posts:
- 30
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 4
- Thanked:
- 2 times in 1 posts
April 27, 2009 at 9:37 am #140634Hi!
How do I remove the resize function from the frontpage?
Have 5 image that I need to have there and not one that is resized.
Thx
VG
viktorg Friendviktorg
- Join date:
- November -0001
- Posts:
- 30
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 4
- Thanked:
- 2 times in 1 posts
April 29, 2009 at 7:10 pm #302948?? s
May 18, 2009 at 10:55 pm #305008Hi Victorg.
Did you find a fix for this as I am wanting to do the same.
I wish to make the front page act like a normal content item and let me determine the image size and location.
Mark
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
May 18, 2009 at 10:57 pm #305009Isn’t the option of whether or not to display site tools (such as resize) within the Template Manager section?
(i.e. Extensions –> Template Manager –> JA Tube)May 18, 2009 at 11:04 pm #305011Thanks for the reply Tom.
It is not possible to make the changes under Template Manager.
Not trying to adjust the ‘Site Tools’ at all.
Regrads.
Mark
alqemist Friendalqemist
- Join date:
- May 2009
- Posts:
- 12
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 3
- Thanked:
- 5 times in 1 posts
May 19, 2009 at 11:19 am #305070I have the same issue with JA Ruby – The images in Frontpage are all resized automatically – this is very annoying and really an unnecessary “aid”. All I want is my images displayed exactly as they are uploaded.
I say one post that said change $crop=0 in the ja_templatetools.php and that had no effect. See the issue here http://www.magazooms.com/Joomla
alqemist Friendalqemist
- Join date:
- May 2009
- Posts:
- 12
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 3
- Thanked:
- 5 times in 1 posts
May 19, 2009 at 12:37 pm #305081I have looked through ja_templateTools_15.php and found the problem – a previous post on this issue suggested changing $crop=1 to $crop = 0 – I thought I had made that change but after rechecking I had not.
starting @ line # 448 make the change to “$crop = 0″
function processImage ( &$img, $width, $height, $crop=0) {
if(!$img) return;$img = str_replace(JURI::base(),”,$img);
$img = str_replace(“‘”,”,$img);
$img = rawurldecode($img);
$imagesurl = (file_exists(JPATH_SITE .’/’.$img)) ? JA_Tools::jaResize($img,$width,$height, $crop) : ” ;
return $imagesurl;
}function jaResize($image,$max_width,$max_height, $crop=0){
$path =JPATH_SITE;
$imgInfo = getimagesize($path.’/’.$image);
$width = $imgInfo[0];
$height = $imgInfo[1];
if(!$max_width && !$max_height) {
$max_width = $width;
$max_height = $height;
}else{
……………….This solves the resizing problem woo hoo !
viktorg Friendviktorg
- Join date:
- November -0001
- Posts:
- 30
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 4
- Thanked:
- 2 times in 1 posts
June 10, 2009 at 9:48 pm #307584Thx! now my problem is that the images jumps up to the top of the article when I look at the site from the frontend. The pictures still do not got the right size.
Any solutions on this?
shultman Friendshultman
- Join date:
- September 2006
- Posts:
- 56
- Downloads:
- 118
- Uploads:
- 3
- Thanks:
- 18
- Thanked:
- 6 times in 1 posts
August 5, 2009 at 1:54 pm #313376Hi
They use ‘Template overrides’ to alter the frontpage.
To get the frontpage to act like a normal Joomla frontpage, just remove or rename these files:
ja_tubehtmlcom_contentfrontpagedefault.php
ja_tubehtmlcom_contentfrontpagedefault_item.phpDon´t forget to backup first 😉
viktorg Friendviktorg
- Join date:
- November -0001
- Posts:
- 30
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 4
- Thanked:
- 2 times in 1 posts
August 6, 2009 at 12:06 am #313414Yes, thank you! 😀 Nice workaround! I just renamed it. I also did so for html/com_content/category so bloglayout work as I wan’t it to.
tacktack
charisma Friendcharisma
- Join date:
- March 2009
- Posts:
- 2
- Downloads:
- 0
- Uploads:
- 0
- Thanked:
- 2 times in 1 posts
August 22, 2009 at 11:04 pm #315092Hi guys,
Disabling the template overrides seemed a bit of an overkill for me; those overrides are one of the best things you paid for in JoomlArt templates, since they make pages use clean divs and not old table structures.
However, the image resizing was annoying for me too, because it removed links from my images and conflicted with ReadMoreExt, which is a great plugin that will link images to the full post.
To REMOVE image resizing, edit the file:
/templates/ja_mica/html/com_content/frontpage/default_item.php
On line 16 you will have
$image = JA_Tools::extractImage ($this->item, true, $this->imageWidth, $this->imageHeight);
Comment this out by placing // before it, so it will look like
// $image = JA_Tools::extractImage ($this->item, true, $this->imageWidth, $this->imageHeight);
Save your file. That’s it! Hope it works for you too.
UPDATE: Obviously, I use the ja_mica template, so if you’re using another one, change the edited file accordingly (from /templates/ja_mica to /templates/ja_WHATEVER)
-
AuthorPosts
This topic contains 11 replies, has 6 voices, and was last updated by charisma 15 years, 4 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum