Having to add a new form to an old Modx Evo site threw up a bug with the eForm add on today, when submitting the form I was constantly told I had an ‘Invalid Data Error’ on my dropdown field. Continue reading “Modx Evo eForm Throws Constant Validation Error On Select Options Created Using Snippet”
Using RegEx To Determine If Search Query Is A Postcode/Partial Postcode
Working on a site which asks users to enter a “place name, area or postcode” to search by, niggly problem where searching for postcode “OX2” for example, not only returned properties in OX2, but also in OX29. Continue reading “Using RegEx To Determine If Search Query Is A Postcode/Partial Postcode”
Setting MySQL User Passwords and Permissions Via Command Line
When setting up a database for a new cloud server we were told it couldn’t be accessed by Navicat etc, so we were lumped with phpMyAdmin, and that we couldn’t have seperate users, everything had to be in root. Continue reading “Setting MySQL User Passwords and Permissions Via Command Line”
Friendly url’s giving a 404 error even though mod_rewrite is installed
When transferring a ModX site across to a newly setup cloud server I could only see the home page. After running through the ModX setup process again to get the manager’s file paths aligned correctly I checked through all the possible causes of this problem in the System Settings. Still no joy, all i got was a “File not found”. Continue reading “Friendly url’s giving a 404 error even though mod_rewrite is installed”
JQuery IE6 fix for CSS Dropdown Menu
As usual IE6 causing me problems, the lovely CSS controlled dropdown navigation on the latest site i’m working on is fine in all browsers except IE6. Continue reading “JQuery IE6 fix for CSS Dropdown Menu”
Article: Open Plan Offices Must Die
Came across this interesting article by Matt Rogish about working environment for programmers, I definitely agree with the “put all the developers in a room with a door that closes” sentiment.
I am never without my headphones to drown out the background noise of the open office. Continue reading “Article: Open Plan Offices Must Die”
Hiding an entire site from robots
I don’t think i’ve ever had to hide an entire site from search engines before, so today I learnt something new that saves a lot of time.
Rather than writing a complex robots.txt file you simply add the following line of code to your page <head>
<meta name="robots" content="noindex">
Simples. Continue reading “Hiding an entire site from robots”
JQuery UI: Unnecessary scrollbar in accordion
Creating an accordion in a page, set it to automatically take the height of the biggest div etc, all fine except I was getting an unwarranted scrollbar in one of the divs. Continue reading “JQuery UI: Unnecessary scrollbar in accordion”
Enabling PHP5 on 1and1 hosting
Trying to upload a Zend Framework project to my 1and1 hosted webspace proved more complicated than it should have today.
Uploaded my working Zend project only to recieve errors when attempting to view it online, first thing to check – Is it in PHP5? According to my 1and1 control panel it is, but just to be sure I edited the local PHP settings to PHP5 too. Continue reading “Enabling PHP5 on 1and1 hosting”