Disjunto
11th September 2007, 06:40 AM
Here's a small summery of a tutorial / how do I, as posted on vBulletin.org. Go check it out!
Title: Display Users Viewing non-vBulletin Pages in "Online Users"
Author:
Published: Sat, 08 Sep 2007 16:00:02 GMT
Hi,
I had some non-vBulletin pages integrated to the vb database and i wanted to show the users viewing those pages in Online Users so i used this piece of code at the top of the non-vBulletin pages:
Codedisplayerror: (Update license status (http://members.vbulletin.com/membersupport_priority.php)) You cannot view code until you prove your license status
You can remove the lines related to vBadvanced if you don't have it installed.
More information can be found here:
How to create your own vBulletin-powered page! (uses vB templates) (http://www.vbulletin.org/forum/showthread.php?t=62164)
-----------------------------------------------------------------------------
Let's say you have a page nothing to do with vBulletin & vBulletin database (wordpress pages, external html pages, even pages of your other domains etc...) and you still want to show the page viewers in Online Users of vBulletin.
Step - 1
Create a page called 'extra_online_users.php'.
Copy these lines in it:
Codedisplayerror: (Update license status (http://members.vbulletin.com/membersupport_priority.php)) You cannot view code until you prove your license status
Save and upload this page to your domain or forum root.
Step - 2
Open your non-vbulletin page and copy these lines to the very bottom of your page:
(Note: Before )
Codedisplayerror: (Update license status (http://members.vbulletin.com/membersupport_priority.php)) You cannot view code until you prove your license status
Now, anybody visits your non-vbulletin page will be displayed at "Online Users".
But it will show their location as "Unknown Location". We can fix this of course.
Step - 3
Go to your AdminCP > Plugins & Products > Plugin Manager > Add new Plugin
Product: vBulletin
Hook Location: online_location_process
Title: Extra Online Users Process
Execution Order: 5
Code:
Codedisplayerror: (Update license status (http://members.vbulletin.com/membersupport_priority.php)) You cannot view code until you prove your license status
Save.
Go to your AdminCP > Plugins & Products > Plugin Manager > Add new Plugin
Product: vBulletin
Hook Location: online_location_unknown
Title: Extra Online Users Unknown
Execution Order: 5
Code:
Codedisplayerror: (Update license status (http://members.vbulletin.com/membersupport_priority.php)) You cannot view code until you prove your license status
Save.
If you want to apply this tutorial for more than one page, just create another instance of "extra_online_users.php" and name it like "extra_online_users2.php".
Don't forget to add the lines to the plugins and make the name changes.
Demo and screenshots:
Messenger Blog (http://msn-live-messenger.msxlabs.org/)
(a wordpress blog - http://www.msxlabs.org/msxteam/NeutralizeR/msxlabsbanner.gif this image at the footer is called by iframe 'extra_online_users.php')
The viewer is displayed as:
http://dts.msxlabs.org/NeutralizeR/Snap129.png
Feel free to ask any questions realated to this tutorial.
Display Users Viewing non-vBulletin Pages in "Online Users" tutorial by NeutralizeR (http://www.msxlabs.org/forum/members/1-neutralizer.html) @ MsXLabs (http://www.msxlabs.org)
Read More! (http://www.vbulletin.org/forum/showthread.php?t=157329&goto=newpost) :D
Title: Display Users Viewing non-vBulletin Pages in "Online Users"
Author:
Published: Sat, 08 Sep 2007 16:00:02 GMT
Hi,
I had some non-vBulletin pages integrated to the vb database and i wanted to show the users viewing those pages in Online Users so i used this piece of code at the top of the non-vBulletin pages:
Codedisplayerror: (Update license status (http://members.vbulletin.com/membersupport_priority.php)) You cannot view code until you prove your license status
You can remove the lines related to vBadvanced if you don't have it installed.
More information can be found here:
How to create your own vBulletin-powered page! (uses vB templates) (http://www.vbulletin.org/forum/showthread.php?t=62164)
-----------------------------------------------------------------------------
Let's say you have a page nothing to do with vBulletin & vBulletin database (wordpress pages, external html pages, even pages of your other domains etc...) and you still want to show the page viewers in Online Users of vBulletin.
Step - 1
Create a page called 'extra_online_users.php'.
Copy these lines in it:
Codedisplayerror: (Update license status (http://members.vbulletin.com/membersupport_priority.php)) You cannot view code until you prove your license status
Save and upload this page to your domain or forum root.
Step - 2
Open your non-vbulletin page and copy these lines to the very bottom of your page:
(Note: Before )
Codedisplayerror: (Update license status (http://members.vbulletin.com/membersupport_priority.php)) You cannot view code until you prove your license status
Now, anybody visits your non-vbulletin page will be displayed at "Online Users".
But it will show their location as "Unknown Location". We can fix this of course.
Step - 3
Go to your AdminCP > Plugins & Products > Plugin Manager > Add new Plugin
Product: vBulletin
Hook Location: online_location_process
Title: Extra Online Users Process
Execution Order: 5
Code:
Codedisplayerror: (Update license status (http://members.vbulletin.com/membersupport_priority.php)) You cannot view code until you prove your license status
Save.
Go to your AdminCP > Plugins & Products > Plugin Manager > Add new Plugin
Product: vBulletin
Hook Location: online_location_unknown
Title: Extra Online Users Unknown
Execution Order: 5
Code:
Codedisplayerror: (Update license status (http://members.vbulletin.com/membersupport_priority.php)) You cannot view code until you prove your license status
Save.
If you want to apply this tutorial for more than one page, just create another instance of "extra_online_users.php" and name it like "extra_online_users2.php".
Don't forget to add the lines to the plugins and make the name changes.
Demo and screenshots:
Messenger Blog (http://msn-live-messenger.msxlabs.org/)
(a wordpress blog - http://www.msxlabs.org/msxteam/NeutralizeR/msxlabsbanner.gif this image at the footer is called by iframe 'extra_online_users.php')
The viewer is displayed as:
http://dts.msxlabs.org/NeutralizeR/Snap129.png
Feel free to ask any questions realated to this tutorial.
Display Users Viewing non-vBulletin Pages in "Online Users" tutorial by NeutralizeR (http://www.msxlabs.org/forum/members/1-neutralizer.html) @ MsXLabs (http://www.msxlabs.org)
Read More! (http://www.vbulletin.org/forum/showthread.php?t=157329&goto=newpost) :D