Page 3 of 6 FirstFirst 12345 ... LastLast
Results 31 to 45 of 81

Thread: Plugin : Image Resize

  1. #31
    gspinney's Avatar
    gspinney is offline Registered User
    Join Date
    Jul 2003
    Posts
    128

    Exclamation

    Here is how I did the Goecoder Google Map.

    http://www.nicecoder.com/community/b...html#post22558

    If anyone has a solution for the No Image issue for the Thumbs hack, please post it.
    cerdmann.com ยป Thumb
    Last edited by gspinney; 03-29-2007 at 03:00 PM.

  2. #32
    inspireme is offline Active Member
    Join Date
    Nov 2004
    Posts
    1,822

    Default

    if you just put the tag <% $logo %> on the page? what does it display?

    Your code looks fine to me :

    <%if $logo !='http://www.YOURDOMAIN.ca/themes/kosmos/images/transparent.gif' %><%else%><%thumb file="$logo" html='class="img float"'%><%/if%>

    its what im using on my pages :

    <%if $logo !="$site_url/themes/kosmos/images/transparent.gif" %>
    Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )

  3. #33
    gspinney's Avatar
    gspinney is offline Registered User
    Join Date
    Jul 2003
    Posts
    128

    Default

    Quote Originally Posted by inspireme View Post
    if you just put the tag <% $logo %> on the page? what does it display?

    Your code looks fine to me :

    <%if $logo !='http://www.YOURDOMAIN.ca/themes/kosmos/images/transparent.gif' %><%else%><%thumb file="$logo" html='class="img float"'%><%/if%>

    its what im using on my pages :

    <%if $logo !="$site_url/themes/kosmos/images/transparent.gif" %>
    Here, I removed the clear gif I uploaded from the listing.

    This is the error: Calgary Business Directory : Chop Shop Hair Garage for Men (phone: 403-946-4247)

  4. #34
    inspireme is offline Active Member
    Join Date
    Nov 2004
    Posts
    1,822

    Default

    What happens if you jsut put the <%$logo%> code on your page (it should display the exact path to transparent.gif on listings without a logo.
    Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )

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

    Default

    you could try this :

    $logo != "http://www.calgarybusiness.ca/themes/kosmos/images/transparent.gif" || $logo !=''

    (it checks for an empty condition and a transparent gif) i seem to remember i had this on my other site once...
    Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )

  6. #36
    gspinney's Avatar
    gspinney is offline Registered User
    Join Date
    Jul 2003
    Posts
    128

    Default

    Quote Originally Posted by inspireme View Post
    you could try this :

    $logo != "http://www.calgarybusiness.ca/themes/kosmos/images/transparent.gif" || $logo !=''

    (it checks for an empty condition and a transparent gif) i seem to remember i had this on my other site once...
    does not work for me.

  7. #37
    ezykiwi is offline Active Member
    Join Date
    May 2004
    Location
    New Zealand
    Posts
    600

    Default

    Did you edit the setting.php file like in my post below, if you did, then that could be why its not working, since there are the 2 ways of going about it?

    Cheers Ezy

  8. #38
    Excell is offline Registered User
    Join Date
    Mar 2007
    Posts
    33

    Default

    Quote Originally Posted by inspireme View Post
    if you just put the tag <% $logo %> on the page? what does it display?

    Your code looks fine to me :

    <%if $logo !='http://www.YOURDOMAIN.ca/themes/kosmos/images/transparent.gif' %><%else%><%thumb file="$logo" html='class="img float"'%><%/if%>
    I got below error message when I put this line of code in rows.html

    Fatal error: Smarty error: [in /.../themes/kosmos/rows.html line 39]: syntax error: invalid attribute name: '=' (Smarty_Compiler.class.php, line 1531) in /.../lib/smarty/Smarty.class.php on line 1088
    Last edited by Excell; 04-01-2007 at 12:53 PM.

  9. #39
    gspinney's Avatar
    gspinney is offline Registered User
    Join Date
    Jul 2003
    Posts
    128

    Default

    Quote Originally Posted by ezykiwi View Post
    Did you edit the setting.php file like in my post below, if you did, then that could be why its not working, since there are the 2 ways of going about it?

    Cheers Ezy
    ...of course.

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

    Default

    well it works fine for me, so i know its not the code, i will have a look if you don't mind giving me the ftp details - if you do then just keep playing around im sure you'll get it in the end.
    Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )

  11. #41
    Excell is offline Registered User
    Join Date
    Mar 2007
    Posts
    33

    Default

    Let's sum up to see if anything is missed. I only added following code to rows.html
    <%if $image !="$site_url/themes/kosmos/images/transparent.gif" %><%else%><%thumb file="$image" width="100" window="false" link="false" html='class="img float"%><%/if%>
    Then I got
    Fatal error: Smarty error: [in /.../themes/kosmos/rows.html line 39]: syntax error: invalid attribute name: '=' (Smarty_Compiler.class.php, line 1531) in /.../lib/smarty/Smarty.class.php on line 1088
    Any other file should be modified? e.g. smarty.class.php, function.thumb.php

  12. #42
    Excell is offline Registered User
    Join Date
    Mar 2007
    Posts
    33

    Default

    Oh, I find the the problem. I missed a "'" after "img float"! This is why the error message keeps cropping out. The correct code should be
    <%if $image !="$site_url/themes/kosmos/images/transparent.gif" %><%else%><%thumb file="$image" width="100" window="false" link="false" html='class="img float"'%><%/if%>
    But I see all links with images in cat page show blank indstead of cached images. Anyway there's some hope
    Last edited by Excell; 04-02-2007 at 12:42 AM.

  13. #43
    gspinney's Avatar
    gspinney is offline Registered User
    Join Date
    Jul 2003
    Posts
    128

    Talking

    Actually I got it working A-O.K. but I used a different script.

    on the setting.php located in the

    $no_image_file = $site_url.'/themes/'.$active_theme.'/images/transparent.gif';

    changed it to $no_image_file = 'upload_files/spacer.gif';

    using thumb.php (attached as thumb.txt - change txt to php)

    Then I just added <img src="thumb.php?src=<%$logo%>&x=150&y=100&f=0"> to my detail_link.html

    You can upload any extension .gif .jpg .png

    in the upload_files create a thumbs files chmod 777 and you're done.
    Attached Files Attached Files

  14. #44
    Boxxer is offline Registered User
    Join Date
    Jul 2007
    Posts
    4

    Default

    Hello guys,

    could someone please explain me the detail installation,
    im trying here about 4 hours to get this s&$&"! pieces of code to work but it simply wont work...

    I get no errors just a white page.

    If someone uploads a picture it work but if there is none, it just shows nothing. I tried the Code in detail_link.html

    gspinney i tried also your thumb.php, with no success...

    please help

  15. #45
    inspireme is offline Active Member
    Join Date
    Nov 2004
    Posts
    1,822

    Default

    you will get errors, load up application.php, and change the page compression variable from 1 to 0

    then reload the page and tell us the error, we wont be able to help without knowing what the problem is.
    Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )

Page 3 of 6 FirstFirst 12345 ... 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
  •