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

Home » FUDforum Development » Bug Reports » new_thread.gif button always shown
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
new_thread.gif button always shown [message #37088] Thu, 03 May 2007 17:10 Go to next message
syl20 is currently offline  syl20   France
Messages: 7
Registered: January 2007
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
Hi,

In the THREAD_PAGE template, the new_thread.gif button is always shown, despite of the users' rights to post a new thread.

In the MSG_PAGE and TREE_PAGE, it's the same thing, but I added a {IF: $perms & 4} condition around the {TEMPLATE: new_thread} call.

But in THREAD_PAGE, I have no $perm variable.

How can I fix this ?

Thanks,

Sylvain
Re: new_thread.gif button always shown [message #37091 is a reply to message #37088] Thu, 03 May 2007 20:07 Go to previous messageGo to next message
Ilia is currently offline  Ilia   
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
$frm->group_cache_opt is the variable you can use on the thread page.

FUDforum Core Developer
Re: new_thread.gif button always shown [message #37099 is a reply to message #37091] Fri, 04 May 2007 02:44 Go to previous message
syl20 is currently offline  syl20   France
Messages: 7
Registered: January 2007
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
It works, thanks.

Here is the patch for everyone :

{IF: ($MOD || $frm->group_cache_opt & 4)}{TEMPLATE: new_thread_link}{ENDIF}

Regards,
Sylvain
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
Previous Topic: undefined function u() in mnav.php
Next Topic: [php][/php] tags working not properly
Goto Forum:
  

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

Current Time: Tue Dec 12 12:54:02 EST 2017

Total time taken to generate the page: 0.00512 seconds