PDA

View Full Version : Using Templates to Customize A Site


joecool
Fri 23rd Nov '01, 5:24am
This message is a follow-up to my original post: http://www.vbulletin.com/forum/showthread.php?threadid=33876

I have been discussing with JamesUS using templates in order to pull in vBulletin into my existing PHP site (see post above). James asked me to take our private conversation to the boards as he would be out of pocket for a few days - so here it is.

JamesUS gave me the following advice in order to modify the templates in order to customize the board for my environment:

"You need to put everything above where you want the forum content to go in
the 'header' template.

For each of the includes, you need to use this code in the 'phpinclude'
template:

ob_start();
require("yourheader.html");
$header = ob_get_contents();
ob_end_clean();

Changing the variable name and file name each time - then replace the
require/include statements with the variable name (eg $header).

Then put everything else in the footer template."

tubedogg
Fri 23rd Nov '01, 7:59pm
You need the (); after ob_end_clean as well. That may be what the problem was.

joecool
Fri 23rd Nov '01, 8:42pm
Thanks, I did have a cut/paste error and went back in and added the "();" after the ob_end_clean(); but this did not have an affect.

The templates are all updated on the admin demo for the default template. Anyone can go look at this right now and see what is current and also, what is not working.

Can someone please go in and look at this and tell me what is wrong? I was extremely excited about this board and was ready to purchase, but my excitement is waning. :(