Add Pages to Sitemap

We added  several pages to our websites through the pages feature in PHPLD, however those pages are not in the sitemap that PHPLD generates, so we made a mod to  add all the pages to the sitemap.

Remove Detail Pages from Sitemap

So you are not using the detail pages in PHPLD and you want to remove them from the Sitemap. Using an FTP Client, like FireFTP, go to /admin/conf_sitemap.php.

1) Find:

if ($createGoogleSitemap == 1 && !empty ($googleSitemapString))
{
$links = $db->GetAll ("SELECT * FROM `{$tables['link']['name']}` WHERE `STATUS` = '2' ORDER BY ID ASC LIMIT {$start}, {$range}");

place // in front of the

$links = $db->GetAll ("SELECT * FROM `{$tables['link']['name']}` WHERE `STATUS` = '2'ORDER BY ID ASC LIMIT {$start}, {$range}");

2) Do the same for the articles line here:

//Addon for articles
$articles = $db->GetAll ("SELECT * FROM `{$tables['article']['name']}` WHERE `STATUS` = '2' ORDER BY ID ASC LIMIT {$start}, {$range}");

Download Mod

Upgrading and Moving PHPLD

Steps to upgrading and moving PHPLD:

Step 1) Download your current template from your current host so that your directory will look the same.
Step 2) Download your database from cpanel.
Step 3) Download the new version of PHPLD and unpack on your computer, FTP the files onto your
Step 4) Install your database into your new cpanel.
Step 5) Run the install script that will update your directory and complete the installation and transfer.
Step 6) Upload the template, you download from the original server.
Step 7) Update any files related to extra mods that you had installed.

And there you have a new Directory.

Different Paypal Returns

Another mod we added to our Directory, when someone buys a package and pays with paypal;  when they return they are send to a different Thank-you page based on what they bought. This allows for better tracking in Google Analytics and customized messages (for instance information on how to renew the submission once it ends if it is a subscription as opposed to a permanent listing).

Custom Slug

While we were rebuilding our Directory, we ran into some difficulties with the URL structure. We had some old URLs that we wanted to maintain. So we hired the kind fellows at PHPLinkDirectory to build us this custom mod that would enable us to change the URL of any category to whatever we wanted. If you are interested in such a mod for your directory, let us know.

Download Custom Slug Mod

Welcome to Maplesquare

Hello, Welcome to Canadian Web Directory.