Topic solved
This topic is marked as solved and as such require no attention unless you want to bump this issue.

URL of SimpleDesk?

Started by RagingHippieHost, April 05, 2010, 04:25:11 PM

Previous topic - Next topic

Yagiz

Yep, it's because of the theme :)

I made something for my customer, sharing it with you now:

Find in index.template.php:
echo '<li><a href="#">Menu Item<br /><span>Description</span></a>
<ul>
<li><a href="#">Submenu</a></li>
</ul>
</li>';

Replace with:
global $modSettings;
if ($modSettings['helpdesk_active'] && (allowedTo('access_helpdesk') || allowedTo('admin_helpdesk')))
{
echo '
<li>
<a href="', $scripturl, '?action=helpdesk;sa=main">', $modSettings['helpdesk_active'] && SMF != 'SSI' ? shd_get_active_tickets() : $txt['shd_helpdesk'], '<br /><span>Description</span></a>
<ul>';
if (SMF == 'SSI' ? false : shd_allowed_to('shd_new_ticket'))
echo '
<li><a href="', $scripturl, '?action=helpdesk;sa=newticket">', $txt['shd_new_ticket'], '</a></li>';
if (SMF == 'SSI' ? false : (shd_allowed_to('shd_resolve_ticket_own') || shd_allowed_to('shd_resolve_ticket_any')))
echo '
<li><a href="', $scripturl, '?action=helpdesk;sa=closedtickets">', $txt['shd_tickets_closed'] , '</a></li>';
if (SMF == 'SSI' ? false : shd_allowed_to('shd_access_recyclebin'))
echo '
<li><a href="', $scripturl, '?action=helpdesk;sa=recyclebin">', $txt['shd_recycle_bin'] , '</a></li>';
echo '
</ul>
</li>';
}