Question;
I have the ability to log in users on all my non-VB pages. If a user comes on a non-VB page, it'll fetch their cookies and automatically log them in if they are a member who selected the Remember Me option. Otherwise it'll act as if they are a Guest user.
I don't want to display the Currently Active Users on my non-VB pages, but I'd like to know if there are users on my non-VB pages by looking at the Currently Active Users on the forumhome.
Do all I need to add to do this then is this?
Code:
// ######################### REQUIRE BACK-END ############################
chdir ('/path/to/your/forums');
require_once('./global.php');
require_once(DIR . '/includes/functions_bigthree.php');
That way Ill know how many vBulletin members are on at a certain time throughout my entire website, not just the forums? (Since I have that code in the header.php file that all non-VB pages use)
[edit]
I tried this out but it's not recognizing users on my site's index.php (which uses the header.php file I'm putting the code into.
Here are the first lines that the header.php file is using to try and get this working:
Code:
<?php
//vBulletin Member Recognition
$curdir = getcwd ();
chdir('forums/');
require_once('forums/global.php');
require_once(DIR . '/includes/functions_bigthree.php'); //Fetch current active users?
chdir ($curdir);