Archive for November, 2008
phpLD Captcha Problems
Posted by admin in captcha, phpLD, web applications, web programming on November 29th, 2008
A common problem I’ve noticed with phpLD (php link directory) installations is Captcha not working properly. On these sites you will be able to complete all of the link information, but when verifying that you are human using Captcha, you can only enter a portion of the Captcha code that you are given. You are therefore unable to submit the link, because you will always receive a Captcha error. Often the Captcha code contains six (6) characters, but the Captcha field only allows you to input five (5) characters maximum. You would think that these Webmasters would notice the lack of link submissions.
The problem is due to the use of a third party template that has the maximum characters for the Captcha input field set too low. To resolve the problem, simply open templates/submit.tpl and find the code for the Captcha field. It will be something like: input type=”text” name=”CAPTCHA” value=”" size=”10″ maxlength=”5″ class=”input.” Just change the maxlength to as many characters as you need to hold the Captcha numbers that are being generated.
Adding Google Analytics Code to a phpLD installation
Posted by admin in google analytics, phpLD on November 29th, 2008
Here’s a quick post to help you add Google Analytics tracking code to your phpLD (php link directory) template. Because phpLD uses the Smarty templating system, simply opening the footer.tpl and placing the Analytics code before the closing body tag will result in an error. You need to tell Smarty not to parse the code between the script tags. To do so, open your templates/footer.tpl file, and right before the closing body tag, place your Google code like this:
{literal} Your-Analytics-Code-Here{/literal}
Now save and put. That’s it!



Recent Comments