b2 and Smarty Updates

*phew* Got a lot done tonight:

  • b2 is playing nicely with Smarty. The main index page, comments, trackback and pingback popups are working.
  • I modified the template edit page to edit the .tpl files in the template directory *only* as the user really shouldn’t be seeing PHP. The most complex code in the templates is an if-else statment in some of the popups.
  • I created a “new blog” php script based on the register script. Fill it in and it’ll email me. Once I veriify the person I click on the b2install.php file of the new blog and create the db/finish the install. It also emails the user to tell them the blog is ready. An “exit” command in b2config stops the user using the blog until I verify who they are. (This is important for my own case
  • The b2options page has been expanded to edit the name and description of the blog.

It’s not all perfect though. When a user registers they’re asked to login as “admin”, not the username they entered on registering..
I may call the b2install script when the user registers so they can enter profile information on registration. I can default to displaying the user first name on blog posts instead of “admin”. Would be nicer.
You want a URL? Mail me! Address is over there on the left I think!


Java Developer's Journal – Des …

Mention the latest design pattern and suddenly your peers will see you as a genius of software engineering, “…you see I have employed the Decorator pattern for this particular class…” While you’re fighting the urge to give them a good slap, allow me to let you into the big secret. There is none!

Java Developer’s Journal – Design Pattern Snobs

Development Humour Linux

Via Camworld: Mirror of The An …

Via Camworld: Mirror of The Anti Porn Guy – I can’t believe that people still think like this!

Al Gore on Bush: Corporate Lacky.

I have no idea who Martha Stewart is, and frankly I don’t think I’m missing much.

Has anyone noticed that Irish and English soaps center around a pub?

Comment heard on Today FM: “Am I hearing this right? Irish people are complaining that they have to go to the pub to watch soccer matches?”

Slashdot: The Future Of The 2.0 Linux Kernel – I’m still using a machine at work with 2.0 on it! It was critical to our business until a few months ago but still running a few small apps.

Interview with Ian Jackson – Debian maintainer. Great interview and Ian doesn’t pull any punches. Even Debian ins’t perfect!