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 :: Polls :: Message Navigator
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 21:10 Go to next message
syl20 is currently offline  syl20   France
Messages: 7
Registered: January 2007
Karma: 0
Junior Member
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] Fri, 04 May 2007 00: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
$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 06:44 Go to previous message
syl20 is currently offline  syl20   France
Messages: 7
Registered: January 2007
Karma: 0
Junior Member
It works, thanks.

Here is the patch for everyone :

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

Regards,
Sylvain
  Switch to threaded view of this topic Create a new topic Submit Reply
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: Mon Sep 30 02:19:57 GMT 2024

Total time taken to generate the page: 0.02936 seconds