vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Who's Online Plug In ? (https://vborg.vbsupport.ru/showthread.php?t=101098)

dcpaq2xx 11-18-2005 05:19 PM

Who's Online Plug In ?
 
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:

Code:

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

</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:

Code:

<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:

Code:

<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


All times are GMT. The time now is 08:40 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01098 seconds
  • Memory Usage 1,716KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete