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

Home » FUDforum » FUDforum Suggestions » Patch to show/hide reply and quote buttons
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
Patch to show/hide reply and quote buttons [message #34731] Thu, 16 November 2006 11:02 Go to next message
jmaimarc is currently offline  jmaimarc   Israel
Messages: 5
Registered: November 2006
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
Ilia,

/* I added the "( $perms & 8 ) &&" conditional to show/hide the reply/quote buttons on non-reply forums */
if (( $perms & 8 ) && (!($obj->thread_opt & 1) || $perms & 4096)) {

on line 415ish of tree.php

It seems to be working. Did I get the right bitwise $perms? I tried looking for a chart but couldn't find it, you said it was in a sql file somewhere..

Thanks,

[Updated on: Thu, 16 November 2006 11:03]

Report message to a moderator

Re: Patch to show/hide reply and quote buttons [message #34755 is a reply to message #34731] Thu, 16 November 2006 19:08 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
That's a correct bitmask, the full list of permissions bitmasks is documented inside fud_groups.tbl

FUDforum Core Developer
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
Previous Topic: Show Own Topics and Files
Next Topic: Reporting a message
Goto Forum:
  

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

Current Time: Sat Dec 16 12:00:09 EST 2017

Total time taken to generate the page: 0.00664 seconds