Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • viktorg Friend
    #140634

    Hi!

    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 Friend
    #302948

    ?? s

    blugreen Friend
    #305008

    Hi 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 Moderator
    #305009

    Isn’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)

    blugreen Friend
    #305011

    Thanks 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 Friend
    #305070

    I 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 Friend
    #305081

    I 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 Friend
    #307584

    Thx! 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 Friend
    #313376

    Hi

    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.php

    Don´t forget to backup first 😉

    viktorg Friend
    #313414

    Yes, 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 Friend
    #315092

    Hi 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)

Viewing 11 posts - 1 through 11 (of 11 total)

This topic contains 11 replies, has 6 voices, and was last updated by  charisma 15 years, 3 months ago.

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