PDA

View Full Version : "Latest Links", "Top Hits", and "Search" not working


mikesmullin
05-17-2006, 09:13 PM
I just paid for PHP Link Directory 3.04 and you can see it installed here:

http://www.soldin10days.biz/got2blike/

I am trying to use the PepperMint Template which they say is compatible with PhpLD 3.x. I got it from here:

http://www.web-designers-directory.org/phpLD-template.php

Everything works except "Latest Links", "Top Hits", and "Search". These work fine when the default template installed, but when the PepperMint template is installed they just display the main page instead of the results.

Their demo site shows these links working perfectly, but I don't know how to tell which version of PhpLD they are running.

After some light debugging, I can tell that the SQL query is returning results, the template just isn't displaying it.

I have emailed the authors at Web Designers Directory but I also wanted to post here because I noticed this happens with some other templates that are still 2.0, and a lot of other users who are upgrading will probably run into this issue.

Any help would be appreciated.

Boby
05-17-2006, 09:28 PM
There was a change in 3.0.4
Change your "Latest Links" to point to index.php?list=latest
"Top Hits" to point to index.php?list=top
Take this input search field and replace it in your template:
Content visible to registered users only.
These three steps you have to do in templates/top_bar.tpl (I think)

Then for displaying the links, edit templates/main.tpl (or whatever tpl file your template is using) and change the {if ...} condition for displaying links with following:
Content visible to registered users only.

Boby

mikesmullin
05-18-2006, 06:17 PM
That did the trick. Thanks very much for your timely response!

Millen
05-19-2006, 12:05 AM
hmmm wich line ?

Content visible to registered users only.

newquestions
05-20-2006, 10:15 AM
Please clarify this. I am also unable to find the line you refer to. Please be
specific and let us know the {IF...} line to replace thanks :)

Cheers,
Jonathan

blogmaster2003
07-10-2006, 08:52 PM
Content visible to registered users only.


Can someone do a find and replace to do these modifications?

Thank you.

dobee
07-12-2006, 06:06 PM
Thanks for this post! I was experiencing the same problems. Search, Hits and Latest Links works fine now! Thanks again for the post and all the responses.

HitAmp.com
08-09-2006, 09:43 AM
Content visible to registered users only.

I can't find this line either. Can you please provide some more info as to what we should be looking for, or can someone else who has found it post the line?

Your "index.php?list=latest" and "index.php?list=top"changes fixed my links, but not the resulting pages.

From what I can tell this only affects users of the Peppermint skin:
http://www.web-designers-directory.org/phpLD-template.php

Boby
08-09-2006, 12:50 PM
This:
Content visible to registered users only.
needs to be replaced with:
Content visible to registered users only.

Boby

HitAmp.com
08-10-2006, 09:58 AM
Thanks Boby,
That clears it up a bit! There are still some conflicts with this template and version 3.04, (sort by: PageRank | Hits (http://www.hitamp.com/index.php?s=H) | Alphabetical (http://www.hitamp.com/index.php?s=A) doesn't work, and I get Javescript errors on most pages), but at least my "Latest Links (http://www.hitamp.com/index.php?list=latest)", "Top Hits (http://www.hitamp.com/index.php?list=top)" work now!

Boby
08-10-2006, 10:59 AM
Well, you should contact the author of your template.

ikke
08-14-2006, 09:23 PM
:) Thanks very much for your timely response!:)