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
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
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.
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
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
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.
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
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....
<%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.
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.
how do you get rid of the border if linked
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
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)
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 inso 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.
<%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.
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