View Full Version : How to integrate the online-script on non-vbulletin pages
Peter Hauser
10-18-2001, 10:15 AM
How to integrate the online-script on non-vbulletin pages?
I want, that the vbulletin count ALL visitors off a domain, while they are surfing on other pages outsite the vbulltin. All pages are with php extensions...
Peter Hauser
10-28-2001, 07:09 PM
No comments? No suggestions? Where are the profis? ;) Please...
hmm.. well what do you mean.. i might be able to help you.. i think
Peter Hauser
10-29-2001, 06:03 AM
hmm, ok, sorry for my english...;)
On 3DWIN, we have to scripts, vbulletin and PHPNuke. Every script has its own online script (how many users are online), but I want only the onlinescript from the vbulletin, so the vbulletin should count all visitors on all (non vbulletin) pages on the whole domain www.3dwin.de.
ohh so basically you want to have it so that in your guest on you site will show up in the how's online stats
pdaGuy
11-02-2002, 01:47 PM
Originally posted by Peter Hauser
hmm, ok, sorry for my english...;)
On 3DWIN, we have to scripts, vbulletin and PHPNuke. Every script has its own online script (how many users are online), but I want only the onlinescript from the vbulletin, so the vbulletin should count all visitors on all (non vbulletin) pages on the whole domain www.3dwin.de. Yea, I'm interested in this too!! Anyone know how to do this??
Erwin
11-02-2002, 07:46 PM
This thread is over a year old. :)
pdaGuy
11-03-2002, 07:49 AM
I know that Erwin, but I searched the whole forum and I couldn't find something similar to what I want. So I thought it would be better to reply on this post... isn't it?
I can start another thread if you want :D
Erwin
11-03-2002, 08:50 AM
I don't think it exists. :)
pdaGuy
11-03-2002, 08:52 AM
So you mean that there is no way to make the "vBulletin Online Script" grab visitors from non-vB pages?
Maybe there is no such hack available, but isn't anyone here that knows how to do it?
Erwin
11-03-2002, 08:57 AM
There is hack that shows users online in vB on a NON-vB page, but not the other way around. To do this, the other pages need to be PHP, and what you do is integrate them by including global.php - as easy as that.
pdaGuy
11-03-2002, 08:59 AM
Ok I've tried that, but the problem is that when you inlcude the global.php on pages that are outside the VB directory you get a path error. Is there a workaround on this?
pdaGuy
11-03-2002, 09:08 AM
Here is an update...
I placed the following code on a non-VB page which is also in a different directory...
require("http://www.mysite.com/vbpath/global.php");This way I don't get the path error BUT when you go to see who's online you see a Guest viewing the global.php file. The weirdest thing though is that this guest has the IP of my website! :surprised: Is this normal? Can I change this in some way?
someone2
11-13-2002, 09:04 AM
Bumping the 1-year-old-thread again:
Did anyone ever got a solid solution for this? What PHP code should we implement on non vb-pages in order to also calculate guest & member numbers who are surfing non vb-pages?
pdaGuy
11-15-2002, 01:51 PM
Nothing yet???
And I thought that this would be easy for some great hackers out there... hmm. :(
Isn't there anyone else interested in this?
someone2
11-15-2002, 03:21 PM
This is what I found so far which you can include into other non-vb php pages:
<?php
chdir("path to the dir if outside forums dir/");
require('./global.php');
?>
If this is your forum dir:
*ttp://www.somesite.com/forums/
then the chdir line should say
chdir("../");
Everything works fine, except when non-vb pages are also called index.php, cause then the Who's online page will also show the Forums Main Index as a location, which is not correct of course.
pdaGuy
11-15-2002, 04:11 PM
Hmm.. Thanks someone2!
I'll give it a try ASAP! ;)
zajako
11-16-2002, 05:12 PM
you can also use vbstats, and then use the vbstats include file to make the counters update.
also grabbing the global will work, but to make the whos online thing show a name of the pages instead of a url, you will need to add a few lines to the online.php file.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.