View Full Version : [3.0.5] "home" link not working
Redmatrix
06-11-2006, 09:51 AM
Hello.
I have spent ten minutes using search but I cannot find a solution.
I am running phpLD directory script version 3.0.5 and in the top it shows the
Home | Submit | Top Sites | New Sites
links, however the "home" anchor doesn't have any reference. I have traced it to this line in the template file:
<a href="{$smarty.const.DOC_ROOT}">Home</a>
When I look at the source online, it renders as
<a href="">Home</a>
So, apparently, smarty.const.doc_root isn't getting assigned my root path.
Where can I fix this?
Thanks.
Dave
proprod
06-11-2006, 10:03 AM
Content visible to registered users only.
Make sure your site url is listed in the admin panel... if so, quick fix is to edit the file and replace {smarty...} with the actual page url. Not the correct fix, of course, but it'll work.
Redmatrix
06-11-2006, 11:30 AM
WHERE in the admin panel is my question. Where!
neurosis4u
06-11-2006, 11:48 AM
Look at: System--->edit settings--->site
Redmatrix
06-11-2006, 11:52 AM
Yes, I have the three fields populated.
eg:
Name: ListGrind
URL: http://www.listgrind.com/
Description: Grind your need
neurosis4u
06-11-2006, 12:10 PM
Your directory homelink is working and has a reference..
you only have to change it, so that the Homelink on category-pages links to the homepage.
change your Homelink to:
{$smarty.const.DOC_ROOT}/
or
{$smarty.const.DOC_ROOT}/index.php
http://www.phplinkdirectory.com/forum/showthread.php?t=3800
Redmatrix
06-11-2006, 12:23 PM
:-/ It doesn't seem to work. I also changed "home" to "root" just to see if it even takes the change, but no.
I'm editing detail_top_bar.tpl. Is that right?
Redmatrix
06-11-2006, 12:30 PM
Ok, nevermind. Apparently "detail" means the [Detail] page. I found top_bar.tpl at the bottom of the list. And that worked.
All I added was the slash. PS: I am hacking the Spring Break template.
its working for me.. now
but you changed the text from Home to root for some unkown reason :)
nice concept BTW...
Steven Myers
06-11-2006, 02:41 PM
Yeah, keep the root of your directory, it's a nice linux look with the style you have on your template. :D
Good job on changing the code :)
Redmatrix
06-12-2006, 05:24 AM
Thanks guys!
vBulletin® v3.8.0, Copyright ©2000-2012, Jelsoft Enterprises Ltd.