vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Users online on an external page? (https://vborg.vbsupport.ru/showthread.php?t=169225)

k007 01-31-2008 06:13 AM

Users online on an external page?
 
is it possible to have a list of users online on an external page? by external meaning not even on the same web server..

Dismounted 01-31-2008 07:44 AM

The easiest way would be to have a page that generates the string, and the external script would access that page and grab that string with all the info in it.

k007 01-31-2008 08:06 AM

i dont understand how do i exactly do that? or cant i use mysql and access the forums it self? doesnt the forum mysql db have a table for users online or what?

Dismounted 01-31-2008 08:23 AM

You could, but you said you'd be accessing off the server, and by default, access to MySQL can only be done with scripts on the same server. To directly query from another server, you would have to allow MySQL connections from the other server, which I advise against.

To use my method (or yours), you would need knowledge of PHP (and probably MySQL).

k007 01-31-2008 09:04 PM

I have dealt with php and mysql queries before...after checking out the vbulletin database tables layout, i found a table called _sessions, where userids are being added/removed depending on logged/not logged in.. i could get the data from there using php and mysql but the thing that im not sure about is spiders in the session table will they all be displayed with an id of 0? if so i could simply use the query and filter 0 off if not then thats an issue...

Dismounted 02-01-2008 04:41 AM

Look at the end of index.php.

k007 02-01-2008 10:03 PM

Thanks man.


All times are GMT. The time now is 02:31 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.01039 seconds
  • Memory Usage 1,714KB
  • 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
  • (7)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