TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

April 19, 2024, 10:14:02 AM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,164
  • Total Topics: 21,219
  • Online today: 266
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 72
  • Total: 72

How to do this?

Started by keng_113, January 15, 2009, 12:16:02 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

keng_113

I'm wondering If I can put the "Users Online Today Mod" in one of the blocks?
I tried to put the codes using phpbox but only the block is shown no user stats are shown?

Can anyone help me?? Thanks!

Ken.

Block Code Snippets Board.html

Check out the Block Code Snippets board keng_113, you can find lots of codes there including one for users online today.
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

keng_113

^Thanks for your reply =)

I think I almost got it?

but i'm confused with this code:

require("/home/********PATH_TO_YOUR_FILE/public_html/forum/SSI.php");

ssi_whosOnline();


I'm not sure what will i type in directory of my SSI.php
here's a screenshot


G6Cad

Just add this part ssi_whosOnline(); in an Forum SSI function block and save it

fussilet

users online today blok

echo '
<span class="smalltext">' , ssi_logOnline() , '</span>';

keng_113

yes! it worked! wwoooooo!

Thank you very very very much

Xarcell

This part
require("/home/********PATH_TO_YOUR_FILE/public_html/forum/SSI.php");

You need to enter your own URL address to the location of the file. For example:

require("/home/xarcell.coml/forum/SSI.php");

If your not sure, in your SMF installation, go to: "admin > server settings". Down at the bottom it will show you your "SMF DIrectory". Use the same URL there, just make sure you add "SSI.php" to the end of the URL when using it in the script. Like in the example given.

JPDeni

Actually, all you need to do is


require("SSI.php");


That file is in the SMF home directory, so if you're running SMF, you don't need to put in the whole path to the file.