Log in

View Full Version : Vbulletin template php on non vbulletin pages


CommanderFluffy
05-07-2008, 12:54 AM
is there a way to put vbulletin php on a non vb page and it is in other directorys?

say the tree would look like so



includes
public > community(vb in here)
media
(base files listed such as index and other non vb files)


the php from the community folder can be used globally among the entire website. such as login stuff and or general template. is this posible?

Dismounted
05-07-2008, 06:57 AM
Yes, you will need to change the directory to "community" (chdir()) before including global.php.

CommanderFluffy
05-07-2008, 12:37 PM
thats all that needs to be included in all the php file.




<?php

require_once='global.php'
(chdir(community))

?>


or something close to that?

Dismounted
05-07-2008, 01:04 PM
I'd suggest you read up on PHP as well.