A1 Se Friendly Web Directory with DeeplinksArticle Modifications for PHPLD Templates

Article Details


A1 Se Friendly Web Directory with DeeplinksArticle Modifications for PHPLD Templates

Valid XHTML 1.0 Transitional Web Directory ReviewsValid CSS!

Article Modifications for PHPLD Templates

Date Added: June 04, 2007 04:09:20 AM

Hello,
If you are using older 3.1 template you can switch it to version 3.2 which includes the contact page and articles pages in newer version simply do this. Please note you will require more modification if you are using a template with different method of coding and so on.

Open main.tpl

Find

Code:
{* Javascript for tracking link clicks *}
{if $StopLinkHits eq 0}

Replace with

Code:
{* Articles heading *}
{if !empty($articles) and !$uid and !$search}
<h3>{l}Articles{/l}</h3>
<div id="articles">
<table>
{foreach from=$articles item=article name=name}
{include file="articlelink.tpl" link=$article}
{/foreach}
</table>
</div>
{/if}




{* Javascript for tracking link clicks *}
{if $StopLinkHits eq 0}



Find

Code:
{* Show category search results *}
{if $search_category}
{$search_category}
{/if}

Replace with

Code:
{* Show category search results *}
{if $search_category}
{$search_category}
{/if}

{* Show article search results *}
{if $search_article}
{$search_article}
{/if}



Open top_bar.tpl


Find

Code:
<a href="{$smarty.const.DOC_ROOT}/index.php?list=top" title="{l}Browse most popular links{/l}">{l}Top Hits{/l}</a>
&nbsp;|&nbsp;

Replace with

Code:
<a href="{$smarty.const.DOC_ROOT}/index.php?list=top" title="{l}Browse most popular links{/l}">{l}Top Hits{/l}</a>
&nbsp;|&nbsp;
<a href="{$smarty.const.DOC_ROOT}/index.php?list=latestarticles" title="{l}Browse latest articles{/l}">{l}Latest Articles{/l}</a>
&nbsp;|&nbsp;
<a href="{$smarty.const.DOC_ROOT}/contact.php" title="{l}Contact directory owner{/l}">{l}Contact{/l}</a>


Copy all these files from default templates folder > article.tpl , article_search.tpl, articlelink.tpl, contact.tpl


You should be done, you might need minor coding for getting the look and feel for those above 3 article files you copied.

A1 Se Friendly Web Directory with DeeplinksArticle Modifications for PHPLD Templates
   
A1 Se Friendly Web Directory with DeeplinksArticle Modifications for PHPLD Templates A1 Se Friendly Web Directory with DeeplinksArticle Modifications for PHPLD Templates A1 Se Friendly Web Directory with DeeplinksArticle Modifications for PHPLD Templates