The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Display Users Viewing non-vBulletin Pages in "Online Users"
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: PHP Code:
More information can be found here: How to create your own vBulletin-powered page! (uses vB templates) ----------------------------------------------------------------------------- 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: PHP Code:
Step - 2 Open your non-vbulletin page and copy these lines to the very bottom of your page: (Note: Before </body>) HTML Code:
<iframe src="http://www.yourdomain.com/extra_online_users.php" scrolling="no" allowtransparency="true" frameborder="0" width="0" height="0"></iframe> 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: PHP Code:
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: PHP Code:
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 (a wordpress blog - this image at the footer is called by iframe 'extra_online_users.php') The viewer is displayed as: Feel free to ask any questions realated to this tutorial. Display Users Viewing non-vBulletin Pages in "Online Users" tutorial by NeutralizeR @ MsXLabs |
#22
|
|||
|
|||
bump
|
#23
|
|||
|
|||
Create a new template module @ vBadvanced, copy the <iframe> code in that template.
|
#24
|
|||
|
|||
I created the same page without using vbadvanced but I was still able to get the error. See here:
http://www.shatteredplanet.org/forum/serverstatus.html |
#25
|
|||
|
|||
Try recreating the plugins at Step 3.
|
#26
|
|||
|
|||
Ok I found the issue, thank you very much for your support!
|
#27
|
|||
|
|||
How is this with 3.8.1?
|
#28
|
|||
|
|||
yes it works
also: i added it on my site with clipshare is there any way to make where exactly the user visit for example : when he visit video link when he visit main page when he visit tags ..etc is there away to make it give some more info |
#29
|
|||
|
|||
I just wanted to say thanks for this article, I have added this to my site so a non-VB page shows up on who's on-line. The other articles I found were a bit out of date.
Just to clarify (as it confused me a bit to start with) to get a non-VB page to show on your on-line list, do the very first step as shown (cut and paste that code into the top of your file), but remove the VBA_ bits if you don't have VB Advance plugged in. In that case also remove the require_once('./includes/vba_cmps_include_template.php'); line too. Then jump to step 3 to do the plugin bits, changing the code as required so it matches your filename. Ideally you need to do this with two PC's running so you can log into the on-line list as a guest, to see yourself on the page. Otherwise when you access your non-VB page (remember to refresh it!) then go to who's on-line, it will show you as browsing who's on-line. Anyway thanks again to the OP and other people who posted here. PS. Working for me on 3.8.4 |
#30
|
|||
|
|||
On 'extra_online_users.php, i have to edit the line $forumpath = 'yourforumpath'; with my forum path?
Edit, nevermind, its working now. |
#31
|
|||
|
|||
Hey
Can only get it to show "Unknown location" everythign else works spot on and thanks!! Code:
if ($userinfo['activity'] == 'extra_online_users') { $handled = true; $userinfo['action'] = 'Viewing The Gallery!'; } |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|