vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   How can I integrate who's online with a page which I made (https://vborg.vbsupport.ru/showthread.php?t=289047)

irfan72 10-14-2012 09:52 AM

How can I integrate who's online with a page which I made
 
Hello
Does anyone know on how can i show who's online on a page which i have created on my site.
An example would be, when users come to my forum on index.php, it would show on who's online list,but how can I do that if I want to do it for an other page which would be made by me. Example, page.html or .php, that page.php or .html would not list in who's online if someone is viewing it. How can I make it view able on who's online list.
Please do help
Thank You

--------------- Added [DATE]1350217062[/DATE] at [TIME]1350217062[/TIME] ---------------

I tried https://vborg.vbsupport.ru/showpost....0&postcount=25 but didn't work :(

kh99 10-14-2012 12:09 PM

If the page you created includes (or could include) vbulletin's global.php, then you could write code to get the information from the database (you can probably copy it from wherever it's done in the vbulletin code).

If you don't want your custom page to include vbuleltin's global.php, then you would have to come up with some other way to get the information. The external.php script is one example of how you can get information from vbulletin in to another page using javascript.

Lynne 10-14-2012 02:38 PM

You say you tried https://vborg.vbsupport.ru/showpost....0&postcount=25 but it didn't work. Please post the *exact* code and hooks you used (please put code in php tags) and also include the top 20 lines or so of your custom page along with the URL of it.


All times are GMT. The time now is 08:22 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01468 seconds
  • Memory Usage 1,710KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete