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!

Published by


Donncha Ó Caoimh is a software developer at Automattic and WordPress plugin developer. He posts photos at In Photos and can also be found on Google+ and Twitter.

One thought on “b2 and Smarty Updates”

  1. I followed your thrad from the word press website

    I am trying to do this with b2 (have a user signup and create their custom blog automatically), could you share how you did it?

Leave a Reply