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,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 347
  • Total: 347

Users online Today Block(Uses the mod called as Users online Today)[Updated]

Started by Megaforum, July 27, 2007, 04:35:06 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jacortina

Try changing:
require($boarddir . 'Themes/default/languages/Modifications.english.php');

To:
require($boarddir . '/Themes/default/languages/Modifications.english.php');


Or let SMF load it by replacing that line with:
loadLanguage('Modifications');

wilsy

Thanks JA,

Still no luck, this is the result: -



With these in the error logs: -

8: Undefined index: lang_locale
/home/rewindla/public_html/forum/Sources/Subs.php
868

8: Undefined index: smf10b
/home/rewindla/public_html/forum/Sources/Subs.php
863

I have attached my subs.php and Modifications.english.php files in case it's of any use.

Thanks to both of you for your help, it's very appreciated.

Regards,

Wilsy.

jacortina

This is obviously getting processed brfore some critical pieces are getting parsed, because those two errors refer to the lack of a definition for two entries which are given in the index.<language>.php file.

So, you can try to add this line right before the require/loadLanguage mentioned in the last message:
loadLanguage('index');

wilsy

Thanks again JA,

Still no luck though  :(

It's a real pity because I've just reworked the site a little and this block would come in real handy.

Regards,

Wilsy.

jdvarner

Hey Wilsy, just wanted too see if you ever got it working? i tried all the tips in this thread as well and still get errors such as you posted. Only asking ya, because you seem to be actively trying to get it to work.

jd

wilsy

No, unfortunatey not  :(

It's a real pity as I have this: -

echo '<img src="'.$settings['actual_images_url'].'/icons/online.gif'.'"  /> <a href="'.$scripturl.'?action=who"><b>'.$txt[158].'</b></a><br>
<span class="smalltext">';
ssi_whosOnline();
echo '</span>';


...in a centre block showing Users Currently Online and it would have been very nice to have the Users Online Today block below it.

Regards,

Wilsy.

jdvarner

that would be cool. maybe even a combined block as well seperated by a line or something.

wilsy

I totally agree!

I'm sure one of the coding guru's will be along soon ;)

Regards,

Wilsy.

FUBAR

Wouldn't this do the job?

In a PHP Block (Left, right or center) add:
require("SSI.php");

ssi_whosOnline_today();


I've attached examples below, ;)

Hope this works.

jdvarner

i got a fatal error and i do have the whos online today moday installed.

wilsy, it work for you?

This website is proudly hosted on Crocweb Cloud Website Hosting.