PDA

View Full Version : Help with vBHome Lite appreciated


razorownz
02-11-2004, 07:48 AM
There is a block called advertisement in it which lets you add HTML for use with Partners etc.

I Want to add another block with HTML content aswell but I dont know how.

Since im a newbie i just TRIED and created a new template called home_daily and added $daily in the 'home' template but it didnt show up.

Does anyone know how I can easily add a new HTML block to the mainpage ?

g-force2k2
02-11-2004, 09:05 AM
Have not looked at the hack, but either way you would have to edit the main template which I assume would be 'home' as you did and you can basically add all of the data there, but if you're trying to get $daily to return the contents of the template home_daily then you need to place this line of code in the index.php or whatever the main file is called.

eval ( '$daily = "' . fetch_temlate ( 'home_daily' ) . '" ;' ) ;

Place the line before the eval of the home template preferably not in any conditionals, but perhaps right above that line.

Hope that helps some.

Cheers,
g-force2k2

razorownz
02-11-2004, 10:19 AM
once again, you've helped me... thanks alot mate