How to Create a Simple Message Debugging Script for Your Website in PHP
Last Updated on Saturday, 23 June 2012 04:12 Written by Richi González Monday, 25 June 2012 12:00
Hello,
Whenever I am developing, I need to know where the script fails, what is currently doing, what values variables have, etc, therefore I always use a simple messages/errors script for debugging that will throw all the messages and errors to the top of the page.
Difficulty level: Easy
1. Create/Open a PHP file
2. Declare our variable $msg as an array
Learn MoreCustom 404 Error Pages Tip
Last Updated on Tuesday, 13 March 2012 01:57 Written by Richi González Monday, 12 March 2012 12:00
Hello,
Do you have a custom 404 error page that only says the page was not found and gives a link at the bottom? Well, today I will give you a great tip that has worked for me over the years. You will lose fewer visitors than with a plain 404 error page and be able to increase your earnings.
So you want to keep more visitors on your website, even if they didn’t find the page they were looking for? When somebody gets to your 404 page, you want that person to stay. Aside from displaying a message that just says the page was not found, you will also need to add more items that will try to advertise your website. You could possibly add internal links of interest; this way, even if they did not find what they were looking for, they can read some other thing that is related to their topic.
Learn MoreTemplate Tricks with CMSMS Products Module
Last Updated on Tuesday, 26 July 2011 08:03 Written by Goran Ilic Tuesday, 26 July 2011 12:00
There are many great modules for CMS Made Simple. One of those is the Products module, part of Calguy’s eCommerce suite. However, there are some downsides in the template structure, so I want to quickly show you how some long unanswered forum post can suddenly become an answer with a single line of code.
The problem I was facing a few days ago was how could I possibly add “active” class to Products hierarchy navigation and Parent Hierarchy.
If you have ever worked with Products module, you know that the Hierarchy Report Template is not really the best solution as it lacks of some needed variables support like MenuManager provides.
So the default Products install Hierarchy Report Template looks like this:
Learn More
Recent Comments