as you know the moderator buttons like "delete", "lock", "move" etc shown near new topic button and i think this button crowded look so ugly. so i made a hack that shows moderator tools under forum tools slider menu. i think it must be default at next releases of kunena.
here is a screen cap:
open view.php file and find this rows:
Code:
if ($is_Moderator)
{
// offer the moderator always the move link to relocate a topic to another forum
// and the (un)sticky bit links
// and the (un)lock links
$thread_move = CKunenaLink::GetTopicPostLink('move', $catid, $id, isset($fbIcons['move']) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons['move'] . '" alt="Move" border="0" title="' . _VIEW_MOVE . '" />':_GEN_MOVE);
if ($topicSticky == 0)
{
$thread_sticky = CKunenaLink::GetTopicPostLink('sticky', $catid, $id, isset($fbIcons['sticky']) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons['sticky'] . '" alt="Sticky" border="0" title="' . _VIEW_STICKY . '" />':_GEN_STICKY);
}
else
{
$thread_sticky = CKunenaLink::GetTopicPostLink('unsticky', $catid, $id, isset($fbIcons['unsticky']) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons['unsticky'] . '" alt="Unsticky" border="0" title="' . _VIEW_UNSTICKY . '" />':_GEN_UNSTICKY);
}
if ($topicLocked == 0)
{
$thread_lock = CKunenaLink::GetTopicPostLink('lock', $catid, $id, isset($fbIcons['lock']) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons['lock'] . '" alt="Lock" border="0" title="' . _VIEW_LOCK . '" />':_GEN_LOCK);
}
else
{
$thread_lock = CKunenaLink::GetTopicPostLink('unlock', $catid, $id, isset($fbIcons['unlock']) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons['unlock'] . '" alt="Unlock" border="0" title="' . _VIEW_UNLOCK . '" />':_GEN_UNLOCK);
}
$thread_delete = CKunenaLink::GetTopicPostLink('delete', $catid, $id, isset($fbIcons['delete']) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons['delete'] . '" alt="Delete" border="0" title="' . _VIEW_DELETE . '" />':_GEN_DELETE);
$thread_merge = CKunenaLink::GetTopicPostLink('merge', $catid, $id, isset($fbIcons['merge']) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons['merge'] . '" alt="Merge" border="0" title="' . _VIEW_MERGE . '" />':_GEN_MERGE);
}
change to this:
Code:
if ($is_Moderator)
{
// offer the moderator always the move link to relocate a topic to another forum
// and the (un)sticky bit links
// and the (un)lock links
$thread_move = CKunenaLink::GetTopicPostLink('move', $catid, $id, _GEN_MOVE);
if ($topicSticky == 0)
{
$thread_sticky = CKunenaLink::GetTopicPostLink('sticky', $catid, $id, _GEN_STICKY);
}
else
{
$thread_sticky = CKunenaLink::GetTopicPostLink('unsticky', $catid, $id, _GEN_UNSTICKY);
}
if ($topicLocked == 0)
{
$thread_lock = CKunenaLink::GetTopicPostLink('lock', $catid, $id, _GEN_LOCK);
}
else
{
$thread_lock = CKunenaLink::GetTopicPostLink('unlock', $catid, $id, _GEN_UNLOCK);
}
$thread_delete = CKunenaLink::GetTopicPostLink('delete', $catid, $id, _GEN_DELETE);
$thread_merge = CKunenaLink::GetTopicPostLink('merge', $catid, $id, _GEN_MERGE);
}
find and delete theese rows (there are two of them, first at the top of the page and seconds at the bottom, delete all):
Code:
if ($is_Moderator)
{
echo '<div class="fb_message_buttons_row" style="text-align: center;">';
echo $thread_delete;
echo ' '.$thread_move;
echo ' '.$thread_sticky;
echo ' '.$thread_lock;
echo '</div>';
}
Code:
if (isset($thread_merge))
{
echo '<div class="fb_message_buttons_row" style="text-align: left;">';
echo $thread_merge;
echo '</div>';
}
then open your default/plugin/forumttols/forumtool.php file and find this part:
Code:
</ul>
</div>
</div>
</div>
and add this code below:
Code:
<?php
if ($is_Moderator)
{
if (isset($thread_delete)){echo '<li style="border-top:1px dotted #ccc">'.$thread_delete.'</li>';}
if (isset($thread_move)){echo '<li>'.$thread_move.'</li>';}
if (isset($thread_sticky)){echo '<li>'.$thread_sticky.'</li>';}
if (isset($thread_lock)){echo '<li>'.$thread_lock.'</li>';}
if (isset($thread_merge)){echo '<li>'.$thread_merge.'</li>';}
}
?>
thats all...