buracat Posted November 22, 2018 Share Posted November 22, 2018 I want users to see only open tickets. How can i do it? I found an old topic but it doesn't work. https://whmcs.community/topic/216441-open-tickets-only-how/ 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted November 22, 2018 Share Posted November 22, 2018 17 hours ago, buracat said: I want users to see only open tickets. How can i do it? how thorough do you want to be ? as a bare minimum, you could edit supportticketslist.tpl and add an if statement to only list open tickets (i'm going to assume v7.6.1 and Six)... {foreach from=$tickets item=ticket} {if $ticket.statusClass eq 'open'} <tr onclick="window.location='viewticket.php?tid={$ticket.tid}&c={$ticket.c}'"> <td> {$ticket.department} </td> <td> <a href="viewticket.php?tid={$ticket.tid}&c={$ticket.c}" class="border-left"> <span class="ticket-number">#{$ticket.tid}</span> <span class="ticket-subject{if $ticket.unread} unread{/if}">{$ticket.subject}</span> </a> </td> <td> <span class="label status {if is_null($ticket.statusColor)}status-{$ticket.statusClass}"{else}status-custom" style="border-color: {$ticket.statusColor}; color: {$ticket.statusColor}"{/if}> {$ticket.status|strip_tags} </span> </td> <td class="text-center"> <span class="hidden">{$ticket.normalisedLastReply}</span> {$ticket.lastreply} </td> </tr> {/if} {/foreach} you could do the same with a hook to remove non-open tickets from the array... if you're going down this road, you may be looking at hooks to remove the ticket filter sidebar; to trim the results in the recent tickets homepage panel and maybe other places that aren't occurring to me off-hand. 1 Quote Link to comment Share on other sites More sharing options...
buracat Posted November 22, 2018 Author Share Posted November 22, 2018 Very thanks brian 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.