cbk support
on :April 16, 2021, 2:24 pm #430
The program is beautiful and wonderful
I'm trying to make the code run off the page
When a new message arrives, it appears only when opening the control panel
I tried taking the new message counter out of the control panel
But not responding
<?php $unread = CbkSupport::newInstance()->countUnreadDescriptions(h_cbs_ticket_id(), 'SUPPORTTEAM'); ?>
<?php echo $unread; ?>
These work inside the control panel
But outside the control panel does not work
Thank you very much
Re: cbk support
on :April 17, 2021, 12:06 pm #431
If you want to sum the number of the unread description there is no function for that, to display in the user dashboard outside of a ticket.
In your function, you count only the unread replies on a specific ticket and you need to pass the id of that ticket.
The plugin has no function to count all unread replies from all tickets based on user id.
Maybe I will include this in the next update.![]()
Re: cbk support
on :April 18, 2021, 10:18 am #432
The sum option is available in the new version.
Regards!
on :April 18, 2021, 1:17 pm #433
Thank you very much