View Full Version : Users online on non vb pages?
fsbmax
08-04-2008, 05:51 PM
Is there a mod to have users online show on pages that are non vbulletin? for example whos online on the right side column of the websites homepage....
I am also looking for a login box... once they login it shows their avatar and what not on the websites homepage aswell....
Anyone point me in the right direction here please :D
:confused:
Dismounted
08-05-2008, 11:59 AM
There have been plenty thread about this. Basically, you need to replicate what happens to display the logged in list in index.php.
dgeere
08-05-2008, 12:03 PM
I also wish to know this. Any chance of being a little more clear or linking to one of the many threads? I have done some searches but can't find anything that seems to be right aside from an old (3.0) add on that is no longer supported.
Thanks.
Dismounted
08-05-2008, 12:15 PM
You will require PHP knowledge. Again, you just look at what index.php does, and duplicate what it does.
dgeere
08-05-2008, 12:34 PM
I have some php knowledge and am happy following modification routes. I just wondered if you may be able to point us to one of those many other threads you speak of that may give better detail on the particulars / areas of the index php file that should be even looked at, what functions they call on etc.
May as well have said "copy what vbulletin does". I obviously know that vbulletin is doing what I want, I just wish to have a little guidance on how to perform similar actions outside of the vbulletin files / framework.
Anyone else care to point us in the direction of one of the many threads that ask the same thing that might have a better solution? :)
Thanks
RLShare
08-05-2008, 08:16 PM
All threads have the same anwser. That was his point. If you want to know how to do it, look through the 'index.php' file and figure out how VB does it.
The example you are looking for is already in the index.php file. What more of an example could you need then the way its done by the jelsoft itself. Find the code that creates that section and then replicate it in your custom page.
edit: I just looked at the index.php myself and their is a big fat comment near the bottom of the file that says logged in users. I would guess thats what your looking for.
dgeere
08-05-2008, 09:19 PM
Yup. moved that into file, sorted the file includes etc.
None of it worked.
In the end just written my own sql query that direct gets the info from the database using the sessons, user ids and a timestamp.
Maybe someone will actually reply to a thread with step by step instructions of how you do it the proper way in VB and then people can find it and link to it in the future.
Not everyone knows enough about php to just work it out from some code that is there. was just hoping for a little more help. sigh.
RLShare
08-05-2008, 09:38 PM
I thought you said you knew PHP a couple of posts up?
dgeere
08-05-2008, 09:52 PM
I said "I have some php knowledge". Enough to get by normally on basic things.
Anyway, never mind.
fsbmax
08-05-2008, 11:18 PM
what about a login box?
MoT3rror
08-06-2008, 02:15 AM
Just include global.php and use the template system and you will be fine on login/session.
Dismounted
08-06-2008, 05:57 AM
You only need to copy the navbar's login box code if you purely want login box.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.