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
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.
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 )
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)
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 )
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 )
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
Last edited by Excell; 04-01-2007 at 12:53 PM.
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 )
Let's sum up to see if anything is missed. I only added following code to rows.html
Then I got<%if $image !="$site_url/themes/kosmos/images/transparent.gif" %><%else%><%thumb file="$image" width="100" window="false" link="false" html='class="img float"%><%/if%>
Any other file should be modified? e.g. smarty.class.php, function.thumb.phpFatal 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
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
But I see all links with images in cat page show blank indstead of cached images. Anyway there's some hope<%if $image !="$site_url/themes/kosmos/images/transparent.gif" %><%else%><%thumb file="$image" width="100" window="false" link="false" html='class="img float"'%><%/if%>![]()
Last edited by Excell; 04-02-2007 at 12:42 AM.
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.
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
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 )