vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Post Count Management (https://vborg.vbsupport.ru/showthread.php?t=182811)

clayh456 06-18-2008 01:18 AM

Post Count Management
 
I necroed a post about this yesterday, but I think a new thread would be more appropriate. We are using VB 3.7.1. We would like to have a way to hide (not delete) the post count of all staff members. Since the staff is quite large and changes fairly often, it would be nice if this could be done via a secondary usergroup or some kind of plugin. So far, I haven't found anything that has this feature and no built in methods. Does anyone have ideas?

Dismounted 06-18-2008 07:11 AM

Just wrap places where it displays the post counts with conditionals:
Code:

<if condition="!is_member_of($bbuserinfo, X, Y, Z)">CODE</if>
Where X, Y and Z are IDs of staff usergroups.

clayh456 06-18-2008 08:30 AM

Quote:

Originally Posted by Dismounted (Post 1552371)
Just wrap places where it displays the post counts with conditionals:
Code:

<if condition="!is_member_of($bbuserinfo, X, Y, Z)">CODE</if>
Where X, Y and Z are IDs of staff usergroups.

Thank you! Where you have CODE between the > <, what would be the statement? Something like "$show['postcount']" but with a negative in there somewhere?

Dismounted 06-18-2008 08:58 AM

You have to find where the post count is displayed in the postbit (find $post[posts]), and put that in the middle of it.

Brother Malachi 06-18-2008 08:59 AM

The negative goes only before is_member_of(). Like so:
Code:

<if condition="!is_member_of($bbuserinfo, X, Y, Z)">$show['postcount']</if>

clayh456 06-18-2008 05:22 PM

Gotcha, thanks guys.


All times are GMT. The time now is 01:10 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.01117 seconds
  • Memory Usage 1,720KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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