PDA


View Full Version : Thumbnails - Links


interfx
12-01-2004, 06:48 PM
Moved this from pre-sales questions...

Hope others find this useful, I integrated a free service from ThumbShots.org into my VBAlinks site...

See a demo here

http://www.trumpetcentral.com/links/

I modified the adv_links_linkbit as shown in the attachment...

One question, when someone clikcs on the thumbnail - I made it go directly to the links website... how do I howver cuase the "view" counter to increment?

Any ideas out there?

Thanks -
InterFX

surfdude
12-03-2004, 07:14 PM
Hey interfx,

Nice little hack, I always wanted thumbnail images. I tried your hack and it worked, only problem is the lack of thumbs to be displayed. On one page featuring around 8 links, only one thumbnail shows up. I checked your site, and you have most of them on show :cool: .

So I guess it depends on what subject your links are based on will determine number of successful thumb displays.

KW802
12-03-2004, 07:24 PM
Interfx, nice hack. Adds a new dimension to it.

interfx
12-03-2004, 09:58 PM
Thumbnails only show up for the free version if the site is listed in DMOZ.org... Tell your persons to get their sites submitted to DMOZ.org - and then their thumbnails will show up in a few weeks...

If not, there is a monthly paid version which will show thumbnails of all sites... (of course for a fee)

Good luck -
InterFX

Lionel
12-04-2004, 03:35 AM
Thumbnails only show up for the free version if the site is listed in DMOZ.org... Tell your persons to get their sites submitted to DMOZ.org - and then their thumbnails will show up in a few weeks...

If not, there is a monthly paid version which will show thumbnails of all sites... (of course for a fee)

Good luck -
InterFX

what would be nice is to have a mod that quietly submit the site to the dmoz also when user submits his site.

interfx
12-04-2004, 07:47 AM
I agree...

I also need help making the thumbnail image URL click, increment the counter of page views... Anyone know how to do this? This should be simple to do, but I haven't figured it out yet...

Any ideas out there?

Lionel
12-05-2004, 01:15 AM
I agree...

I also need help making the thumbnail image URL click, increment the counter of page views... Anyone know how to do this? This should be simple to do, but I haven't figured it out yet...

Any ideas out there?

I am not sure if this is what you are looking for, but this code will make image clickable and will increment the view.

<a href="showlink.php?l=$link[linkid]" target="_blank">
<img src="http://open.thumbshots.org/image.pxf?url=$link[url]" border="0" onload="if (this.width>50) this.border=1; this.alt='$link[name]';"></a>

interfx
12-05-2004, 08:09 AM
Hey, that worked perfectly...

Thanks again for your help...

InterFX

Polo
02-01-2005, 06:07 PM
thank you interfx, definetly a good addon :)

coolegg
02-06-2005, 02:59 PM
This info might be useful to some... I use the paid service from thumbshots, and for it (and maybe the free service too), dynamic urls need to be encoded so they do not interfere with the dynamic thumbshots url which returns the thumbshot (per the instructions in the member's area of thumbshots).

So this required a minor hack of /includes/functions_links.php.

Below this line:
$link['lastpostusername'] = stripslashes($link['lastpostusername']);
I added this line:
$link['url_encoded'] = urlencode($link['url']);
Then I use the $link[url_encoded] variable in the thumbshots linking code in place of $link[url] (in the template attachment of post #1). It seems to work, as all my thumbshots show up now, including those of dynamic urls.

MajorFm
03-01-2005, 09:22 PM
nice hack! added!

CallieJo
04-01-2005, 12:44 AM
Thanks a bunches for this!
Huggies*

CSS59
07-16-2005, 01:59 PM
can you write the steps for doing this hack?

interfx
07-16-2005, 07:17 PM
Very simple, find adv_links_linkbit in your VB Templates, and paste in the text in my original attachment...

That's it... Remember it uses thumbnails of sites listed in DMOZ directory...

Good luck...

InterFX