Page 4 of 6 FirstFirst ... 23456 LastLast
Results 46 to 60 of 81

Thread: Plugin : Image Resize

  1. #46
    Antony is offline Active Member
    Join Date
    Sep 2006
    Posts
    167

    Default

    wHEN YOU DON'T HAVE IMAGE USE THIS

    <%if $pictures|file_exists%>
    <%thumb file="$pictures" width="150" height="100" window="true" sharpen="true" link="true" hint="true" html='border="0"'%> <%/if%>

    Work find.
    Inspireme can you leave the js and the code for pictures open windows.
    Thank's.
    Hotel Discount Web Search
    www.hotel-discount.com

  2. #47
    griller111 is offline Registered User
    Join Date
    Mar 2007
    Posts
    47

    Default

    Can anyone see anything wrong with this below?

    <%if $photo !="$site_url/themes/litaka/images/transparent.gif" %>
    <a href="<%$site_url%>/<%$detail_page_url%>"> <%thumb file="$photo" width="100" height="100" crop="true" window="true" link="false" html='class="img float" border="0"'%> </a>
    <%else%>
    <a href="<%$site_url%>/<%$detail_page_url%>"> <img src="<%$tpl_base%>/images/noimage.gif" border="0" /> </a>
    <%/if%>
    I think I set something wrong in my function.thumb.php, So starting from scatch can someone show what should be filled in below and how please.

    ### Info über Source (SRC) holen
    $temp = getimagesize($params['file']);

    $_SRC['file'] = $params['file'];
    $_SRC['width'] = $temp[0];
    $_SRC['height'] = $temp[1];
    $_SRC['type'] = $temp[2]; // 1=GIF, 2=JPG, 3=PNG, SWF=4
    $_SRC['string'] = $temp[3];
    $_SRC['filename'] = basename($params['file']);
    $_SRC['modified'] = filemtime($params['file']);
    Last edited by griller111; 10-12-2007 at 08:31 AM.

  3. #48
    inspireme is offline Active Member
    Join Date
    Nov 2004
    Posts
    1,822

    Default

    you dont need to change the function, just upload and leave it. What errors do you have? Make sure you have created the cache folder in images/cache/ (in the root folder / main indexU folder if its in a sub directory) and CHMOD to 777

    next, remove site_url from the if statment and replace with your domain name, im not sure if that variable is available, it probably is but jsut check.
    Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )

  4. #49
    griller111 is offline Registered User
    Join Date
    Mar 2007
    Posts
    47

    Default

    this is the error I keep getting

    Fatal error: Smarty error: thumb: parameter 'file' cannot be empty in /home/*******/public_html/**********/lib/smarty/Smarty.class.php on line 1088

  5. #50
    inspireme is offline Active Member
    Join Date
    Nov 2004
    Posts
    1,822

    Default

    if you just use <%$photo%> what does it output to the detail page?
    Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )

  6. #51
    griller111 is offline Registered User
    Join Date
    Mar 2007
    Posts
    47

    Default

    Quote Originally Posted by inspireme View Post
    if you just use <%$photo%> what does it output to the detail page?
    outputs text
    upload_files/photo_11801.jpg
    no image just text

  7. #52
    infiniteflow is offline Registered User
    Join Date
    Oct 2007
    Posts
    19

    Default

    I have tried the codes posted but I could not seems to make it work. Somebody hare care to share their working codes.

  8. #53
    Bruceper is offline Active Member
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    If it just shows text, then add the rest of the code

    Perhaps add <img src="<%$photo%>" />

    If you need to add a path don't forget that either.

  9. #54
    infiniteflow is offline Registered User
    Join Date
    Oct 2007
    Posts
    19

    Default

    Yes, I have already done that in the detail page. What I want to do is to have thumbnails in the row or in the random link block.

  10. #55
    inspireme is offline Active Member
    Join Date
    Nov 2004
    Posts
    1,822

    Default

    Quote Originally Posted by infiniteflow View Post
    Yes, I have already done that in the detail page. What I want to do is to have thumbnails in the row or in the random link block.
    it should work the same on all the pages - if it works on detail page...
    Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )

  11. #56
    infiniteflow is offline Registered User
    Join Date
    Oct 2007
    Posts
    19

    Default

    Quote Originally Posted by Antony View Post
    wHEN YOU DON'T HAVE IMAGE USE THIS

    <%if $pictures|file_exists%>
    <%thumb file="$pictures" width="150" height="100" window="true" sharpen="true" link="true" hint="true" html='border="0"'%> <%/if%>

    This one works for me. Thanks.

  12. #57
    inspireme is offline Active Member
    Join Date
    Nov 2004
    Posts
    1,822

    Default

    <%if $pictures|file_exists%>

    never works for me, i have to use the code i entered earlier on in the thread. I think if you have the new version of indexU its different, but it fou upgraded from an old version it causes problems with this.

    IndexU if no image existed, used to load a "transparent.gif" file, which if you check if it exists, always does. That explains the mixed results i think. Presumably the above smarty code will be fine for all new installs.
    Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )

  13. #58
    cauci is offline Registered User
    Join Date
    Oct 2007
    Posts
    7

    Default No access

    Quote Originally Posted by inspireme View Post
    Make thumbnails automatically using this super smarty plugin!

    http://www.cerdmann.com/thumb/

    works great.
    I am very curious, but cannot get access to this site (Forbidden).

  14. #59
    timbo is offline Registered User
    Join Date
    Jan 2008
    Posts
    8

    Default Image Resize code

    Does anyone have a copy of this code, or other working code for image resize which they could post here? The web site this thread refers to is down.

    thanks
    Tim

  15. #60
    cauci is offline Registered User
    Join Date
    Oct 2007
    Posts
    7

Page 4 of 6 FirstFirst ... 23456 LastLast

Similar Threads

  1. Can't resize text boxes
    By yorweb in forum v5.x
    Replies: 8
    Last Post: 02-03-2005, 09:29 PM
  2. How Do I Get An Image to Appear
    By craven in forum v5.x
    Replies: 4
    Last Post: 10-10-2003, 04:31 AM
  3. ReSize Images w/ ImageMagick
    By Todd in forum v3.2
    Replies: 5
    Last Post: 12-02-2002, 04:35 PM
  4. Image
    By marko in forum v5.x
    Replies: 15
    Last Post: 08-16-2002, 07:06 PM
  5. Different Image ??
    By ideavirus in forum v3.2
    Replies: 0
    Last Post: 07-12-2002, 12:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •