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

Recent

Welcome to TinyPortal. Please login or sign up.

March 28, 2024, 08:56:33 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,104
  • Total Topics: 21,212
  • Online today: 212
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 182
  • Total: 182

Online Users: Simplicity Theme

Started by culpeper, May 22, 2005, 07:17:22 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

culpeper

Is there a way to hide the OnlineUsers member names on the index page.ÃÆ'ââ,¬Å¡Ãƒâ€šÃ,  I would like to hide the members names for all member groups, except admin and moderators, viewing the board.ÃÆ'ââ,¬Å¡Ãƒâ€šÃ,  Everything else under OnlineUsers is okay.

Also, disabling the Latest Member option under ForumStats is not working.ÃÆ'ââ,¬Å¡Ãƒâ€šÃ, 

Bjørn

uhm....if its only for administrators its easy, but moderators is a bit different. Basically they don't have any group or permission - that is , outside the forum they moderate. So you really need to put them in a "mod" group or something.

To provide the code needed I can help, but i would need a group id, if you are allowing other membergroups than admins to view the users online.

About the latest member option..I don't think it can be hidden..but it can be removed from the template of course.

culpeper

Okay, no problem.  This easiest thing to do will be to just hide the member names to anyone except the adminstrator.  If you can help that would be great! 

Also, I don't think the Latest Member is an issue with Simplicity but an issue with smf.  It wasn't working using the default smf theme before I installed Simplicity.  Just removing that line under ForumStats should suffice if you can point me in the right direction.

Thank you


Bjørn

to show usernames admin-only:
- Find this code in BoardIndex.template.php of Simplicity:
        // Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
        if (!empty($context['users_online'])){
                echo '
                               ', implode(', ', $context['list_users_online']);


- replace with this:
        // Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
        if (!empty($context['users_online']) && $context['user']['is_admin']){
                echo '
                               ', implode(', ', $context['list_users_online']);


For leaving out the latest member in ForumStats:
-  remove this code from index.template.php:
', $txt[656], ': <b> <a href="', $scripturl, '?action=profile;u=', $modSettings['latestMember'], '">', $modSettings['latestRealName'], '</a></b><br />

culpeper

Thanks, I make the changes tonight after work. :)

culpeper

Okay!  That works good.  Thanks for the help! :D

Bjørn