![]() |
I want to hide post counts from normal users, but if you are logged in as Admin or Moderator I want to be able to see users post counts.
I find in my forums that users are posting nonsense replies just to get thier post count up. |
yeah, i want this too. where is it. i know its possible, because I can see that the admin of this board has pulled it okk...
|
this is easily done, so i haven't released it as a full hack, because one block one change and one new template isn't reallly much ^^
open functions.php goto section getpostbit there find: PHP Code:
PHP Code:
then edit your postbittemplate, replace $post[posts] with $adminpostbit and last step add template adminpostbit within there must be the line $post[posts] and whatever you want just to show up for your admins/mods and so on :) |
Quote:
Thanks. --Lucky |
<if condition="$bbuserinfo[usergroupid] == 6">
blah blah... </if> Just put that around the code in your postbit template. |
You'll have to do that in member profiles as well as any other places that show the post count.
|
Well, I think you could just go to your Replacement Variable Manager, and replace $post[posts] with <if condition="$bbuserinfo[usergroupid] == 6">$post[posts]</if>
|
nope, as the replacement is done AFTER the variable parsing, so this would replace nothing at all ;)
|
Is it possible we could get this in a plugin or plugin program?
Doug |
If anyone wants this released as a hack, please specify the target vB version. Thanks.
|
All times are GMT. The time now is 03:22 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|