Kunena 7.0.4 Released

The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0

Topics that are moved into this category are generally considered to be closed. Users may want to add additional information but these topics should not be resurrected in order to discuss new problems or unrelated matters.

Question Make subject not changeable in further posts?

More
16 years 8 months ago #26751 by schmatzler
I have a little problem at the moment with the subject of a topic.

Lets take an example:

1. User A opens the thread "I love bubblegums" in the forum
2. User B answers to the thread, but at the Subject form he enters "I hate you"
3. All other users take the quick reply from user B and followers

Result: The original subject is gone. :unsure:

It would be cool to see a hack, where the subject is displayed, but not changeable by the users. The best option would be, if moderators could change it but other users not, that would be perfect.

I'm asking if anyone has ideas how to manage this :silly:

Please Log in or Create an account to join the conversation.

More
16 years 8 months ago #26793 by sozzled
I think that you might have found the answer quicker if you had searched the forum: see Fixed Subject in Reply

Please Log in or Create an account to join the conversation.

More
16 years 8 months ago - 16 years 8 months ago #26841 by schmatzler
I had searched, but didn't found it, thank you ;)

I could disable the text input when replying by simply replacing this code in fb_write.html.php:
Code:
<td> <input type = "text" class = "<?php echo $boardclass; ?>inputbox postinput" name = "subject" size = "35" maxlength = "<?php echo $fbConfig->maxsubject;?>" value = "<?php echo $resubject;?>" /> </td>

with this code:
Code:
<td> <?php if($resubject == '') { ?> <input type = "text" class = "<?php echo $boardclass; ?>inputbox postinput" name = "subject" size = "35" maxlength = "<?php echo $fbConfig->maxsubject;?>" value = "<?php echo $resubject;?>" /> <?php } else { ?> <input type = "hidden" class = "<?php echo $boardclass; ?>inputbox postinput" name = "subject" size = "35" maxlength = "<?php echo $fbConfig->maxsubject;?>" value = "<?php echo $resubject;?>" /><?php echo $resubject;?> <?php } ?> </td>

Users are still able to change the topic via the Quick reply function, so I opened up message.php and changed this code:
Code:
<input type = "text" name = "subject" size = "35" class = "inputbox" maxlength = "<?php echo $fbConfig->maxsubject;?>" value = "<?php echo $resubject;?>"/>

to this:
Code:
<input type = "hidden" name = "subject" size = "35" class = "inputbox" maxlength = "<?php echo $fbConfig->maxsubject;?>" value = "<?php echo $resubject;?>"/>

Finally got rid of these topic changers :)
Last edit: 16 years 8 months ago by schmatzler.

Please Log in or Create an account to join the conversation.

Time to create page: 0.234 seconds