1
Booth
Putting 'Who's Online' block content in header???
  • 2004/3/25 18:16

  • Booth

  • Just popping in

  • Posts: 74

  • Since: 2002/6/13


How do I put the who's online code in the header of my theme.html document?

I'd like the Who's Online block content to go just under my header in a straight line.

So instead of:

Quote:
80 user(s) are online

Anonymous: 0
Members: 5
Guests: 75
booth, more...


In a side-block, I'd like:

Quote:
80 user(s) are online, 75 Guests & 5 Members - meme, Martina, selwyn, Booth, cmatt, more...


In my header. Anyone know what code to dump into my theme.html file to get this to work?

2
Booth
Re: Putting 'Who's Online' block content in header???
  • 2004/4/18 12:39

  • Booth

  • Just popping in

  • Posts: 74

  • Since: 2002/6/13


Bump!

I'm sure some of you hard-core Xoopsers out there must now how to put the who's online content in the theme.html file so it shows in the header...

Pretty please...

3
davidl2
Re: Putting 'Who's Online' block content in header???
  • 2004/4/18 12:41

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


This sounds like an interesting idea...

As a suggestion - have you tried checking out the coding of the "who's online" block and adding it to the top of the theme.html page?

Only problem I could see is if you have a lot of names - it could have a bad effect on the layout....

Perhaps just the:

Ok - what have we got in the who's online block.....

<{$block.online_total}> (xx User(s) are online)

<{$block.lang_members}>: <{$block.online_members}>
(Members : xxx)

<{$block.lang_guests}>: <{$block.online_guests}
(Guests : xxx)

Lines - and missing those reffering to the online names?

4
Booth
Re: Putting 'Who's Online' block content in header???
  • 2004/4/18 14:57

  • Booth

  • Just popping in

  • Posts: 74

  • Since: 2002/6/13


Just cutting and pasting the code from the block doesn't work.

It wouldn't cause a problem with layout if you had lots of names if you gave it a small font plus made sure that the names would wrap and not cause scrollbars.

There must be someone out there who knows what code to change/rip from that who's online block and what code to add to make it all work. I'd far prefer this to having it in a sideblock

5
davidl2
Re: Putting 'Who's Online' block content in header???
  • 2004/4/18 16:13

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


Was certainly worth a shot tho :)

6
Booth
Re: Putting 'Who's Online' block content in header???
  • 2004/4/18 16:45

  • Booth

  • Just popping in

  • Posts: 74

  • Since: 2002/6/13


If course it was David. Thanks for trying to help

If you find anything else out, let us know.

7
m0nty
Re: Putting 'Who's Online' block content in header???
  • 2004/4/18 18:04

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


not entirely sure.. but what david said may work eventually..

but i maybe on the wrong track here..

but wouldn't u need some kind of call function?

ie when the blocks are used, you have themeblockleft.html for example

and in that html you have this >
<{$block.content}>


i maybe way out here but u might need something similar

i dunno have a play if it sends u in the right direction it's a start or it maybe completely in the wrong direction..

8
Booth
Re: Putting 'Who's Online' block content in header???
  • 2004/5/19 18:19

  • Booth

  • Just popping in

  • Posts: 74

  • Since: 2002/6/13


I'm still no closer with this... I tried your suggestion (thanks by the way) ) m0nty but it did not work.

Login

Who's Online

354 user(s) are online (242 user(s) are browsing Support Forums)


Members: 0


Guests: 354


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits