Welcome, Guest. Please Login or Register.
April 27, 2025, 05:31:44 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Graphics and Templates  |  Who's online list on Website home page? « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Who's online list on Website home page?  (Read 1165 times)
Cheese
Noobie
*
Posts: 10


Mmm, Cheese...

ICQ - 102067997flipboyflea@hotmail.com WWW
Who's online list on Website home page?
« on: June 28, 2002, 09:09:06 PM »
Reply with quote

Is it possible to put a list of people that are online on a webpage?  Possibly even a login and logout on webpages?  Anyone that knows please let me know or point me in the right direction.  I've seen it done with YaBB SP1 before.
Logged

Hypocrite
YaBB God
*****
Posts: 692


For To End Yet Again

dimmuh@gmx.net WWW
Re:Who's online list on Website home page?
« Reply #1 on: June 28, 2002, 09:15:11 PM »
Reply with quote

You can do it with SSI.php.

http://www.yabb.info/ssi_examples.shtml
http://www.yabb.info/ssi_examples.php
Logged
Cheese
Noobie
*
Posts: 10


Mmm, Cheese...

ICQ - 102067997flipboyflea@hotmail.com WWW
Re:Who's online list on Website home page?
« Reply #2 on: June 29, 2002, 12:43:49 AM »
Reply with quote

Ok, I don't know if I'm understanding this.  Php scripts can be embedded in html correct.

line 1 I put my path to the ssi.php file like this?

<? require("/home/bdweb8141j/fragtag.com/cgi-bin/SSI.php"); ?>
<html>

then say i want the menu bar in a table on my home page I would insert this code where I need it?

<? menubar(); ?>

Ex.  
<table align=left border=0><? menubar(); ?><br>

is that close?  I'm new at php but it's fun :D
Logged

SFTrob
Full Member
***
Posts: 153


^ Hottie ^

sftts@hotmail.com WWW
Re:Who's online list on Website home page?
« Reply #3 on: June 29, 2002, 04:28:32 AM »
Reply with quote

i used to have this ssi stuff on my site but then one day i uploaded my page and it deleted half the page and made it look stupid and it deletes all the stuff on the top everytime i upload it, http://www.soccerfantalk.com/ss.php

anyone know how to fix that?
Logged

Hypocrite
YaBB God
*****
Posts: 692


For To End Yet Again

dimmuh@gmx.net WWW
Re:Who's online list on Website home page?
« Reply #4 on: June 29, 2002, 10:27:31 PM »
Reply with quote

Quote from: SFTrob on June 29, 2002, 04:28:32 AMi used to have this ssi stuff on my site but then one day i uploaded my page and it deleted half the page and made it look stupid and it deletes all the stuff on the top everytime i upload it, http://www.soccerfantalk.com/ss.php

anyone know how to fix that?

I would suggest you make a table to your page where you want to list the latest topics and then call the SSI function in that table. That way you can control the table size and it won't screw up the rest of the page.
Logged
Hypocrite
YaBB God
*****
Posts: 692


For To End Yet Again

dimmuh@gmx.net WWW
Re:Who's online list on Website home page?
« Reply #5 on: June 29, 2002, 10:31:21 PM »
Reply with quote

Quote from: Cheese on June 29, 2002, 12:43:49 AMOk, I don't know if I'm understanding this.  Php scripts can be embedded in html correct.

line 1 I put my path to the ssi.php file like this?

<? require("/home/bdweb8141j/fragtag.com/cgi-bin/SSI.php"); ?>
<html>

then say i want the menu bar in a table on my home page I would insert this code where I need it?

<? menubar(); ?>

Ex.  
<table align=left border=0><? menubar(); ?><br>

is that close?  I'm new at php but it's fun :D

First you must open the SSI.php in your YaBB SE directory and change the settings to match your forums settings.

After that you make the require in the first line of your page. Now after that you must decide which one to use... shtml or php. If you choose to use php you must rename the page to .php from .html if its not .php already. After that you can use the functions to call up the information from your forum. So if you want to show who's online in your forum at the moment you would insert <? whosOnline(); ?> somewhere in your code.
Logged
cypher720
Jr. Member
**
Posts: 55


Cyphersshack.com

cypher@cyphersshack.com WWW
Re:Who's online list on Website home page?
« Reply #6 on: July 04, 2002, 03:38:36 PM »
Reply with quote

i get this:

Warning: Failed opening '/forums/QueryString.php' for inclusion (include_path='.;c:\php4\pear') in c:\program files\apache group\apache\htdocs\forums\SSI.php on line 47

Warning: Failed opening '/forums/Settings.php' for inclusion (include_path='.;c:\php4\pear') in c:\program files\apache group\apache\htdocs\forums\SSI.php on line 48

Warning: Failed opening '/forums/Sources/Subs.php' for inclusion (include_path='.;c:\php4\pear') in c:\program files\apache group\apache\htdocs\forums\SSI.php on line 49

Warning: Failed opening '/forums/Sources/Load.php' for inclusion (include_path='.;c:\php4\pear') in c:\program files\apache group\apache\htdocs\forums\SSI.php on line 50

Fatal error: Call to undefined function: clicklog() in c:\program files\apache group\apache\htdocs\forums\SSI.php on line 57
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Graphics and Templates  |  Who's online list on Website home page? « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 2.467 seconds with 20 queries.