View Full Version : how to add new links to home page ?
peterjhale
11-07-2006, 02:53 PM
I had a go but failed
I just want to add the latest xx links at the bottom of my HP exactly as it is under the "new-links.html" page
any suggestions
thanks
Dave Baker
11-07-2006, 06:28 PM
Hello peterjhale,
I tried to reduce difficulties of integration. On this it will be necessary for you to add two files in your directory. Upload and unzip these files.
1) new-links-for-bottom.php add to ROOT your directory.
2) new-links-for-bottom.tpl add to your template.
***Open index.php and in the bottom of file find line***
$gDirSmarty->display("index{$templ}.tpl");
***Below this line add***
if ($category['id'] == 0)
{
require_once('new-links-for-bottom.php');
}
***Save file***
peterjhale
11-07-2006, 09:33 PM
my word, I see why you are a professor :)
it all works 100% perfect
thank you, thank you
Dave Baker
11-07-2006, 10:08 PM
Always at your service :)
peterjhale
11-08-2006, 09:57 AM
I have made a slight mod people may be interested in.
Because the latest links appear *after* the footer, this means the code closed the body and html tag - not good for clever coding.
So I have:
1: in index.tpl deleted the line {include file="footer.tpl"} (at the very bottom)
2: in index.php added
$gDirSmarty->display("footer{$templ}.tpl");
after
if ($category['id'] == 0)
{
require_once('new-links-for-bottom.php');
}
lovely :)
uscasinos
11-14-2006, 01:08 PM
Hi:
Thanks for the modifications.
It actually displays all the lists in the new-links.html.
If you want to display the latest 5 links in home page.
Just modify according to this thread:
http://www.esyndicat.com/forum/about5645.html
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.