Yearly Archives > 2013
I have tested this with Dreamweaver CS6, Dreamweaver CC, Dreamweaver CC 2014 and it works fine.
NOTE: Doesn’t work in Dreamweaver CC 2017. It sadly has been completely removed by Adobe.
Files with the extension (tpl) by default aren’t recognised by Dreamweaver. Plus when they do get opened in Dreamweaver they don’t use the php code colouring even though they are just the same as a php file with a different extension.
So in order to do this you will need to edit some files on your Mac OS X or Windows, also make sure to quit Dreamweaver.
I was recently working on a website were the PHP function was doing a var_dump of the array and making it into a stdClass. The problem that I had was that there was also some jQuery code that needed to validate the data had been retrieved successfully. So the stdClass object needed to be converted to JSON data.
Here is how…
I had an issue in WordPress where blank searches were still being passed and bringing back results. So I had to find a way of stopping it from being submitted. Searching the web I found this nice little solution/snippet of code from (PAGE/URL NO LONGER EXISTS): http://callmenick.com/2013/04/24/prevent-empty-searches-in-wordpress/
I recently had a problem relating to the main menu with a WordPress site which used the e-shop plugin. The main navigation menu had three buttons – ‘Contact Us’, ‘Useful Links’ and ‘Shop’. I wanted the ‘Shop’ button to stay highlighted even when the user selected a Shop Category or Shop Tag.
Here is the scenario:
I have a shop with sells several cloths items. The categories would be ‘t-shirts‘ and ‘shorts‘. The tags would be the ‘brands‘, ‘colours‘ and ‘sizes‘. When choosing the ‘Shop’ button it takes me to a landing page which shows the top 10 items. Now when choosing a Shop Category it takes me to a page listing all the items for that category. If I then choose a Shop Tag it shows a page listing all the products that use that tag. So how did I make the Shop button stay highlighted all the time?
Here is the problem:
I was working with CodeIgniter and created a search form which passed its search terms via jQuery to the url like http://www.url.com/search/search_terms/, then the php would search the database and bring back the results. So what was the big issue you may think? Well if somebody tried to search for an email ‘email@example.com‘ it would bring back the CodeIgniter error.
An Error Was Encountered
The URI you submitted has disallowed characters.