hi,
i deployed some buttons like admin tools, favorite and etc. under a popup menu. here is the screen cap:
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.