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 :: Polls :: Message Navigator
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 16:02 Go to next message
jmaimarc is currently offline  jmaimarc   Israel
Messages: 5
Registered: November 2006
Karma: 0
Junior Member
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 16:03]

Report message to a moderator

Re: Patch to show/hide reply and quote buttons [message #34755 is a reply to message #34731] Fri, 17 November 2006 00:08 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
That's a correct bitmask, the full list of permissions bitmasks is documented inside fud_groups.tbl

FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
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 May 04 21:35:46 GMT 2024

Total time taken to generate the page: 0.02613 seconds