![]() |
I would like to include the $loggedinusers on a non VB page.
I assume that writing this data to a TXT file (and inserting it via SSI) everytime this data is modified would be a PAIN for the server as it may change several times per second when traffic is high... SO... what do you suggest? Any of you guys could help? I think that several peopel are trying to integrate vBulletin to sites as much as possible... I think that designwise it is the BEST board (onlineDJ.com looks great with the board, perfect integration) but it would be great to have an easy step by step help to show data to non VB pages, and to easily use the login of the board to other parts of the site. |
this goes back to asking for a few include files to be made by the developers. would be nice.
ManoOne, the only ways to do it are 1) use an include or 2) have the page a .php page with a direct call to the mySQL database quering number of online users. Up to you which you do, as an include file is basically exactly the same i would not think there is much of a performance difference. |
interesting
what would be the PHP code to add to the page (i can set th ephp extension to it) in order to grab those numbers from the database and display them? thanks |
not sure but it will be the same as the bit on index.php so it is probably in there somewhere.
|
THANK YOU SO MUCH!
http://www.onlinedj.com Look, the frontpage of the site! Users are logged in once they enter the domain, etc. etc.. excellent, thanks again |
I would also like to show who is on the board form my home page. It would be no biggie for me o make it a php page.
Can you please explain how to do it. Thanks! |
i am not sure, this may work:
Code:
$datecut=time()-$cookietimeout; require("global.php"); it will also mean people on that page will be counted in the online stats |
ManoOne
can you post your coding? |
ManoOne, glad you got it working and glad i could help.
Mental Stamina, is must be something like what i posted because that is what i suggested to ManoOne who got it to work, the section you want is in index.php just make sure you require global.php at the top. try it it may well work :) |
Guys.. I almost have it working I guess..
Here is the thing.. It dosent display..I viewed sorce..and the code stops at the <?php require("global.php"); ?> Hmm what do you think is happening? I am calling this page: http://www.clubfreestyle.com/testwho.php Any ideas? |
All times are GMT. The time now is 02:43 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|