Autumn Sun and Coding Fun
After a bright and early start to the day after my scrumptious chicken last night I felt good as the sun shone through my window and now, in the late afternoon, I’m done.
CommentLuv is now updated to 2.5, it incorporates the heart tip plugin as an optional extra and makes it compatible with wp2.5 too.
I spent most of the time separating the jquery and other scripts into include folders which makes the header source much tidier and the scripts themselves much easier to edit and update. The last 2 hours have been spent getting the tip box to work as part of commentluv and the result is activated here for testing.
I’ll let it settle in for a day or so and then do a codex update along with an update to the CommentLuv registered members to let them know about the site allowing them to edit their profile and have their description parsed and placed in the info boxes.
I made some minor changes to the code so that those who prefer the old style commentluv can have a checkbox to untick if the user doesn’t want the last post shown. Hopefully that will make it easier for the previous versions users to switch to the new one.
To celebrate, I’m off for a walk next to the canal with the missus
edit… I had such a nice walk that I came up with some good ideas and my missus’ secret stealth plan to get us to end up in Oxford street gave me time to run them through my head until I could get back to the keyboard and add them in!
I have put in a bit of code that should make it work out of the box for most blogs, most of the questions I get on the forum are solved either by getting the person to change their comment form ID value or telling them that it is working but they can’t see the button and checkbox while they’re logged in as admin.
Now, the form id is found out automatically as long as the comment text area ID is correct and that should be because all wordpress blogs send their comment as POST variables which use the name attribute of the form and for that to work on all themes, all themes must use the same values for the name attribute.
If I know what they are then I can find out the parent form ID easily.
I’ve also added the checkbox and badge to show for admin so I no longer have to spend ages visiting peoples sites and viewing the source to let someone know how to get the plugin working.
this is really the best version out yet! I’ll update it on the codex tomorrow
Filed under: Blog News, Blog Tools, Code, PHP, ajax | Tagged: Code, commentluv, update