![]() |
![]() |
|
|
#1
|
||||||
|
||||||
|
In index.php find:
Code:
// Assign template variables
$tpl->assign('category' , $path[count ($path) - 1]);
$tpl->assign('path' , $path);
Code:
$last5 = array();
$last5 = $db->GetAll("SELECT * FROM `{$tables['link']['name']}` WHERE `STATUS` = '2' ORDER BY `ID` DESC LIMIT 0,5");
$last5=addCategPathToLinks($last5);
$tpl->assign('last_5',$last5);
Code:
{section name=last_link loop=$last_5}
<div>
<a href="{$last_5[last_link].URL}">{$last_5[last_link].TITLE}</a>
<br />
{$last_5[last_link].DESCRIPTION}
<br />
<span class="url">{$last_5[last_link].URL}</span>
<br />
Category: <a href="{$last_5[last_link].CATEGORY_URL}">{$last_5[last_link].CATEGORY_TITLE}</a>
</div><br /><br />
{/section}
__________________
Lifetime link in 4 SEO friendly directories (each on seperate IP's) for $5. Deep linking encouraged! --------------------------------------------------------------------------------------------- Free PHP Link Directory Templates -|- PHPLD Tutorials |
|
#2
|
|||
|
|||
|
Hi there,
Good mod Show new listing in particular category
__________________
WebmastersHome.com - Revenue Sharing Forum PHP Scripts - Programming Scripts Collection |
|
#3
|
|||
|
|||
|
Thanks. I must admit that it is not all original code. I have several more to post, but I keep running out of time or being pulled into other projects.
![]()
__________________
Lifetime link in 4 SEO friendly directories (each on seperate IP's) for $5. Deep linking encouraged! --------------------------------------------------------------------------------------------- Free PHP Link Directory Templates -|- PHPLD Tutorials |
|
#4
|
|||
|
|||
|
Nice mod. Is there any demo for this mod? Thanks.
|
|
#5
|
|||
|
|||
|
Hi there,
no there is no any demo here... but can try it on your own directroy and add as demo ![]()
__________________
WebmastersHome.com - Revenue Sharing Forum PHP Scripts - Programming Scripts Collection |
|
#6
|
|||
|
|||
|
very nice mode quit intreasting mod
|
|
#7
|
|||
|
|||
|
does it work with v2.1.3
|
|
#8
|
|||
|
|||
|
does it works with v2.1.3
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
|
All times are GMT. The time now is 10:11 AM. |