PDA


View Full Version : Mod: Quick and dirty way to add screenshots of submitted links to your links Dir...


theMusicMan
04-29-2005, 08:52 PM
Hi All,

Was not 100% sure if I should submit this quick modification as it's not a glorious one, but for the effort required to implement, it certainly does the job if you want something for your vBA Links pages quickly.

ASSUMPTIONS: This mod makes two assumptions


you will save your screenshots as 'gif's
you will create a screenshot for all submitted links

I have implemented a quick and dirty method of adding a screenshot of all submitted links to your vBA Links Directory to all of the showlinks pages as seen in the screenshot below. It uses a manual process of creating the screenshot and uploading it to a directory on your web-server, but if you have the time to do that work, then it certainly pays off as the improvement in aesthetic value is significant. Here's a screenie and here's my site with this implemented on: www.vBXtra.com/links (http://www.vBXtra.com/links)
http://www.vbxtra.com/links/images/shot.gif
Here goes....

1 - open your adv_links_linkbit template
2 - look for first <td> which is:

<td class="alt2"><img alt="" src="$stylevar/$link[folder].gif" /></td>

... replace that with

<td class="alt2"><!--<img alt="" src="$stylevar/$link[folder].gif" />--><a href="showlink.php?l=$link[linkid]" target="_blank"><img border="0" alt="" src="images/screen_$link[linkid].gif"></a></td>

... save the template. ([i]I have left the original code in there as a just-in-case)

3 - create a directory on your webserver called www.yourdomain.com/your_links_directory/ (http://www.yourdomain.com/your_links_directory/)images

4 - create a screenshot (I save it at 100*100 px) of any submitted link, giving it the name: screen_[link_ID] so for example "screen_2" for link ID 2. To find the LinkID simply hold your mouse over the View Link Details drop down menu item and look at the ID number in the browser statusbar (I use Firefox so the status bar for me is in bottom left). This is also shown in the screenshot below.
[img]http://www.vbxtra.com/links/images/shot2.gif

5 - Upload that image to your www.yourdomain.com/your_links_directory/ (http://www.yourdomain.com/your_links_directory/)images directory and you're done.

Refresh your page and for each screenshot you have prepared and uploaded, an image will appear in left hand column in place of the status icon.

Hope you like it... it is quick and very dirty I know, but I hope it will get you going. Feel free to ask away if you have issues or questions...:)

John

necksys
05-04-2005, 03:11 AM
Thanks. It's fine :)

CSS59
07-21-2005, 08:00 PM
thank you :)

CSS59
08-11-2005, 11:55 PM
TheMusicMan, or anyone that can help,

I will pay you $10 if you can help me out with this.

I want to display the immage above as shown in the pic I posted.
I want to use 468x60 banners

Please PM me asap

theMusicMan
09-06-2005, 08:19 PM
Hi CSS59... sorry but for some reason I am not receiving notifications from vBA and didn't get this when you posted it last month.

Did you manage to sort it or would you like some help?

MotoUp
09-09-2006, 11:54 AM
I would love to be able to use this in vB3.6. Will this work, or does it need to be modified?

Spikeman
09-11-2006, 09:46 PM
Works fine in vB 3.6.0 took me 2 mins to setup :) Internet Watchers (http://www.internetwatchers.co.uk)

Spikeman
10-08-2006, 11:20 PM
This also works with vB 3.6.2 and Vba Links Directory 2.0 beta

Karen
01-28-2007, 02:47 PM
Nice, working with vB 3.6.4 and vBlinks 2.0.0.

http://www.vectra-sri.co.uk/links/

theMusicMan
01-28-2007, 03:13 PM
Glad you are enjoying it. I had totally forgotten I did this...