Quote:
Originally Posted by ogden2k
How can I get this to work in a separate folder? I used this code:
PHP Code:
// ######################### REQUIRE BACK-END ############################
chdir('/home/public_html/forums/');
require_once('./global.php');
But I have the CSS saved in a file and it's broken now. How do I resolve this issue?
|
if your css has broken, just go to your ACP and go to edit style or templates and save it, vb3 will save a new css file in your server.
the code you used is correct.
Quote:
Hi, i did the test example and it worked great cheers, how ever i dont want to call the template from its own file, instead i want to call the template within an exisiting one...
|
eval('$varible_NAME = "' . fetch_template('template_NAME') . '";');
if you want to have something under navbar (or anything else) in your custom (non-vb) files place that line in the file and in the template which was created with:
eval('print_output("' . fetch_template('TEMPLATE_NAME') . '");');
call out $varible_NAME, you can place it everwhere you want to.
and in vb3 files, well...just repeat the process ^^
Quote:
2ndly,
i'd like to create more pages outside of the forum index, is it possible to have database driven pages for these things (instead of creating a new test_x.php for each, which is totally unreasonable). the use would be to somehow integrate my current article system w/ vbulletin so that i can use all the vbulletin functions on those pages.
|
pay attention: the file names could be whatever you want, it doesn't have to be exactly like the template names. It's just easier for you if you use the file names same as templates. so it's possible to create your own database driven pages, if you notice that's how people making hacks ^^