Hey does any one knows where I can get something that tells the
members/guests online and a list of them? Thanks!
Hey does any one knows where I can get something that tells the
members/guests online and a list of them? Thanks!
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.
Well, I have a forum and it's SMF, and I also have an arcade where users create accounts and play games.
Err... SMF already does this.
{CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
Follow Me on Twitter: @InkingHubris
PHP Code:
$result = mysql_query("SELECT finger FROM hand WHERE id=3");
echo $result;
I know that, but I would like to to add it to every page of my site.
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: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.PHP Code:
<?php require("/home/content/T/m/W/TmWrk/html/forums/SSI.php");
**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 Code:
<?php ssi_logOnline(); ?>
All this that I have stated above and to get more forums codes please visit Using SSI.php on the SMF website. An example of what some of it does you can visit my website at Teamwork Gaming. Some of the functions that I have in place there are:
Recent Posts Function (Left side of website in middle):
Board Stats (Left side of website near bottom):PHP Code:
<?php ssi_recentPosts(); ?>
Who's Online Function (Same as Board Stats):PHP Code:
<?php ssi_boardStats(); ?>
Welcome Function (Right side of website at top):PHP Code:
<?php ssi_logOnline(); ?>
PHP Code:
<?php ssi_welcome(); ?>
Any questions or issues, just ask.
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
Last edited by afe; 12-21-2007 at 12:26 AM.
Thanks!
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.
{CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
Follow Me on Twitter: @InkingHubris
PHP Code:
$result = mysql_query("SELECT finger FROM hand WHERE id=3");
echo $result;
Bookmarks