Log in

View Full Version : making variables work outside of the forum directory?


BigJohnny
09-18-2010, 06:01 PM
Ive got a custom index.php file created using an article to make a custom vB page. This index file resides outside of the forums directory, but will be the main index for my site.

I have it working to the point that it loads the style and everything else, but I added the whats going on box, and birthdays and stuff to this custom index, but none of the variables work.

so it simply says Most users ever online was , at .

$recordusers, $recordtime, and $recorddate aren't being parsed, or the information isn't there.

one last thing, with the custom index file, since it isn't showing forums or anything, do I need template hooks from FORUMHOME or can they be removed?

--------------- Added 1284851679 at 1284851679 ---------------

I've looked everywhere I can think of, I don't know what I need to change to get those variables to show up on a page that is outside of the forums directory. everything else seems to be working.

--------------- Added 1284918581 at 1284918581 ---------------

Cleared this one up.

Looking in the index.php file for vBulletin I just copied the code to my custom page and now it works great.

Actually thanks to this method I've gotten quite a few things tied into a main site index page.