Log in

View Full Version : Who's Online Plug In ?


dcpaq2xx
11-18-2005, 05:19 PM
Group,

I am looking for a plugin that will hide the members currently online as well as the most recent new member from GUESTS, UNREGISTERED or NON LOGGED IN members?

Listed below is all I want to show up to guests and members not logged in on my site and I am looking for a way to do this via a plugin, no code modifications in the templates.
================================================== ====
Our members have posted a total of 2086 articles
We have 113 registered members
Most members ever online was 18 on Sat May 29, 2004 10:46 pm
================================================== ====
Is there anyone willing to do a plugin of this for me?

Doug

Alan @ CIT
11-19-2005, 09:44 PM
You could do this using simple template conditionals. For information that you wish to hide from guests, edit the template and add:

<if condtion=$bbuserinfo['userid']>Before it, and then add:
</if>After it.

For example, if you wanted to hide the "Welcome to our newest member..." message on the homepage, you would need to edit the FORUMHOME template and find:

<div>
<phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase>
</div>
And by adding the <if> tags, this becomes:

<if conditional="bbuserinfo['userid']">
<div>
<phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase>
</div>
</if>
The "Welcome to our newest member" text will now no longer appear to unregistered users.

Hiding the information that you requested in your first post should just be a case of looking through the templates to find it, then wrapping it in the above <if> tags.

Most of the info you wish to hide should be in the FORUMHOME template. :)

dcpaq2xx
11-20-2005, 10:48 AM
Alan,

Thank you for this information, Ill give it a try. Are you willing to code this into a plugin for me?

Doug

dcpaq2xx
12-07-2005, 11:18 PM
Group,

Is there anyone who would be willing to write this as a plugin?

Doug

dcpaq2xx
01-05-2006, 06:18 AM
Alan,

I tried what you suggested doing and it did not work.

It would either just sit there and not refresh the page or it would tell me if i continue that it will cause an error.

I would have snap shotted the info but didnt think of doing it until after the fact. Sorry.

Is there some other way we can accomplish this?

Doug