View Full Version : Link details for sponsored only
Merridy
12-22-2006, 09:49 PM
Hi,
I want my sponsored listings to offer more than a basic listing, so I thought I'd only have a link detail page if the listing is sponsored. How do I do this. I'm using Pro 2.0.01 and Ocean template.
Also, on the link detail page the URL and email are only coming up as normal text, not links. Does anyone know why this is, and how to fix it.
Dave Baker
12-23-2006, 10:06 PM
Hello Merridy,
I want my sponsored listings to offer more than a basic listing, so I thought I'd only have a link detail page if the listing is sponsored. How do I do this. I'm using Pro 2.0.01 and Ocean template.
***Open templates/yourTemplate/link-display.tpl and find code ***
{if $config.mod_rewrite}
{if 'search' eq $tab}
{assign var="link_title" value=$link.title2}
{else}
{assign var="link_title" value=$link.title}
{/if}
<a href="{$config.base}{$config.dir}{$link.path}/{convert_str string=$link_title}-l{$link.id}.html">{$lang.link_details}</a>
{else}
<a href="{$config.base}{$config.dir}view-link.php?id={$link.id}">{$lang.link_details}</a>
{/if}
***Replace with following code***
{if $link.sponsored}
{if $config.mod_rewrite}
{if 'search' eq $tab}
{assign var="link_title" value=$link.title2}
{else}
{assign var="link_title" value=$link.title}
{/if}
<a href="{$config.base}{$config.dir}{$link.path}/{convert_str string=$link_title}-l{$link.id}.html">{$lang.link_details}</a>
{else}
<a href="{$config.base}{$config.dir}view-link.php?id={$link.id}">{$lang.link_details}</a>
{/if}
{/if}
***Save file***
on the link detail page the URL and email are only coming up as normal text
Please check it:
http://www.esyndicat.com/forum/showthread.php?t=7694&highlight=clickable+url
Merridy
12-24-2006, 02:39 AM
Thanks Dave,
I've been playing around with the template myself and managed to work out how to change it so that link details were only available to sponsored links. Took me a while though because I've got no idea what I'm doing. I'm quite pleased with myself though :D
Thanks for the other link. Will check it out
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.