View Full Version : remove "Link Details" link
johnnyrcwp
05-22-2007, 10:29 PM
How can I remove the "Link Details" link underneath all the listings. I don't want it to go to the Link Details page at all. I am using v2.1.03 5Days.
open link-display.tpl and find and remove
{if $config.mod_rewrite}
<a href="{$config.base}{$config.dir}{$link.path}{convert_st r 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}
johnnyrcwp
05-23-2007, 02:39 AM
i read that somewhere else too, unfortunately, i don't have that code in my link-display.tpl file. Is that from an older version? I can post up my code if you like.
i read that somewhere else too, unfortunately, i don't have that code in my link-display.tpl file. Is that from an older version? I can post up my code if you like.
That is what is for ProVersion 2.1.03
Go ahead and post what you have for link-display.tpl
johnnyrcwp
05-23-2007, 02:06 PM
This is from the template 5Days:
<tr>
<td colspan="2" class="link {$link.status}"{if $link.featured AND $config.featured_highlight AND $config.featured_links} style="background-color: {$config.featured_highlight}"{/if}{if $link.partner AND $config.partner_highlight AND $config.partner_links} style="background-color: {$config.partner_highlight}"{/if}{if $link.sponsored AND $config.sponsored_highlight AND $config.sponsored_links} style="background-color: {$config.sponsored_highlight}"{/if}>
<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}{$link.title| escape:"html"}{/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}{$link. description|escape:"html"}{/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_st r 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 ($editor.id eq $link.id_editor) || ($link.id_editor_edit eq '1')}
| <a href="{$config.base}{$config.dir}edit-link.php?id={$link.id}">{$lang.edit_link}</a>
{/if}
{if (($editor.id eq $link.id_editor) || ($link.id_editor_edit eq '1')) AND $config.sponsored_links}
| <a href="{$config.base}{$config.dir}upgrade-link.php?id={$link.id}">{$lang.upgrade_listing}</a>
{/if}
{if $config.amazon_link}
| <a href="http://partner.alexa.com/amzn/redirect_to_detail?amzn_id=esyndicatfree-20&url={$link.url}">{$lang.view_amazon}</a>
{/if}
{if $config.broken_links_report}
| <a href="javascript:void(0)" onclick="reportBrokenLink({$link.id})">{$lang.report_broken_link}</a>
{/if}
{if $config.pagerank}
<br />{$lang.pagerank}: {if $link.pagerank eq '-1'}{$lang.not_available}{else}{$link.pagerank}{/if}<br />{print_pagerank pr=$link.pagerank}
{/if}
</div>
</td>
</tr>
That code looks to be from the 2.0 version (template).
johnnyrcwp
05-23-2007, 07:05 PM
You're right, it is version 2.0. My mistake, sorry. Any ideas how to fix this one?
Just remove this part:<a href="{$config.base}{$config.dir}{$link.path}{conv ert_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>
johnnyrcwp
05-23-2007, 08:29 PM
Ah ha ... close, but I figured it out. For anyone asking the same question, comment or remove this:
<!-- {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_st r 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} -->
You're right, it is version 2.0. My mistake, sorry. Any ideas how to fix this one?
If I was you, if you are using the ProVersion 2.1.03 of the script, I would upgrade your template to 2.1.03 before you get to carried away with mods and such.
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.