News: April 7th, 2019, The Tinyportal team is pleased to announce the release of ~~ TinyPortal 1.6.3! GET IT NOW!!!

Login  |  Register
HTML5 Icon HTML5 Icon
TP on Social Media
Welcome, Guest. Please login or register.
Did you miss your activation email?

September 15, 2019, 01:37:27 AM

Login with username, password and session length

Recent

Members
  • Total Members: 3752
  • Latest: Alizee
Stats
  • Total Posts: 188879
  • Total Topics: 20751
  • Online Today: 38
  • Online Ever: 629
  • (November 08, 2018, 01:36:54 PM)
Users Online
Users: 1
Guests: 24
Total: 25

Author Topic: How to do this?  (Read 1493 times)

0 Members and 1 Guest are viewing this topic.

keng_113

  • Guest
How to do this?
« on: January 15, 2009, 05:16:02 AM »
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!

Offline Ken.

  • Support Team
  • *
  • Posts: 4344
    • Our FamilyForum
Re: How to do this?
« Reply #1 on: January 15, 2009, 05:23:27 AM »
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  ^-^

keng_113

  • Guest
Re: How to do this?
« Reply #2 on: January 15, 2009, 06:09:56 AM »
^Thanks for your reply =)

I think I almost got it?

but i'm confused with this code:

Code: [Select]
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


Offline G6Cad

  • Friends
  • *
  • Posts: 12643
    • FamiljeGodis
Re: How to do this?
« Reply #3 on: January 15, 2009, 08:01:51 AM »
Just add this part
Code: [Select]
ssi_whosOnline(); in an Forum SSI function block and save it

Offline fussilet

  • Jr. Member
  • **
  • Posts: 22
    • Fussilet Themes
Re: How to do this?
« Reply #4 on: January 15, 2009, 08:08:54 AM »
users online today blok

Code: [Select]
echo '
<span class="smalltext">' , ssi_logOnline() , '</span>';

keng_113

  • Guest
Re: How to do this?
« Reply #5 on: January 15, 2009, 08:09:09 AM »
yes! it worked! wwoooooo!

Thank you very very very much

Xarcell

  • Guest
Re: How to do this?
« Reply #6 on: January 15, 2009, 08:09:29 AM »
This part
Code: [Select]
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:

Code: [Select]
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

  • Guest
Re: How to do this?
« Reply #7 on: January 15, 2009, 08:44:43 AM »
Actually, all you need to do is

Code: [Select]
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.