Log in

View Full Version : members online/guests online



afe
12-18-2007, 04:01 AM
Hey does any one knows where I can get something that tells the
members/guests online and a list of them? Thanks!

pssparkman
12-18-2007, 09:18 AM
Are you talking about like who is online for a forums. What type of forums do you have if that is what you are looking for? A type of forums would be like SMF forums.

afe
12-18-2007, 09:28 PM
Well, I have a forum and it's SMF, and I also have an arcade where users create accounts and play games.

BLiZZaRD
12-19-2007, 04:44 AM
Err... SMF already does this.

afe
12-19-2007, 11:27 PM
I know that, but I would like to to add it to every page of my site.

pssparkman
12-20-2007, 07:59 AM
There are some requirements, but nothing big. In order to have all pages show like who is online and things of that that nature from your forums. All web pages that will contain this information will need to be .php and not .html.


**Simply change the .html to .php.

**At the very top of your pages, on line 1 place this piece of code there:
<?php require("/home/content/T/m/W/TmWrk/html/forums/SSI.php");
Where /home/content/T/m/W/TmWrk/html/forums is the path to your forums. You can find this in your forums admin panel under Server Settings, it is called SMF Directory near the bottom.

**Now just simply insert the follow piece of code within your web pages to show the desired information from your forums for Who's Online.

<?php ssi_logOnline(); ?>




All this that I have stated above and to get more forums codes please visit Using SSI.php (http://docs.simplemachines.org/index.php?topic=400) on the SMF website. An example of what some of it does you can visit my website at Teamwork Gaming (http://www.teamworkgaming.com). Some of the functions that I have in place there are:

Recent Posts Function (Left side of website in middle):

<?php ssi_recentPosts(); ?>
Board Stats (Left side of website near bottom):

<?php ssi_boardStats(); ?>
Who's Online Function (Same as Board Stats):

<?php ssi_logOnline(); ?>
Welcome Function (Right side of website at top):

<?php ssi_welcome(); ?>



Any questions or issues, just ask.

afe
12-21-2007, 12:09 AM
Thank you so much, would this slow down my pages? Also is it possible to install another forum and make them to be the same database so that when users sign up, they can log in on both of the forums?






Thanks

pssparkman
12-21-2007, 12:37 AM
Thank you so much, would this slow down my pages? Also is it possible to install another forum and make them to be the same database so that when users sign up, they can log in on both of the forums?


I haven't seen any effect on my pages this far. I don't know about having the two forums part. That may be a question for the SMF Forums. Good luck and hope it works out for ya.

afe
12-21-2007, 12:40 AM
Thanks!

BLiZZaRD
12-21-2007, 01:39 AM
You can, it is tricky though.. your forums will need separate database prefixes. currently SMF defaults to smf_, so when installing your second forum you would need to change the prefix to anything else. even smf2_ would work, However, you would need the member log in tables to be the same prefix, so they basically work off each other. If that makes sense.

I don't currently remember off the top of my head which member tables you will need, but if you can't figure it out I can look for you.

afe
12-21-2007, 01:46 AM
It would be great if you can please. And I'm sort of confused by what you mean. I know that in the cPanel, in the MySQL database section, I have a database for my SMF Forum and it is username*_smf1 and then if I add a nother Forum and change the file Settings.php database connections and put all my database username*_smf1 connection instead of the new one installed would it make all my members from 2 of my forums the same?

BLiZZaRD
12-21-2007, 01:58 AM
Almost. You don't want all of the database tables to have the same name or else you will have 2 identical forums. You just want the common member log in tables to be the same.

It will take a lot more work than just altering the Stettings.php. You will have to alter the SQL database, and all the connection files for one of the forums. It is a huge undertaking, and unless you are comfortable doing all this work I would not recommend it.

afe
12-21-2007, 02:06 AM
Ohh I see, I can take the work and it is not actually a forum that I want to be the same, it is an arcade that I have installed. And what do you mean by "member log in tables"

Where would I have to start to have sites with members and etc? (Learning what?)

BLiZZaRD
12-21-2007, 02:33 AM
member log in tables.. the database tables that store the member names, ID, and passwords in the SQL database.

I assume this is either the SMF arcade, or the Erics World remake of the SMF forum.

If so, then it won't matter, you will need to do this with the SMF member tables, as the members log into your forum, not the arcade.

Unless I am wrong. If so, then please provide a link to see what I am up against here :)

afe
12-21-2007, 02:35 AM
Ok, http://www.arcadebuilder.net
demo: http://www.demo.arcadebuilder.net