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?
Posting Still allowed in locked threads *SOLVED* (1 viewing) (1) Guest
Go to bottom Favoured: 1
TOPIC: Posting Still allowed in locked threads *SOLVED*
#29518
Re:Posting Still allowed in locked threads *SOLVED 10 Months, 1 Week ago  
But does the button still work?
grumblemarc (User)
Platinum Boarder
Posts: 3557
graph
User Offline Click here to see the profile of this user
Gender: Male
Logged Logged
 
The administrator has disabled public write access.  
#29546
Re:Posting Still allowed in locked threads *SOLVED 10 Months, 1 Week ago  
"Reply Topic" is there but donīt allow to post
goldc0der (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.  
#29640
Re:Posting Still allowed in locked threads *SOLVED 10 Months, 1 Week ago  
If it doesn't work then it shouldn't be there... should it?
Pam1234 (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#29645
Re:Posting Still allowed in locked threads *SOLVED 10 Months, 1 Week ago  
You would think. Perhaps you can whip up that code to make it disappear once a thread is locked. Thanks.
grumblemarc (User)
Platinum Boarder
Posts: 3557
graph
User Offline Click here to see the profile of this user
Gender: Male
Logged Logged
 
The administrator has disabled public write access.  
#29647
Re:Posting Still allowed in locked threads *SOLVED 10 Months, 1 Week ago  
The way it is integrated in further releases will remove these buttons correctly.
This is nothing new but already was corrected at the time this thread was introduced.

Thanks - Miro
Miro Dietiker (User)
Expert Boarder
Posts: 155
graphgraph
User Offline Click here to see the profile of this user
Gender: Male miro_dietiker MD Systems miro.dietiker@md-systems.ch Location: Zurich, Switzerland Birthdate: 1980-10-30
Logged Logged
 
Boarding with FIRE .-) -- Professional OpenSource developer
 
The administrator has disabled public write access.  
#29663
Re:Posting Still allowed in locked threads *SOLVED* 10 Months, 1 Week ago  
Thank you, Miro. I did a search and can't find a donation link on this site but I'd like to help out in some way. I can't write PHP code but I can help support what you are doing. I really appreciate all the hard work!

Thanks,
Pam
Pam1234 (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#31927
Re:Posting Still allowed in locked threads *SOLVED* 9 Months, 2 Weeks ago  
Thanks for the solution.
I have verified in this forum and still it is possible to be responded with "Quick Reply" although the topic is blocked
juanma (User)
Senior Boarder
Posts: 63
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#41801
Re:Posting Still allowed in locked threads 7 Months, 1 Week ago  
viet4777 wrote:
Look into file com_fireboard/template/default/view.php
at line 471
if ($topicID)
modify it
if ($_lockTopicID)

It works fine.


Unfortunately that was not the complete solution. Because only the message that the moderator locks becomes "locked=1" in the database row, if an end-user browses to any other message, they are able to reply to it. This must be the source of other comments in this thread.

First off, my lines 467-470 in view.php now look like this:
$_lockTopicID = $this_message->thread;
$topicLock = $this_message->locked;

if ($topicLock)

It achieves the same as the above, but to me it's a bit cleaner.

The simplest solution I've found is to change the SQL update statements to lock every message in the thread.

In post.php (same folder), change line 1113 from:
//lock topic post
$database->setQuery("update #__fb_messages set locked=1 where id=$id";
to:
//lock topic post
$database->setQuery("update #__fb_messages set locked=1 where thread=$id";

and change line 1140 from:
$database->setQuery("update #__fb_messages set locked=0 where id=$id";
to:
$database->setQuery("update #__fb_messages set locked=0 where thread=$id";

An alternative solution in view.php would be to do a further query to find out whether the first message in the thread is locked, but I didn't feel like writing the code for that. This one will be efficient enough if the thread isn't hundreds of messages long.
dansari (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#41803
Re:Posting Still allowed in locked threads 7 Months, 1 Week ago  
Oops, I just saw that dsmink found a similar solution about a week ago.
dansari (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
Go to top
Powered by FireBoard - Creditsget the latest posts directly to your desktop