PDA

View Full Version : For links without a website if using Alexa.com addon


angeljs
01-13-2006, 08:02 PM
First thanks for the great advice. I have notices you spend time helping people understand the steps to success with a website directory script (http://www.phplinkdirectory.com/articlescript/Building_a_Website_Directory_that_Works.php). And speaking of a "directory that works", I wanted to address Alexa rankings and listings with no URL.

This is just a suggestion for those directories that allow listings without a URL to be added to their directory. If using the Alexa.com image addon, the listing shows up without an image, and it looks like an ugly error in the directory. I added a small template, and all links without a URL I just direct to an explanation page.

When someone adds a listing with no link, just change it so their link directs to 'na.php' or whatever you've named it.

Below is the code for the files - call them whatever you like, I named mine 'na.tpl' and 'na.php':

template file:
Content visible to registered users only.
If you don't have the google ad addon, just remove that piece of code. Add this to your templates directory.

PHP file:
Content visible to registered users only.
Add this to your main php directory.

(Make sure that:
Content visible to registered users only.has the name of your new template file.)

You don't need to add a link to this page to the top of your directory, as this would be pointless! :)
I really hope this makes sense and that I've explained myself properly! :?