Affiliate Link with the right Website Preview Picture - Page 3 - eSyndiCat User Forums
eSyndiCat User Forums esyndicat directory software esyndicat support

Go Back   eSyndiCat User Forums > eSyndiCat Directory Software [FREE] > Modifications

Modifications Simple to complex modifications, made by users or by our team, applied to logic or presentation, all kinds of modifications are discussed and requested here.

Reply
 
Thread Tools Display Modes
Old 05-27-2006   #21
mlowrey
 
Join Date: May 2006
Posts: 26
mlowrey has disabled reputation
Default

thank you really reaylly much i have sended a message to support but no respons yet.
mlowrey is offline   Reply With Quote
Old 05-27-2006   #22
mlowrey
 
Join Date: May 2006
Posts: 26
mlowrey has disabled reputation
Default

i am missing one thing in this mod, and that is that the alexa image is still the image from the affilate link.....

Is this correct ? i would like to have the image to be the one of the real website and not the one from the affiliate link.....
mlowrey is offline   Reply With Quote
Old 05-27-2006   #23
WTM
Loyal User
 
WTM's Avatar
 
Join Date: Feb 2006
Location: Mockba - New York
Posts: 1,354
WTM is on a distinguished road
Send a message via Skype™ to WTM
Default

In the code for Alexa image find section:
Code:
<img width="111" height="87" src="http://pthumbnails.alexa.com/image_server.cgi?id=www.esyndicat.com&amp;size=small&amp;url={$link.url}" alt="" />
and replace it with code:
Code:
<img width="111" height="87" src="http://pthumbnails.alexa.com/image_server.cgi?id=www.esyndicat.com&amp;size=small&amp;url={if $link.display_url neq 'http://'}{$link.display_url}{else}{$link.url}{/if}" alt="" />
This will display image for the main site.

Basically you just replacing code:
Code:
{$link.url}
with code:
Code:
{if $link.display_url neq 'http://'}{$link.display_url}{else}{$link.url}{/if}
Hope this is what you are looking for...
WTM is offline   Reply With Quote
Old 05-27-2006   #24
mlowrey
 
Join Date: May 2006
Posts: 26
mlowrey has disabled reputation
Default

mm almost, take a look at:
http://www.hiervindjealles.nl/search.php?what=kids

then you see the picture of europe(is picture from affiliate program), but when you click on Link Details, then there is the correct image of the target website....i want the correct image on both places......

any idears......
mlowrey is offline   Reply With Quote
Old 05-27-2006   #25
WTM
Loyal User
 
WTM's Avatar
 
Join Date: Feb 2006
Location: Mockba - New York
Posts: 1,354
WTM is on a distinguished road
Send a message via Skype™ to WTM
Default

You need to apply changes that I described in the post above to both files:
- view-link.tpl and
- link-display.tpl

Looks like you updated only view-link.tpl file...
WTM is offline   Reply With Quote
Old 05-28-2006   #26
mlowrey
 
Join Date: May 2006
Posts: 26
mlowrey has disabled reputation
Default

Thank you ! It is working perfect now.
mlowrey is offline   Reply With Quote
Old 05-30-2006   #27
Nick Collins
Guest
 
Posts: n/a
Default

Hi WTW! You are becoming eSyndiCat professor...
Thank you for your help!
  Reply With Quote
Old 06-08-2006   #28
dousma
 
dousma's Avatar
 
Join Date: Mar 2006
Location: The Netherlands
Posts: 298
dousma is an unknown quantity at this point
Default

Quote:
In the code for Alexa image find section:
Code:
<img width="111" height="87" src="http://pthumbnails.alexa.com/image_server.cgi?id=www.esyndicat.com&amp;size=small&amp;url={$link.url}" alt="" />
and replace it with code:
Code:
<img width="111" height="87" src="http://pthumbnails.alexa.com/image_server.cgi?id=www.esyndicat.com&amp;size=small&amp;url={if $link.display_url neq 'http://'}{$link.display_url}{else}{$link.url}{/if}" alt="" />
OK this is working fine except I like to use Alexa image an an extra link as well, could you please tell how to change this code?
__________________
dousma is offline   Reply With Quote
Old 06-09-2006   #29
WTM
Loyal User
 
WTM's Avatar
 
Join Date: Feb 2006
Location: Mockba - New York
Posts: 1,354
WTM is on a distinguished road
Send a message via Skype™ to WTM
Default

1.To use Alexa image on "links" page as a link to "view details" page and display image of main site instead of affiliate site:

In links-display.tpl file find code:
Code:
<td valign="top" style="padding-right: 10px;"><img width="111" height="87" src="http://pthumbnails.alexa.com/image_server.cgi?id=www.esyndicat.com&amp;size=small&amp;url={$link.url}" alt="" /></td>
Replace it with code:
Code:
<td valign="top" style="padding-right: 10px;">{if $config.mod_rewrite}
		<a href="{$config.base}{$config.dir}{$link.path}/{convert_str string=$link.title}-l{$link.id}.html"><img width="111" height="87" src="http://pthumbnails.alexa.com/image_server.cgi?id=www.esyndicat.com&amp;size=small&amp;url={if $link.display_url neq 'http://'}{$link.display_url}{else}{$link.url}{/if}" alt="" /></a>
	{else}
		<a href="{$config.base}{$config.dir}view-link.php?id={$link.id}"><img width="111" height="87" src="http://pthumbnails.alexa.com/image_server.cgi?id=www.esyndicat.com&amp;size=small&amp;url={if $link.display_url neq 'http://'}{$link.display_url}{else}{$link.url}{/if}" alt="" /></a>
	{/if}</td>
2. To use Alexa image on "link details" page as a link to affiliate page or regular page if it is not an affiliate link and display image of main site instead of affiliate site:
In view-link.tpl file find code:
Code:
{if $config.alexa_thumbs}
   <img width="111" height="87" src="http://pthumbnails.alexa.com/image_server.cgi?id=www.esyndicat.com&size=small&url={$link.url}" />
{/if}
and replace with code:
Code:
{if $config.alexa_thumbs}
	<a href="{$link.url}" class="title" id="l{$link.id}" {if $config.new_window}target="_blank"{/if} onMouseOver="window.status='{if $link.display_url neq 'http://'}{$link.display_url}{else}{$link.url}{/if}'; return true" onMouseOut="window.status=''; return true"><img width="111" height="87" border="0" src="http://pthumbnails.alexa.com/image_server.cgi?id=www.esyndicat.com&size=small&url={if $link.display_url neq 'http://'}{$link.display_url}{else}{$link.url}{/if}" title="Visit {$link.title}" /></a>
{/if}
If I missed something please let me know...
WTM is offline   Reply With Quote
Old 06-09-2006   #30
dousma
 
dousma's Avatar
 
Join Date: Mar 2006
Location: The Netherlands
Posts: 298
dousma is an unknown quantity at this point
Default

Thanks WTM but this is not what I had in mind. I only like the alexa image clickable so if you click on the alexa image it opens the link and not the link of alexa.
__________________
dousma is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How I can make to link the web page from the ALEXA picture boom User interface 4 05-18-2006 06:08 AM
About the alexa.com picture of the link boom Installation and Updates 4 05-06-2006 05:24 PM
truncate news story preview on homepage maniac User interface 5 01-01-1970 12:43 AM


All times are GMT. The time now is 03:25 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Testimonials | Articles | Support | Documentation | Privacy Policy | License | Affiliates | Contact Us