FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Plugins and Code Hacks » Postings - need to turn off posting count for one user
Show: Today's Messages :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
Postings - need to turn off posting count for one user [message #11985] Thu, 24 July 2003 12:57 Go to next message
Captain Blood is currently offline  Captain Blood   United States
Messages: 3
Registered: July 2003
Location: Detroit, Michigan
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
Hello,

I'm looking to turn off the posting count for one specific person on our forum - when you post a response to a thread, there's a good amount of information that accompanies your post - name, avatar, post count.... for one person only (me) I want to make the count disappear....

Thanks for any help you may be able to offer

Captain Blood
http://www.thebigtoe.com/forum
Re: Postings - need to turn off posting count for one user [message #11989 is a reply to message #11985] Thu, 24 July 2003 13:39 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
Modify the drawmsg.tmpl template file.

FUDforum Core Developer
Re: Postings - need to turn off posting count for one user [message #12025 is a reply to message #11989] Thu, 24 July 2003 21:06 Go to previous messageGo to next message
Captain Blood is currently offline  Captain Blood   United States
Messages: 3
Registered: July 2003
Location: Detroit, Michigan
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
Thanks for the feedback... very much a newby to this all - I understand html, but am working to pick this up... What I wish to do is to omit the "posting count" for a moderator - I'm going to assign a special ranking level to that person and hide the number of posts.

in the drawmsg.tmpl the most likely file appears to bed msg_user_posts

which reads: {MSG: posts_c} {VAR: obj->posted_msg_count}<br />

based on my limited knowledge of the programming, I understand the variable that is being applied here. Should I be modifying another aspect of the file?

I'm assuming that if I modify the template, that it will impact all of the users... Should I assign a new modified template to the specific user that I wish to omit a post count for?

[Updated on: Thu, 24 July 2003 21:11]

Report message to a moderator

Re: Postings - need to turn off posting count for one user [message #12028 is a reply to message #12025] Thu, 24 July 2003 21:47 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
Aha I see, I slightly misunderstood your request. First of all you are correct, modifying the template will affect all users. To disable showing of the post count for a particular user you actually need to edit drawmsg.php.t (php source code) and add a condition to exclude certain data for that user.

For example:
<?php
if ($obj->user_id == 123) {
/* do or not do something */
} else {
/* rest of users */
}
?>


FUDforum Core Developer
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
Previous Topic: 2.5.0 RCx - Atomic theme rebuilds
Next Topic: how can i build a page with fudforum's header and footer?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Dec 15 01:14:12 EST 2017

Total time taken to generate the page: 0.00776 seconds