Kunena 6.3.0 released

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

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
13 years 2 months ago #1 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.
Attachments:
The following user(s) said Thank You: SupaMic

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

More
13 years 1 month ago #2 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
12 years 6 months ago #3 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.568 seconds