View Full Version : link detail page to replace regular link
edzoo
12-14-2006, 09:15 PM
I am planning to use esyndicate for site reviews. I want the users visit link detail page first and then click on the links after reading the full desciption.
[1] I want to just dispay only link detail link (with title)
[2] replace regular link in category with link_detail.
[3] Not to display description of link in categries..
How to achive this in esyndicat?
thanks in advance.
John Turner
12-15-2006, 08:06 AM
Hi edzoo and welcome,
Open ../templates/{YOUR TEMPLATE}/link-display.tpl
***find following code
<div class="title">{if $link.crossed}@{/if} <a href="{$link.url}" class="title" id="l{$link.id}" {if $config.new_window}target="_blank"{/if}>{if $config.html_tags}{$link.title}{else}{text_html aText=$link.title}{/if}</a>
{section name=star loop=$link.rank}<img src="{$img}star.png" alt="" />{/section}
</div>
<div class="description">{if $config.html_tags}{$link.description}{else}{text_h tml aText=$link.description}{/if}</div>
<div class="url">{$link.url}</div>
<div class="stat">({$lang.clicks}: {$link.clicks};
{if $config.link_comments}
{$lang.comments}: {$link.comments};
{/if}
{$lang.link_added}: {$link.date|date_format:$config.date_format}) ::
{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
<div class="title">{if $link.crossed}@{/if} <a {if $config.mod_rewrite}href="{$config.base}{$config.dir}{$link.path}/{convert_str string=$link_title}-l{$link.id}.html"{else}href="{$config.base}{$config.dir}view-link.php?id={$link.id}"{/if} class="title">{if $config.html_tags}{$link.title}{else}{text_html aText=$link.title}{/if}</a>
{section name=star loop=$link.rank}<img src="{$img}star.png" alt="" />{/section}
</div>
<div class="stat">({$lang.clicks}: {$link.clicks};
{if $config.link_comments}
{$lang.comments}: {$link.comments};
{/if}
{$lang.link_added}: {$link.date|date_format:$config.date_format})
***save and close it.
After this action in categories your links will be displayed, like
listing title (this is a link to Link Details page for this listing)
listing statistic
It might helps.
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.