PunBB Resource

Your ultimate PunBB resource!

Keywords:

    (Extended)

You are not logged in.

#1 2009-03-16 15:49:41

duchesv
New member
Registered: 2009-03-15
Posts: 2

I need answer^^

Im just wondering if theres a mod that disables a post caount or hides the post count of a specific group like:

admins - they dont have to show their numbers of posts in the forum coz they only manage the forum..

See this example


hope someone can answer this^^

thank you.. more power!

Offline

 

#2 2009-03-18 20:45:26

Koos
Administrator
Registered: 2007-01-14
Posts: 524
Website

Re: I need answer^^

You'll have to edit the following three files: viewtopic.php, profile.php and userlist.php.

Here is how for viewtopic.php and profile.php:

Code:

#
#---------[ 1. OPEN ]---------------------------------------------------------
#

viewtopic.php


#
#---------[ 2. FIND (line: 235) ]---------------------------------------------
#

            if ($pun_config['o_show_post_count'] == '1' || $pun_user['g_id'] < PUN_GUEST)


#
#---------[ 3. REPLACE WITH ]---------------------------------------------------
#

            if (($pun_config['o_show_post_count'] == '1' || $pun_user['g_id'] < PUN_GUEST) && ($cur_post['g_id'] != '1' || $pun_user['g_id'] == PUN_ADMIN))


#
#---------[ 4. OPEN ]---------------------------------------------------------
#

profile.php


#
#---------[ 5. FIND (line: 983) ]---------------------------------------------
#

($pun_config['o_show_post_count'] == '1' || $pun_user['g_id'] < PUN_GUEST)


#
#---------[ 6. REPLACE WITH ]---------------------------------------------------
#

(($pun_config['o_show_post_count'] == '1' || $pun_user['g_id'] < PUN_GUEST) && ($user['g_id'] != '1' || $pun_user['g_id'] == PUN_ADMIN))


#
#---------[ 7. FIND (line: 1126) ]---------------------------------------------
#

($pun_config['o_show_post_count'] == '1' || $pun_user['g_id'] < PUN_GUEST)


#
#---------[ 8. REPLACE WITH ]---------------------------------------------------
#

(($pun_config['o_show_post_count'] == '1' || $pun_user['g_id'] < PUN_GUEST) && ($user['g_id'] != '1' || $pun_user['g_id'] == PUN_ADMIN))

Admins would still be able to see their own post count however.

The user list is a different story, since there is a column for post count. Would look a bit silly to leave it blank for a user belonging to a certain group.

Offline

 

#3 2009-03-20 13:44:54

duchesv
New member
Registered: 2009-03-15
Posts: 2

Re: I need answer^^

oh! thanks for this^^.. ill go and try to experiment^^.. thanks!

Offline

 

Board footer

Based on PunBB
© Copyright 2002–2005 Rickard Andersson

© Copyright 2004–2006 Kristoffer Jansson

User contributed files are property of their respective owners.