NOTE: There is a newer version of this phpLD widget
*********************************************************
*** INSTRUCTIONS FOR PHPLD VERSION 4.0+ ***
*********************************************************
We have funded the development of a phpLD Widget and a Smarty plugin to help integrate the ShrinkTheWeb service into your "PHP Link Directory."
DOWNLOAD: ShrinkTheWeb phpLD Widget + Smarty plugin
Example: http://www.affiliatekey.net
Check out the homepage & listings page (uses smarty {stwthumb} block)
Also check out the detail pages (uses the widget with full-length previews)
ShrinkTheWeb Widget: Simply upload this widget to phpLD and then enable it. You will then be able to update the widget settings to enter your credentials and set various options.*
Upload the "ShrinkTheWeb" folder and contents into the /widgets/ folder on your server.
This widget will display a Screenshot on the selected Zones. We recommend the "LINK_DETAIL" zone. Then, we recommend going to Widgets -> Zones -> "View Widgets" (for the Zone you selected) -> click to order the ShrinkTheWeb Widget above the main content.
This is the only functionality of the Widget and is provided for ease of use. The real value of the Widget is providing an easy way to manage the settings for the Widget and/or Smarty plugin.
If you prefer to use only the Smarty plugin, simply follow these directions and then disable the output of the Widget by setting "Display widget content" to "NO"
In the Widget settings, ShrinkTheWeb Account Type should be "Free w/ PVP" to use the free method with the preview verification page (PVP). If you want to bypass PVP, you will need a "Basic" or "PLUS" account upgrade and set this option to "Basic or PLUS"
Smarty plugin: Simply upload this plugin to your Smarty template plugins directory. It will automatically be enabled but nothing will output unless you place the new {stwthumb} tags in your template (see below for helpful tips).
Upload the "block.stwthumb.php" file into the /libs/smarty/plugins/ folder on your server.
***
*There is currently an issue with ordering of the Widget settings that will be addressed by phpLD soon. In the meantime, if you want to overcome this, please feel free to get a "Widget settings order hotfix" in phpLD's forum. If you cannot access that area of their forum, please wait for the official update or next release.
***
Smarty Block Tips
Placement of the smarty block {stwthumb} is important in order to output the screenshots where you want them to show. Here is a phpLD-specific example:
Show screenshots beside search results and listings (link.tpl):
Search for:
{if $smarty.const.SHOW_PAGERANK} <td> {include file="pagerank.tpl" pr=$link.PAGERANK} </td> {/if}
Immediately AFTER, place this code:
<td><a href="{$link.URL|escape|trim}" title="{$link.TITLE|escape|trim}" {if $link.NOFOLLOW} rel="nofollow"{/if} target="_blank">{stwthumb Size=sm SizeCustom=0 FullSizeCapture=false Alt=$link.TITLE Style="clear:left;float:left;margin:0 5px 0 0;border:1px solid #999999"}{$link.URL|trim}{/stwthumb}</a></td>
***
If you are interested in a Smarty "only" version that does not install the "ShrinkTheWeb Widget," please read about our ShrinkTheWeb Smarty Integration (advanced)
***
For older, legacy versions of phpLD, please take a look at our Legacy phplD instructions