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
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