vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Linking whos online from different sites.. (https://vborg.vbsupport.ru/showthread.php?t=49562)

stangpower 03-02-2003 09:35 PM

Linking whos online from different sites..
 
Hello,

I was wondering if this would be possible.

Lets say I have several VB sites all related to mine and the sites are actually partnered. I would like the whos online from each site to link to each other. So the whos online would look like this:

WHO'S ONLINE FROM X.COM, XX.COM, and XXX.COM

What do you think? Possible?

Ian

EchoHype.com 03-02-2003 09:40 PM

You'd need to connect to the database of each site, and then call the who's online code.

stangpower 03-02-2003 09:41 PM

OK - can you maybe suggest what code to look at? - I can install hacks, but I cannot make them :p

Ian

EchoHype.com 03-02-2003 09:44 PM

Code:

mysql_connect($CONF['localhost'], $CONF['NAME'], $CONF['PWORD']); # Connect
mysql_select_db($CONF['DBNAME']);    # Database

that's the mysql code to connect, which you'd include when scripting and such. I'm not too sure about the "whos online" variable.

stangpower 03-02-2003 09:46 PM

Thanks - where is the above code found?

Ian

EchoHype.com 03-02-2003 09:56 PM

in my head, lol.

it's just a basic code used to connect to a db.

stangpower 03-02-2003 09:57 PM

Ohh ok but where do I place those lines of code?

Ian

EchoHype.com 03-02-2003 10:00 PM

well, if you want to call the online users on lets say your homepage, you place that inside the table or whatever you want it to be called in, then call the online variable for that forum.


All times are GMT. The time now is 01:41 AM.

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.01096 seconds
  • Memory Usage 1,716KB
  • 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)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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