Kunena 7.0.5 & Kunena 6.4.11 – Security Updates Released

The Kunena team has announce the arrival of Kunena 7.0.5 [K 7.0.5] 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.

The Kunena team is also pleased to announce the eleventh version of Kunena 6.4, a native Joomla extension for Joomla! 5.0, 5.1, 5.2, 5.3, 5.4 and 6.0.

This category contains miscellaneous, uncategorised user contributions, (templates, modules, plugins and hacks) relating to older versions of Kunena that are no longer supported.

The topics in this category are for historical interest only. Owing to the structural changes that occurred in K 1.7, many of the ideas in these topics will not work with later versions and, for that reason, the topics are locked.

Question [hack] popup menu for admin tools

More
15 years 3 months ago #85671 by guerilla
hi,
i deployed some buttons like admin tools, favorite and etc. under a popup menu. here is the screen cap:
[IMG


step1: open your deafult/view/thread.actions.php file and change this:
Code:
<!-- B: Thread Actions --> <table class="klist-actions"> <tr> <td class="klist-actions-goto"> <?php echo $this->goto ?> </td> <td class="klist-actions-forum"> <?php if ($this->thread_reply || $this->thread_subscribe || $this->thread_favorite ) : ?> <div class="kmessage-buttons-row"> <?php echo $this->thread_reply ?> <?php echo $this->thread_subscribe ?> <?php echo $this->thread_favorite ?> </div> <?php endif ?> <?php if ($this->thread_delete || $this->thread_move || $this->thread_sticky || $this->thread_lock) : ?> <div class="kmessage-buttons-row"> <?php echo $this->thread_delete ?> <?php echo $this->thread_sticky ?> <?php echo $this->thread_move ?> <?php echo $this->thread_lock ?> </div> <?php endif ?> </td> <td class="klist-actions-forum"> <?php if (isset ( $this->thread_new )) : ?> <div class="kmessage-buttons-row"> <?php echo $this->thread_new; ?> </div> <?php endif ?> <?php if (isset ( $this->thread_moderate )) : ?> <div class="kmessage-buttons-row"> <?php echo $this->thread_moderate; ?> </div> <?php endif ?> <?php if (isset ( $this->thread_merge )) : ?> <div class="kmessage-buttons-row"> <?php echo $this->thread_merge; ?> </div> <?php endif ?> </td> <td class="klist-pages-all"> <?php echo $this->pagination; ?> </td> </tr> </table> <!-- F: Thread Actions -->

to this:
Code:
<!-- B: Thread Actions --> <table class="klist-actions"> <tr> <td class="klist-actions-goto"> <?php echo $this->goto ?> </td> <td class="klist-actions-forum"> <?php if ($this->thread_reply ) : ?> <div class="kmessage-buttons-row"> <?php echo $this->thread_reply ?> <?php endif ?> <?php if (isset ( $this->thread_new )) : ?> <?php echo $this->thread_new; ?> </div> <?php endif ?> </td> <td class="klist-pages-all"> <?php echo $this->pagination; ?> </td> </tr> </table> <!-- F: Thread Actions -->

step2: open your view.php file and find this:
Code:
<div class="kheader">

and add this below:
Code:
<div class="kpop-cover"><div class="kpop-btn" onclick="gizle('kpopup')"></div><div class="kpopup" id="kpopup"> <?php if (isset ( $this->thread_moderate )) : ?> <div class="kmessage-buttons-row"><?php echo $this->thread_moderate; ?></div> <?php endif ?> <?php if ($this->thread_delete || $this->thread_move || $this->thread_sticky || $this->thread_lock) : ?> <div class="kmessage-buttons-row"><?php echo $this->thread_delete ?></div> <div class="kmessage-buttons-row"><?php echo $this->thread_sticky ?></div> <div class="kmessage-buttons-row"><?php echo $this->thread_move ?></div> <div class="kmessage-buttons-row"><?php echo $this->thread_lock ?></div> <?php endif ?> <?php if (isset ( $this->thread_merge ) || $this->thread_subscribe || $this->thread_favorite) : ?> <div class="kmessage-buttons-row"><?php echo $this->thread_merge; ?></div> <div class="kmessage-buttons-row"><?php echo $this->thread_subscribe ?></div> <div class="kmessage-buttons-row"><?php echo $this->thread_favorite ?></div> <?php endif ?></div></div> <script type="text/javascript"> function gizle($id){ if (document.getElementById($id).style.display !='' && document.getElementById($id).style.display!='none'){ document.getElementById($id).style.display= 'none'; }else{ document.getElementById($id).style.display= 'block'; } } </script>

step3: open your kunena.default-min.css and add this code to end:
Code:
#Kunena div.kpopup{position:absolute; display:none; z-index:9999; background:#999; padding:5px; border:5px solid #222; margin-top:30px;}#Kunena div.kpop-btn{background: url(/"../images/icons/topic-tools.png") no-repeat left top;height:22px;width:22px;display:inline-block;margin:4px 4px 0;float:left; cursor:pointer;}


finally add topic-tools.png to default/images/icons/ folder...

thats all.
The following user(s) said Thank You: SupaMic

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

More
15 years 2 months ago #87342 by Jake405
Wow thats pretty nice! Looks a lot easier to use also.

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

More
14 years 7 months ago #109324 by Al Duccino
Thank you so much for this hack.

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

Time to create page: 0.236 seconds