Support Forum

Admin/Moderator Status in sidebar

SD Scott Dudley
Scott Dudley
Member

Hi there,

I am trying hard to include a Admin/Moderator Status in sidebar – exactly like you guys have on this website. 

From what I understand I need to install the Template Tags and Widgets plugin, and then use some code in the sidebar widget to get it to display. 

If this is correct, what is the special line of code that I need to make it work.

And if I am completely wrong, is there a link where I can find a simple solution to make it happen. I have a feeling that it is extremely basic to set this up but after a lot of searching and trying everything I can’t get it work. 

My site is http://LoCostMarketing.com

Thanks heaps 🙂

5 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

Yes you need the template tags plugin. And you can find what you need to do to use it here:
http://codex.simple-press.com/codex/plugins/our-plugins/the-template-tags-plugin/template-tag-admin-and-moderator-online/

SD Scott Dudley
Scott Dudley
Member

Hi Yellow Swordfish

Yes I tried “sp_admins_online” with the square brackets in the widget area

and I also tried “<?php sp_AdminModeratorOnlineTag(); ?>”

both without the quotes of course. 

but they both don’t work on my site for some reason. The widget shows nothing at all. I have set up as the very bottom widget at http://LoCostMarketing.com

Any ideas on what I have done wrong?

SD Scott Dudley
Scott Dudley
Member

Actually I think I have got it working now by the look of it. 

Not sure why it didn’t work the first time.

SD Scott Dudley
Scott Dudley
Member

I’m a bit curious why it is showing red though when I am logged in. As the admin of both the website and the forum it should show green if I am logged in to both myself and the visitors that are on the site. 

Does it take a while to kick in after you first using it, or do you think there may be another reason why it is showing me as offline when I am definitely logged in?

YS Yellow Swordfish
Yellow Swordfish
Member

It really refers to whether you are ‘online’ within the forum – it is, after all an SP tag not a sitewide WP tag. So SP is more interested in who is visiting the forum than the site. There are other plugins that can track online users on a sitewide basis.

So for it to show you as ‘online’ you will need to visit a forum page.