Add A “More” Option To Category Preview

Free phpLD Mods

Add A “More” Option To Category Preview

Postby shadav on Tue Jan 29, 2008 4:26 pm

Project: PHPLinkDirectory: Link exchange directory @ http://www.phplinkdirectory.com/
Mod: Add A "More" Option To Category Preview @ http://www.shadav.info/mods.php
Version: 1.00
Notice: Maintain this section
Author: Shadav
License: Copyright (c) 2005 - 2007 Shadav

Any redistribution of Shadav mods without the expressed written consent of Shadav is strictly prohibited. Copying any of the code contained within any Shadav mod and claiming it as your own is also prohibited. By using these mods, you agree to indemnify Shadav from any liability that might arise from their use.

SHADAV MODS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

For Help Please Refer To: http://www.phplinkdirectory.com/forum/s ... hp?t=18854
This should work with all versions oh phpLD

open main.tpl and find *or simular*
Code: Select all
{* Display subcategories *}
{if !empty($cat.SUBCATS)}
<p class="subcats">
{foreach from=$cat.SUBCATS item=scat name=scategs}
<a href="{if $smarty.const.ENABLE_REWRITE}{$cat.TITLE_URL|escap e}/{$scat.TITLE_URL|escape}/{else}index.php?c={$scat.ID}{/if}">
{$scat.TITLE|escape}</a>, {/foreach} ...
</p>


replace the
Code: Select all
...
with
Code: Select all
<a href="{$cat.TITLE_URL|escape}/" title="More For {$cat.TITLE}"><b>More</b></a>


or Download the instructions:
More.zip
You do not have the required permissions to view the files attached to this post.
User avatar
shadav
Admin
Admin
 
Posts: 51
Joined: Aug 2007

Your Ad Here
Advertise with The Help Line :: Webmasters Resource Forum
Advertisement
 

Re: Add A “More” Option To Category Preview

Postby shadav on Sat Jan 24, 2009 7:54 pm

for 3.3
replace the
Code: Select all
...


with
Code: Select all
<a href="{$smarty.const.DOC_ROOT}/{$cat.CACHE_URL|escape}" title="More For {$cat.TITLE|escape}"><b>More</b></a>
User avatar
shadav
Admin
Admin
 
Posts: 51
Joined: Aug 2007


Return to Free Mods

Who is online

Users browsing this forum: No registered users and 0 guests