Archive

Archive for the ‘WebDev’ Category

WordPress 2.0.3 bugs & fix

June 7th, 2006 Mark No comments

I’ve updated most of my WordPress installs to 2.0.3 and there’s a few dodgy bugs which are quite annoying – confimation when editing stuff that shouldn’t be there and also extra backslashes being inserted when editing things

Fortunately Mark Jaquith has produced a plugin which fixes these bugs

Categories: Internet, WebDev, Website Tags:

Archives Converted

June 5th, 2006 Mark No comments

I wrote a quick php script to convert my custom db stored blog posts into WordPress format and insert them into my new database.. it seems to have gone alright, there’s a couple of errors but I’ll fix them over the next few days

Going to have to spend a bit of time creating categories too but that shouldn’t take too long

Oh, also the site template! I think I’ll create something new anyway :)

Categories: WebDev, Website Tags:

Switched to WordPress as CMS

June 5th, 2006 Mark No comments

I’ve decided to ditch my custom CMS for the time being – unfortunately I haven’t really got the time or inclination to work on developing it right now.

I’ll retroactively add my existing posts to this WordPress installation as some of them were quite useful!

Categories: WebDev, Website Tags:

Zebra Tables In WordPress

May 18th, 2006 Mark No comments

I was having great difficulty in pasting a zebra table (with <tr class="odd"> for odd rows) into the WordPress TinyMCE editor…

After messing around with the sourcecode for a while I realised that the TinyMCE editor_plugin.js was the culprit.. after commenting out the “Handle table badness.” bit I could give my rows classes

At the moment I don’t have time to look into the issue further and provide a real solution

I realise I could’ve used some sort of Zebra Table javascript but in this case manually formatting the rows was the order of the day

Regarding this website.. unfortunately I just don’t have the time to finish building my custom CMS so in the near future I will probably base it off a heavily customised WordPress install… watch this space

Categories: WebDev, Website Tags:

ColourBase and WordPress

March 11th, 2006 Mark No comments

I’ve been working on my ColourBase website recently.

I decided that rather than have a half assed publishing system (like the currently unfinished one I use on this website), that I would instead try to integrate WordPress into the existing website..

It seems to have worked quite well!

I will probably adopt it here, I think that’s the best bet until I can finish my own system completely :)

Categories: Opinion, WebDev, Website Tags:

Removing cruft from Google via GoogleBot

December 12th, 2005 Mark No comments

I submitted a request to Googlebot on 30th November to remove all pages relating to my /forums/ as there’s stuff still indexed/cached in Google that’s not been there for months

I noticed today that in the past couple of days the status of the request had changed to completed.. so I search google site:www.influenced.net and there’s still a lot of stuff that’s indexed under /forums/ which doesn’t exist.. so what the heck has been completed exactly?

I’m going to retry it via a rule to deny indexing the /forums/ folder in robots.txt and see what happens..

Edit: robots.txt seems to have done the trick

Categories: Internet, WebDev, Website Tags:

PHP-Markdown & PHP 5.1 Fix

November 30th, 2005 Mark No comments

Today influenced.net’s host has had its PHP module upgraded from version 4.x to 5.1.1.. this broke a couple of things, most notably PHP-Markdown

I proceeded to download the latest version of PHP-Markdown but still, the issue remained..

The fix was to modify the _DoCodeBlocks function as follows:

function _DoCodeBlocks($text) {
#
#   Process Markdown `<pre><code>` blocks.
#
global $md_tab_width;

$text = preg_replace_callback('{
(?:nn|A)
((?:(?:[ ]{'.$md_tab_width.'}|t).*n+)+)
((?=^[ ]{0,'.$md_tab_width.'}S)|Z)
}xm',
'_DoCodeBlocks_callback', $text);

return $text;
}

I don’t exactly know why this change worked, it seems something wasn’t being escaped properly

Categories: Internet, WebDev Tags:

PHP 5.1

November 10th, 2005 Mark No comments

Where has it gone?

It seems to have disappeared from the php.net downloads page for some reason..

I’ve found it again though @ snaps.php.net

Looks like I’ll be using the mysql php extension for the time being on hmgpaint.co.uk as the mysqli extension only works with php 5.1 and you can’t have both installed apparently on linux (libmysqlclient12 vs libmysqlclient14)

Categories: WebDev Tags:

Flash in XHTML

October 21st, 2005 Mark No comments

I’ve read a couple of articles about the markup necessary to display Flash content in a XHTML page and validate fully.. e.g. The Satay Method

I was just thinking – instead of using a Flash container movie to load other movies (so IE can stream).. can’t you just create a HTML page with a DocType which allows the Flash mumbo-jumbo, then embed that via the object tag? Would the double object embed work?

I think I’ll try this later and report my findings

Categories: WebDev, Website Tags:

Multiple opposing float troubles

October 19th, 2005 Mark No comments

I’ve been having a lot of trouble trying to get my layout to look the way I want it. The following image shows what I was aiming for:

Screenshot

Description of image:

  • content_container is just a default div with margins such that it’s centered
  • There are multiple article div’s, each just a default div
  • There is one article_icon div per article, it’s floated left
  • #right1 is a right floated div inside #content_container
  • #right2 is a right floated div inside #content_container, it has clear: right set so that it appears beneath #right1.. it’s about half the width of #right1

Unfortunately whenever I tried this, adding a clear:right to the second right float would cause the left float to move downwards on FF and Opera but IE still rendered alright.

In the end I’ve now stuck both the right floats into a single right float, i.e. so there’s no need for a clear: right, which works but doesn’t look as good…

Categories: WebDev, Website Tags: