1
tcnet
Display the Whos Online Block from a Theme
  • 2011/1/1 14:32

  • tcnet

  • Friend of XOOPS

  • Posts: 297

  • Since: 2006/5/12


Want to display the Who's Online block anywhere in a theme? This worked for me.

<{php}>
$block b_system_online_show();
print 
"
".$block['online_total']."".
$block['lang_members'].": ".$block['online_members']."".
$block['lang_guests'].": ".$block['online_guests']
.
"".
$block['online_names']
.
"javascript:openWithSelfMain('".XOOPS_URL."/misc.php?action=showpopups&type=online','Online',420,350);&92" title=&92"".$block['lang_more']."&92">
    "
.$block['lang_more']."

"
;
<{/
php}>


EDIT: The backslash is not displaying with dhtml editor. Manually replace &92 with backslash.


2
Anonymous
Re: Display the Whos Online Block from a Theme
  • 2011/1/1 14:38

  • Anonymous

  • Posts: 0

  • Since:



3
tcnet
Re: Display the Whos Online Block from a Theme
  • 2011/1/1 14:49

  • tcnet

  • Friend of XOOPS

  • Posts: 297

  • Since: 2006/5/12


Client did not want to install additional files or modify core files. This application required all code in the theme.

Login

Who's Online

187 user(s) are online (144 user(s) are browsing Support Forums)


Members: 0


Guests: 187


more...

Donat-O-Meter

Stats
Goal: AU$15.00
Due Date: May 31
Gross Amount: AU$0.00
Net Balance: AU$0.00
Left to go: AU$15.00
Make donations with PayPal!

Latest GitHub Commits