Page 2 of 6 FirstFirst 1234 ... LastLast
Results 16 to 30 of 81

Thread: Plugin : Image Resize

  1. #16
    Test71 is offline Registered User
    Join Date
    Nov 2006
    Posts
    56

    Default Great

    Cool !
    Do you like to try what happen, if the image is this thumb creater ?
    http://www.thumbshot.de/cgi-bin/show....nicecoder.com

    Regards
    Frank

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

    Default

    has anyone else found that if you turn the link=false or true around it turns on a extra border around the image when the link=true, and none when link=false...

    I cant see how to make it never add that extra border.....

    any one else had this prob?

    Cheers Ezy

    "UPDATE"

    Found the answer, html='border="0"' as one of the variables...
    Last edited by ezykiwi; 01-24-2007 at 08:22 PM.

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

    Default

    Quote Originally Posted by Test71 View Post
    Cool !
    Do you like to try what happen, if the image is this thumb creater ?
    http://www.thumbshot.de/cgi-bin/show....nicecoder.com

    Regards
    Frank
    why would you do that? its already a thumbnail, you dont need another one created.

  4. #19
    Test71 is offline Registered User
    Join Date
    Nov 2006
    Posts
    56

    Default thumbs

    Hello,
    to get it as own image so for search engines it is an image on my server and to send much less calls to them.

    Regards
    Frank

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

    Default

    I could be wrong, but wont it call them anyway... to make sure they are the same file name/size so it knows that it doesnt have to make a new thumb?

    Cheers Ezy

  6. #21
    inspireme is offline Active Member
    Join Date
    Nov 2004
    Posts
    1,822

    Default

    you need copy/write access on the file (chmod 677 i think), which you wont have on someone elses server, so no, you couldnt do that.

  7. #22
    Test71 is offline Registered User
    Join Date
    Nov 2006
    Posts
    56

    Default hm

    Yes, could be so.
    Hm, still search for an easy thumbnail way with images on my server.
    Any ideas which could work in approuvement routine ?

    Regards
    Frank

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

    Default

    Has anyone tried putting a smarty IF statement around the code?

    Its not working for me, unless im doing something wrong, so just thought id ask.

    Cheers Ezy

    UPDATE, I think its because it was a image field, and it was empty...
    and so it adds /themes/kosmos/images/transparent.gif ....

    so you cant use smarty....

    <&#37;if $image%> because if there is a image or not, its got to come up with the transparent.gif in its place....

    has anyone else done this and found a way around it....

    Cheers Ezy
    Last edited by ezykiwi; 01-26-2007 at 09:00 PM.

  9. #24
    inspireme is offline Active Member
    Join Date
    Nov 2004
    Posts
    1,822

    Default

    You have to use :

    <%if $photo !='http://www.yourdomain.com/themes/kosmos/images/transparent.gif' %>

    basically $photo is always true as you said, so you need to check if its the transparent gif or if its an actual photo.

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

    Default

    how do you get rid of the border if linked

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

    Default

    Howdy,

    In the code for the image, put

    html='border="0"

    so for example mine looks similar too this

    hint="true" link="true" html='border="0"'

    Hope this helps.

    Cheers Ezy

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

    Default

    Great, thanks.

    One last question. If there is no image uploaded it gives an error.

    Fatal error: Smarty error: thumb: image file does not exist in /home/calgarybu/domains/calgarybusiness.ca/public_html/lib/smarty/Smarty.class.php on line 1088

    I am trying to use <%else%> but it gives errors.

    Link to Error: Calgary Business Directory : Chop Shop Hair Garage for Men (phone: 403-946-4247)

    Link to working image: Calgary Business Directory : Carmen's Meat & Deli (phone: (403) 946-0223)

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

    Default

    Just put a if statement around it and it should work....

    im sure ive done mine that way.... give it a try.. if it doesnt work.. ill dig up the code i used, (im on my laptop at the mo...)

    Cheers Ezy

    Ive just stopped watching the cricket, cause this was doing my head in so i hope it helps...
    as above, set the if statements around the images.... this still wont work until you make the following change to the setting.php file....

    go down to near the bottom of the file .. and comment out the line in regards to no image.. in mine its near line 53

    /*================================================= ==
    no image
    ================================================== =*/

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

    ------------------------------------------------------------------

    it must be taken into account that this will then never display the transparent image for any custom fields, so its wise to use either...all if statements in your templates around custom image fields, or to leave it as it is, and come up with another way around it... this way works for me, but everyone is differant.

    hope this help.

    Cheers Ezy
    Last edited by ezykiwi; 03-29-2007 at 11:53 AM.

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

    Default

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

    Nope still not working. Bloody cache fooled me
    Last edited by gspinney; 03-29-2007 at 01:00 PM.

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

    Thumbs up

    Well until there is a proper hack, the upload logo is required

    Oh well, c'est la vie ...

    Calgary Business Directory : News, Weather, Free Classifieds : CalgaryBusiness.ca officially completed (I think)...

    Thumb resize, Geolocator using address to pull Google Map, Yahoo Directions. Now just to sell some ad space

    Sample: Calgary Business Directory : Carmen's Meat & Deli (phone: (403) 946-0223)

    Easy 1 page signup : Calgary Business Directory : Add Listing

Page 2 of 6 FirstFirst 1234 ... 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
  •