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 Direct (Auto) Quick Reply?

More
16 years 9 months ago - 16 years 9 months ago #25858 by guerilla
Replied by guerilla on topic Re: Direct Quick Reply?
you must move quck reply area to viewp.php. open message.php in default_ex folder and delete this part:
Code:
<?php if (!isset($msg_closed)) { ?> <div id = "sc<?php echo $msg_id; ?>" class = "switchcontent"> <!-- make this div distinct from others on this page --> <?php //see if we need the users realname or his loginname if ($fbConfig->username) { $authorName = $kunena_my->username; } else { $authorName = $user->name; } //contruct the reply subject $resubject = kunena_htmlspecialchars(strtolower(substr($msg_subject, 0, strlen(_POST_RE))) == strtolower(_POST_RE) ? $msg_subject : _POST_RE .' '. $msg_subject); ?> <form action = "<?php echo JRoute::_(KUNENA_LIVEURLREL. '&amp;func=post'); ?>" method = "post" name = "postform" enctype = "multipart/form-data"> <input type = "hidden" name = "parentid" value = "<?php echo $msg_id;?>"/> <input type = "hidden" name = "catid" value = "<?php echo $catid;?>"/> <input type = "hidden" name = "action" value = "post"/> <input type = "hidden" name = "contentURL" value = "empty"/> <input type = "text" name = "subject" size = "35" class = "inputbox" maxlength = "<?php echo $fbConfig->maxsubject;?>" value = "<?php echo $resubject;?>"/> <textarea class = "inputbox" name = "message" rows = "6" cols = "60" style = "height: 100px; width: 100%; overflow:auto;"></textarea> <?php // Begin captcha . Thanks Adeptus if ($fbConfig->captcha && $kunena_my->id < 1) { ?> <?php echo _KUNENA_CAPDESC.'&nbsp;'?> <input name="txtNumber" type="text" id="txtNumber" value="" style="vertical-align:middle" size="10">&nbsp; <img src="index2.php?option=com_kunena&func=showcaptcha" alt="" /><br /> <?php } // Finish captcha ?> <input type = "submit" class = "fb_button fb_qr_fire" name = "submit" value = "<?php @print(_GEN_CONTINUE);?>"/> <input type = "button" class = "fb_button fb_qm_cncl_btn" id = "cancel__<?php echo $msg_id; ?>" name = "cancel" value = "<?php @print(_KUNENA_CANCEL);?>"/> <small><em><?php echo _KUNENA_QMESSAGE_NOTE?></em></small> </form> </div> <?php } ?>
and this:
Code:
<?php echo isset($fbIcons['quickmsg']) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons['quickmsg'] . '" border="0" alt="' . _KUNENA_QUICKMSG . '" />' . '' : ' <img src="' . KUNENA_URLEMOTIONSPATH . 'quickmsg.gif" border="0" alt="' . _KUNENA_QUICKMSG . '" />'; ?>

then open view.php and find this:
Code:
<!-- B: List Actions Bottom -->

and paste this code below:
Code:
<?php if (!isset($msg_closed)) { ?> <table class = "fb_blocktable<?php echo $objCatInfo->class_sfx; ?>" id="fb_views" cellpadding = "0" cellspacing = "0" border = "0" width = "100%"> <thead> <tr> <th align="left"> <div class = "fb_title_cover fbm"> <span class = "fb_title fbl"><b><?php echo _KUNENA_QUICKMSG; ?></b></span> </div> <!-- make this div distinct from others on this page --> <?php //see if we need the users realname or his loginname if ($fbConfig->username) { $authorName = $kunena_my->username; } else { $authorName = $user->name; } //contruct the reply subject $resubject = kunena_htmlspecialchars(strtolower(substr($fb_subject_txt, 0, strlen(_POST_RE))) == strtolower(_POST_RE) ? $fb_subject_txt : _POST_RE .' '. $fb_subject_txt); ?></th></tr><tr><td class = "fb-msgview-right"> <form action = "<?php echo JRoute::_(KUNENA_LIVEURLREL. '&amp;func=post'); ?>" method = "post" name = "postform" enctype = "multipart/form-data"> <input type = "hidden" name = "parentid" value = "<?php echo $msg_id;?>"/> <input type = "hidden" name = "catid" value = "<?php echo $catid;?>"/> <input type = "hidden" name = "action" value = "post"/> <input type = "hidden" name = "contentURL" value = "empty"/> <input type = "text" name = "subject" size = "35" class = "inputbox" maxlength = "<?php echo $fbConfig->maxsubject;?>" value = "<?php echo $resubject;?>"/> <textarea class = "inputbox" name = "message" rows = "6" cols = "60" style = "height: 100px; width: 100%; overflow:auto;"></textarea> <?php // Begin captcha . Thanks Adeptus if ($fbConfig->captcha && $kunena_my->id < 1) { ?> <?php echo _KUNENA_CAPDESC.'&nbsp;'?> <input name="txtNumber" type="text" id="txtNumber" value="" style="vertical-align:middle" size="10">&nbsp; <img src="index2.php?option=com_kunena&func=showcaptcha" alt="" /><br /> <?php } // Finish captcha ?> <input type = "submit" class = "fb_button fb_qr_fire" name = "submit" value = "<?php @print(_GEN_CONTINUE);?>"/> <input type = "button" class = "fb_button fb_qm_cncl_btn" id = "cancel__<?php echo $msg_id; ?>" name = "cancel" value = "<?php @print(_KUNENA_CANCEL);?>"/> <small><em><?php echo _KUNENA_QMESSAGE_NOTE?></em></small> </form> </div> <?php } ?></td></tr></table>

finally find this code
Code:
unset( $msg_id,
and change to this:
Code:
unset( //$msg_id,
Last edit: 16 years 9 months ago by guerilla.

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

More
16 years 9 months ago - 16 years 9 months ago #25992 by RonanK
Replied by RonanK on topic Re: Direct Quick Reply?
Guerilla, thank you very much. This works perfectly. I have a little question about it: Can we make it invisible for non-registered visitors?
Last edit: 16 years 9 months ago by RonanK.

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

More
16 years 9 months ago #25999 by guerilla
Replied by guerilla on topic Re: Direct Quick Reply?
sure. in the code i've gave, just change this part:
Code:
if (!isset($msg_closed))

to this:
Code:
if ($kunena_my->id > 0 && !isset($msg_closed))

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

More
16 years 9 months ago #26001 by RonanK
Replied by RonanK on topic Re: Direct Quick Reply?
You really helped me. I'm sure a lot of Kunena users who are looking for Phpbb style quick reply will use this information. Thanks again.

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

More
16 years 9 months ago #26019 by guerilla

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

More
16 years 9 months ago - 16 years 9 months ago #26169 by sozzled
I've been thinking about the value of this hack and I've decided that I was probably wrong with my initial reaction to the idea. Instead I have decided to incorporate the "always available" quick reply feature into a phpBB-like Kunena template.

:) Thanks, guerilla, for your contribution. I've made a small improvement (I think) to your idea ( #25999 )

Instead of changing
Code:
if (!isset($msg_closed))
to
Code:
if ($kunena_my->id > 0 && !isset($msg_closed))
I've used instead:
Code:
if (($kunena_my->id > 0 && !isset($msg_closed)) || $fbConfig->pubwrite)
This allows for the possibility that the forum is setup for public write access.
Last edit: 16 years 9 months ago by sozzled.

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

Time to create page: 0.533 seconds