How not to modify templates
by
09 Mar 2006
Okay, I've noticed that almost every hack I install for 3.5 requires template edits, and most aren't necessary. With the new hook system you can avoid most template edits. Look at the php file that contains the hook you are using and see how it is creating it's output. A simple example is the many, many postbit template changes hacks require. If you look at the vB_Postbit class in class_postbit.php you will see that the parts of a post are exposed to you quite nicely. If you want to add something after message, for example, just do so: PHP Code:
$this->post['message'] .= 'put something here';
By careful consideration almost all template modifications can be avoided. Just my two cents |