Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 09:37 am EST
Geeklog Forums
How to show "Who's Online" as a center block
Niser
Anonymous
How to show "Who's Online" as a center block, preferably occupying position above the footer ??
This can be helpful when there are hundreds of users online, which will unnecesarily lenghthen the right block or cause design problemsn.
How to add ONLINE ( or an online gif ) by the name of each registered user if they are online indeed ??
This can be helpful when there are hundreds of users online, which will unnecesarily lenghthen the right block or cause design problemsn.
How to add ONLINE ( or an online gif ) by the name of each registered user if they are online indeed ??
13
17
Quote
Status: offline
Robin
Forum User
Full Member
Registered: 02/15/02
Posts: 725
Quote by Niser: How to show "Who's Online" as a center block, preferably occupying position above the footer ??
Grab the code from lib-common and use it to make a staticpage. Don't forget to enable php.
HTH
Robert
Geeklog Polish Support Team
8
10
Quote
Niser
Anonymous
Can a little more details be spit out by some one ??
Also does any one know how to enable quick reply for this forum, a feature which is in every fourm these days ??
Also does any one know how to enable quick reply for this forum, a feature which is in every fourm these days ??
12
11
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by Robin: Grab the code from lib-common and use it to make a staticpage. Don't forget to enable php.
Actually, it would be enough to simply call phpblock_whosonline() from the static page.
However, I don't see how this would solve the actual problem. You'd only have the long list of users somewhere else on the page now ...
bye, Dirk
10
11
Quote
ismael
Anonymous
How can i show in the header.thtml the number of users and anonymous online?
Thanks you, ismael
Thanks you, ismael
10
11
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by ismael: How can i show in the header.thtml the number of users and anonymous online?
You can use PHP code in header.thtml. And you can lift the code to count the number of users from the Who's Online block (see above).
bye, Dirk
11
13
Quote
bsmith at difinitymedia dot com
Anonymous
I have tried in earnest to get a static page to use a custom function from lib-custom as reccomended here. No matter which I try however, it will not work. In my case I'm am trying phpblock_StoriesByTopic; but it will not display. I have tested and it does work in a block--just not a static page. 140sr2--is this no longer an option in the newer GL versions?
While I'm posting I might as well ask another nagging question. I am trying to create a block that spits out an included HTML file. I've tried doing include and require and the like, but no matter what I try it always puts the included HTML on the top of the page and breaks the layout. What am I doing wrong?
Thanks so much.
bsmith at difinitymedia dot com
While I'm posting I might as well ask another nagging question. I am trying to create a block that spits out an included HTML file. I've tried doing include and require and the like, but no matter what I try it always puts the included HTML on the top of the page and breaks the layout. What am I doing wrong?
Thanks so much.
bsmith at difinitymedia dot com
11
12
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by bsmith at difinitymedia dot com: No matter which I try however, it will not work.
So what did you try?
Quote by bsmith at difinitymedia dot com: but no matter what I try it always puts the included HTML on the top of the page and breaks the layout. What am I doing wrong?
Blocks can not display their content themselves, they have to return it and let Geeklog display it.
bye, Dirk
11
13
Quote
Status: offline
smitty
Forum User
Newbie
Registered: 07/06/06
Posts: 2
Quote by Dirk:So what did you try?
When you say "simply call phpblock_whosonline() from the static page" I suppose I don't know what this means so I don't think answering your question would be productive.
Unfortunately I'm a PHP novice--at best.
Quote by Dirk:Blocks can not display their content themselves, they have to return it and let Geeklog display it.
What I've tried, I'm sure it's incorrect:
function phpblock_foo ()
{
$foo = include('foo.html');
return $foo;
}
If I missed some documentation regarding this, do inform me please.
8
12
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
After activating the use of PHP in static pages, all you would have to do is to enter
in a new static page and choose "execute PHP (return)" from the PHP dropdown menu for that page.
As for your block: That include will cause the output to start right there - so that won't work. You would have to catch that output and return it to Geeklog. Or read the file yourself instead of using include.
bye, Dirk
Text Formatted Code
return phpblock_whosonline();in a new static page and choose "execute PHP (return)" from the PHP dropdown menu for that page.
As for your block: That include will cause the output to start right there - so that won't work. You would have to catch that output and return it to Geeklog. Or read the file yourself instead of using include.
bye, Dirk
10
11
Quote
Status: offline
smitty
Forum User
Newbie
Registered: 07/06/06
Posts: 2
Incredibly awesome, thank you so much for your help it is greatly appreciated.
I also want you to know that Geeklog is hands down the best CMS available out of the close to hundred I've tested that are available, whether PHP or any other language. It combines all of the essential aspects that most administrators require in a CMS with versatility, and provides them in a solid, stable and downright eloquent manner. I have reccomended Geeklog to countless people and will continue to do so as I am certain it will only get better as time passes.
And you can quote that.
Thank you Dirk and all developers of Geeklog for an exceptional contribution to the Open Source community.
I also want you to know that Geeklog is hands down the best CMS available out of the close to hundred I've tested that are available, whether PHP or any other language. It combines all of the essential aspects that most administrators require in a CMS with versatility, and provides them in a solid, stable and downright eloquent manner. I have reccomended Geeklog to countless people and will continue to do so as I am certain it will only get better as time passes.
And you can quote that.
Thank you Dirk and all developers of Geeklog for an exceptional contribution to the Open Source community.
10
14
Quote
All times are EST. The time is now 09:37 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content