PLEASE NOTE: This article may be out-of-date. Please visit the Support site for the latest information.

STW Thumbnails with phpLD (php Link Directory)

30 posts / 0 new
Letzter Beitrag
livvylou (nicht überprüft)

im using 4.1 and it works perfectly, all you have to do to incorporate new changes is to change {$URL|escape} to {$link_data.URL|escape} and all should work, full code (if needed) is

<img src="http://images.shrinktheweb.com/xino.php?stwembed=1&stwaccesskeyid=[key]&stwsize=lg&stwurl={if $smarty.const.ENABLE_DISPLAYURL and $DISPLAYURL ne ''}{$DISPLAYURL|escape}{else}{$link_data.URL|escape}{/if}" alt="{$TITLE|escape}" border="1">

customerweb
Offline
Beigetreten: 01/16/2012
Besuchen customerweb's Webseite

Hi all, and mod too.
I'm trying the free code on php link directory 2.2
Any suggest ?
Does not work if I use (only text in img box)

<img src="http://www.shrinktheweb.com/xino.php?embed=1&u=xxxx&STWAccessKeyId=YYYYYY&inside=1&Size=sm&Url={$link.URL|escape}" alt="{$link.TITLE|escape}" border="1"></td>

I try last one I see changing www to images

<img src="http://images.shrinktheweb.com/xino.php?embed=1&u=XXX&STWAccessKeyId=YYY&inside=1&Size=sm&Url={$link.URL|escape}" alt="{$link.TITLE|escape}" border="1"></td>

and upgrade required...sigh

new update with

<img src="http://images.shrinktheweb.com/xino.php?stwembed=1&stwaccesskeyid=[accesskey]&stwsize=lg&stwurl={if $smarty.const.ENABLE_DISPLAYURL and $link.DISPLAYURL ne ''}{$link.DISPLAYURL|escape}{else}{$link.URL|escape}{/if}" alt="{$link.TITLE|escape}" border="1">

appears upgrade required.

Bild von puravida
puravida
Jedi Warrior
Offline
Beigetreten: 09/01/2007
Besuchen puravida's Webseite

Frank updated the first post awhile back, but it looks like the update wasn't complete. The code as-is will only work for upgraded accounts (basic or plus). We will have to update the post to detail how to integrate PVP, but it's basically as simple as:

1. Put the code, shown in the lobby between the HEAD tags, into the HEAD part of the template.

2. Put the request JavaScript, also from the lobby, into the template where the previous IMG SRC code went.

*the JavaScript code will automatically link to our preview verification page and there is no way to disable that behavior or specify a link. This means that link tracking will not be possible with the PVP method.

customerweb
Offline
Beigetreten: 01/16/2012
Besuchen customerweb's Webseite

thx puravida for your prompt reply
I add js in head section, but still some problem in src image tag

I add this :

{strip}
<table><tr>
{* show page rank *}
{if $smarty.const.SHOW_PAGERANK}
   <td>
      {include file="pagerank.tpl" pr=$link.PAGERANK}
   </td>
{/if}
<td>
<script type="text/javascript">
stw_pagepix('http://www.bing.com', 'd8e10c9bb2cd9ec', 'sm', 0);
</script>
<td>
   <a id="id_{$link.ID}" href="{$link.URL|escape|trim}" title="{$link.TITLE|escape|trim}"
      {* nofollow *}
      {if $link.NOFOLLOW or ($link.RECPR_VALID eq 0 and ($smarty.const.RECPR_NOFOLLOW eq 2 or ($smarty.const.RECPR_NOFOLLOW eq 1 and $link.RECPR_REQUIRED eq 1)))} rel="nofollow"{/if}
      {if $smarty.const.ENABLE_BLANK} target="_blank"{/if}>
      {$link.TITLE|escape|trim}</a> <span class="url">- {$link.URL|escape|trim}</span>

      <p>{$link.DESCRIPTION|escape|trim}</p>
</td>
</tr></table>
{/strip}

but I know it's wrong, because only bing pix are displayed.
I try some change with src image tag but with no lucky.
Can u give me more hints ?
Thanks a lot

Bild von puravida
puravida
Jedi Warrior
Offline
Beigetreten: 09/01/2007
Besuchen puravida's Webseite

Yeah, your code does not use the smarty template variable(s). I was at the doctor's office earlier and could not update the original post, which I have just now updated.

Please go back to the beginning of this thread and review the section for implementing the "STW Free Users" PVP Method into phpLD.

customerweb
Offline
Beigetreten: 01/16/2012
Besuchen customerweb's Webseite

Last question, for your great service.
My idea it's only for local (and italian) people.
I'm sure if someone click on thumbs and see your page preview, he/she will close page and not click on link. There is a way to remove link from thumbs ?
I dont care, it's only a list directory for local web. So I need only preview.
Try some search but with no lucky
thx for any reply

Bild von puravida
puravida
Jedi Warrior
Offline
Beigetreten: 09/01/2007
Besuchen puravida's Webseite

1. Using the preview verification: the user is able to click "Disable this preview page" and not see the pages again for any links clicked. This is a per-visitor setting.

2. The page has not been needed to be enforced for paying accounts, so even the smallest "Basic" account upgrade ($4.95/month as of this post) is exempt from having to use PVP. Instead, all methods, including "Embedded" and "Advanced Method" API requests will work with a code change (as seen in the original part of the first post in this thread).

Bild von puravida
puravida
Jedi Warrior
Offline
Beigetreten: 09/01/2007
Besuchen puravida's Webseite

I updated the first post with a slight change to the header.tpl file.

The change was made to add ?{php}echo time();{/php} after the pagepix.js, in order to prevent the browser from caching the pagepix.js.

This was the cause of the intermittent and nearly impossible to troubleshoot issue of "Account Problem."

Bild von puravida
puravida
Jedi Warrior
Offline
Beigetreten: 09/01/2007
Besuchen puravida's Webseite

NOTE: This guide is for "legacy" versions of phpLD, prior to v4.0. For recent versions, please take a look at the newest phpLD integration guide here.

Topic locked

ShrinkTheWeb® (About STW) is another innovation by Neosys Consulting

Kontakt | PagePix Benefits | Learn More | Our Partners | Datenschutzrichtlinie | Nutzungsbedingungen

©2014 ShrinkTheWeb. Alle Rechte vorbehalten. ShrinkTheWeb ist ein eingetragenes Handelszeichen von ShrinkTheWeb.