cpLinks - a free directory script that creates static HTML pages from PHP and MySQL scripts SEO Friendly Directory

Frequently Asked Questions

General Issues
Question: Some of my categories and sub categories are not listed correctly - what is wrong?
Answer: If you create a category or sub category with the "&" character in, it may not work properly as this character can cause problems with web servers. The simple solution is to use the word "and" instead ie call your category Web Design and Hosting and not Web Design & Hosting.
Question: I get warning messages when trying to build a new category - what is wrong?
Answer: If you add a new category and then run the "build entire directory" process you may get these messages. This is because of the order in which pages and categories are built. This is corrected in version 1.02 which you can download here.
Question: I STILL get warning messages when trying to build a new category - what is wrong?
Answer: Ensure that you have set the correct value for "The absolute path to your links directory". This is in system setup in your admin control panel.
Question: When I try and build anything, the script seems to hang - what is wrong?
Answer: This is probably due to PHP needing to be configured with the FTP capabilities. Ask your host to do this for you.
Question: I cannot seem to add links to categories
Answer: This is because cpLinks has been designed to hold links at the sub category level and not with categories. This means that the data hierarchy is Category->Sub category->links.
Question: I cannot seem to manage links in the admin control panel
Answer: You can manage links once they have been approved by clicking on the "light bulb" icon in the category management screen. You can both edit or delete existing links.
 
Customising cpLinks
Question: How can I change the look of cpLinks to match my site?
Answer: There are a number of template files in the templates sub directory which control how your site looks. You need to manually edit these files to enter any HTML or PHP commands you want. Remember to "build" the entire directory to make your changes operate throughout your links directory.
Question: When I make a change to the categories in the admin CP, why are they not shown in my links directory?
Answer: cpLinks creates static HTML pages from your database. If you make changes to your categories or links in your database using the admin CP, you will then need to "build" the pages for that category before your changes will take effect in your links directory.
Question: Can I remove the "Powered By" copyright links?
Answer: The license stipulates that these must remain on every page, however you can pay $65 to remove these links. Please contact us to arrange this.
 
cpLinks PHP tips
Question: How do I make my index page templates different from the other pages?
Answer: There is a simple trick with PHP to tell you what page you are on. Two variables are set by the build scripts: "category" and "sub_category". If you add PHP code to print these variables from within your mnl_left_hand_column.php template script, and then build the entire directory, you can see that if category == "" and sub_category == "", this is your index page. You can then add further PHP code to make whatever differences between pages you want. Remember to remove the printing of these variables and rebuild your entire directory again after you've finished experimenting.

This page was last updated on 28/Oct/2004