Best of joomla gives you news, joomla templates, tutorials and websites about Joomla , FireBoard and FireMessage official page.
| No account yet?   |
Welcome, Guest
Please Login or Register.    Lost Password?
New Thread button still visible in locked forums. (1 viewing) (1) Guest
Go to bottom Favoured: 1
TOPIC: New Thread button still visible in locked forums.
#46717
New Thread button still visible in locked forums. 5 Months, 2 Weeks ago  
Hi,

I'm using Fireboard 1.0.4 Stable on a site not ready for the public. Ive setup Fireboard with some locked forums inside it, but going into these forums still displays the New Thread buttons. If you click on it, it does not work, it simply displays the message:

"The administrator has disabled public write access.
Only logged in / registered users
are allowed to contribute to the forum.

Click here to register."

This is even though I am logged in as a regular user. The same thing happens with Reply Topic buttons in Locked Threads. Anybody have a solution for this? Ive not been able to find one through searching. It is rather annoying to have these buttons visible but not usable.

Thanks in advance for any help.
CaptSkubba (User)
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#51724
Re:New Thread button still visible in locked forums. 2 Months, 3 Weeks ago  
Hi,

I noticed the same problem

I wonder how to lock forums in a way that people could only participate in open topics (to disable / lock new topic option)

Best Regards
medy (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#51725
Re:New Thread button still visible in locked forum 2 Months, 3 Weeks ago  
Hi, i found some sort of solution

You can modify the code in a way, that only moderators and above see the "new thread button" - the register user won't

You can do that by modifying the
.../com_fireboard/template/default/showcat.php file

around lines 197 and 300 you will find the line
Code:

 if ((($fbConfig['pubwrite'] == 0 && $my_id != 0) || $fbConfig['pubwrite'] == 1) && ($topicLock == 0 || ($topicLock == 1 && $is_moderator)))



You can comment it out by putting the "//" at the beginning of it.
Then underneath copy-paste this
Code:

if ($is_moderator)


Final result will look something like this
Code:

 // if ((($fbConfig['pubwrite'] == 0 && $my_id != 0) || $fbConfig['pubwrite'] == 1) && ($topicLock == 0 || ($topicLock == 1 && $is_moderator)))
if ($is_moderator)
{



This code tells fireboard to show the button only if user is moderator. Don't forget to copy-paste this on both places (line 197 and line 300)

Hope it helps
Best Regards
medy (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2008/06/07 22:35 By medy.
 
The administrator has disabled public write access.  
#51786
Re:New Thread button still visible in locked forums. 2 Months, 2 Weeks ago  
Hi. I'm guessing this fix is more for your own problem than it is for mine, since now all my forums are locked for people who aren't moderators. i still want people to be able to create new topics, just not display the button to create a new topic in a locked forum.
CaptSkubba (User)
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2008/06/09 14:44 By CaptSkubba.
 
The administrator has disabled public write access.  
Go to top
Powered by FireBoard - Creditsget the latest posts directly to your desktop