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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,231
  • Total Topics: 21,353
  • Online today: 651
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 464
  • Total: 464

User's Online Today for Tiny Portal

Started by rumboogy, June 01, 2007, 12:15:06 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rumboogy

I have the mod for SMF which displays Users Online Today, and although it presently shows up in the forum (at the bottom of the forum)...I would like this to also show on my front page maybe in one of the lower center blocks.

Is there a way to capture this information from the mod and display it in Tiny Portal?

Thanks,

Wally

pvcblue

Quote from: rumboogy on June 01, 2007, 12:15:06 AM
I have the mod for SMF which displays Users Online Today, and although it presently shows up in the forum (at the bottom of the forum)...I would like this to also show on my front page maybe in one of the lower center blocks.

Is there a way to capture this information from the mod and display it in Tiny Portal?

Thanks,

Wally

Welcome to the forum Wally, as a reminder, the Admin and MODs prefer you search for answers before asking questions.

here is the answer you seek I believe -

Backup First Always!!!!!

In the default theme

languages/TPortal.english.php

Find:

$txt['tp-users'] = 'Users';


Add this after:

$txt['tp-hidden'] = 'Hidden';
$txt['tp-buddies'] = 'Buddies';
$txt['tp-spiders'] = 'Spiders';


default/TPortalBlocks.template.php

Find:

echo '<br />'.$bullet.$txt['tp-guests'].': '.$online['guests'];
   echo '<br />'.$bullet.$txt['tp-total'].': '.$online['total_users'].'<hr />



Replace with:


           echo '<br />'.$bullet.$txt['tp-hidden'].': '.$online['hidden'];
   echo '<br />'.$bullet.$txt['tp-buddies'].': '.$online['buddies'];
   echo '<br />'.$bullet.$txt['tp-guests'].': '.$online['guests'];
         echo '<br />'.$bullet.$txt['tp-spiders'].': '.$online['num_spiders'];
   echo '<br />'.$bullet.$txt['tp-total'].': '.$online['total_users'].'<hr />




rumboogy

Hey PVCBlue...thanks. Actually I did do a search...but did not find that...

This is for USER's ONLINE TODAY? I just want to make for sure....also, if I use a different template other than the default (MeshTP).

Thanks for your help.

Wally

pvcblue

Quote from: rumboogy on June 01, 2007, 01:16:38 AM
Hey PVCBlue...thanks. Actually I did do a search...but did not find that...

This is for USER's ONLINE TODAY? I just want to make for sure....also, if I use a different template other than the default (MeshTP).

Thanks for your help.

Wally

It should work with all themes, as it is changes to the default files you are making an dthe theme draws its infor from them. If any of the files tha need to be changed are also in your specific theme folder, you will have to change them as well, or delete them and let the theme use the defaults files.

rumboogy

PVCBlue...first thank you for your help. That worked just as you thought it would, but that is not exactly what I was looking for...here is a CURRENT screen shot of what I am talking about and this comes from the bottom of my forum (inside of TP). This is probably the reason I was not able to find it in search.

The bottom block is what I would ALSO like to show on the front page of TP.

Thanks again...any suggestions?


IchBin

Please read the stickies at the top of the boards guys. This board is not for support. Please post in the appropriate board.

rumboogy

My fault...actually, it started out as search for block code....no excuse. Thanks for moving.

Wally

pvcblue

OK I see - try this thread here - found in the Block Snippets section

http://www.tinyportal.net/index.php?topic=2365.0

rumboogy

Unfortunately, that is for older versions, so it does not work. Thank you PVCBlue for your help. I do appreciate it.

This the first time I have been unable to either find help or get help with a block code snippet or mod. I tried though.

I think since, IchBinâ„¢ originally wrote the script, he would be the one to update it if he wanted to...I assume there must not have been enough interest in this one...

Thanks anyway though.

Wally

Saiboogu

From that thread that was quoted before, this specific post: http://www.tinyportal.net/index.php?topic=2365.msg20286#msg20286

Doesn't matter when it was written, I'm actively using it on my site running SMF 1.1.2 and TP 0.9.8.

Did you try it and run into an issue? It does give me some undefined index errors in my log, but everything functions properly.

This website is proudly hosted on Crocweb Cloud Website Hosting.