Main Menu

Recent posts

#91
SimpleDesk Support / Re: Alternating colours
Last post by smokester - April 24, 2017, 06:43:29 PM
Thanks SleePy,

I'm not really clued up enough to understand what you said in the second part of your last reply. If there is a way to have unique post background colours based in a members' ids, I'd love to know how that could be done. I have set up departments with corresponding member groups so many people can chip in and reply to a ticket.  The problem is you sort of lose who is saying what. Being able to identify them instantly would be more than useful.

I was looking at standard mods like this one:

https://custom.simplemachines.org/mods/index.php?mod=1310

but it wouldn't really do what I am asking and it probably wouldn't integrate into simpledesk of it did.


Any ideas?

#92
SimpleDesk Support / Re: Alternating colours
Last post by SleePy - April 22, 2017, 09:13:13 PM
If you want to change the color, I would suggest creating new names, copying the existing css for information and description and then altering it to fit your needs.  Unless you want to change those globally, as they are SMF css code and used in other parts around SMF.

If you wanted to track colors by the member, it should be possible by tracking the id_member and only changing $alt when we encounter a different id_member:

$alt = false;
$last_id_member = -1;
while ($reply = $context['get_replies']())
{
if ($last_id_member != $reply['id_member'])
$alt = !$alt;
$last_id_member = $reply['id_member'];

if (!empty($reply['is_new']))
echo '
<a id="new"></a>';

echo '
<div class="', $alt? 'description' : 'information', ' shd_reply', (!empty($context['ticket']['display_recycle']) && $reply['message_status'] == MSG_STATUS_DELETED ? ' errorbox' : ''), '" id="msg', $reply['id'], '">
#93
SimpleDesk Support / Re: Alternating colours
Last post by smokester - April 22, 2017, 03:05:51 PM
Sorry for the double post but I have realised a probable flaw in this idea I've requested. I realised that if someone double posted in a ticket, the alternating colours would become confusing as they would no longer seemingly apply to the poster.

It seems what I really need is to find a way to assign a background colour to a member's id/post so that replies can be read and identified more easily.

Is that possible?

Thanks in advance.
#94
SimpleDesk Support / Re: Alternating colours
Last post by smokester - April 22, 2017, 08:10:58 AM
Thanks for this.

To make this work do I now style "description" and "information" with different background colours?

I'd try that and test it now but I'm not at my work comp', and there's a possibility you may reply to this before I am which might save some time of I am wrong.

Many thanks
#95
SimpleDesk Support / Re: Alternating colours
Last post by SleePy - April 17, 2017, 09:02:08 PM
It can be by modifying the SimpleDesk-Display.template.php in the sd_template folder (in default theme folder)

look for:

while ($reply = $context['get_replies']())
{
if (!empty($reply['is_new']))
echo '
<a id="new"></a>';

echo '
<div class="description shd_reply', (!empty($context['ticket']['display_recycle']) && $reply['message_status'] == MSG_STATUS_DELETED ? ' errorbox' : ''), '" id="msg', $reply['id'], '">


Replace that with:
$alt = false;
while ($reply = $context['get_replies']())
{
$alt = !$alt;

if (!empty($reply['is_new']))
echo '
<a id="new"></a>';

echo '
<div class="', $alt? 'description' : 'information', ' shd_reply', (!empty($context['ticket']['display_recycle']) && $reply['message_status'] == MSG_STATUS_DELETED ? ' errorbox' : ''), '" id="msg', $reply['id'], '">
#96
SimpleDesk Support / Alternating colours
Last post by smokester - March 30, 2017, 03:25:52 PM
Hello all.

is there a way of forcing the background colour of replies of a ticket to alternate. I can't seem to do it through the css of the theme I'm using - it just doesn't alternate.

this would be useful when reviewing a long ticket.

Thanks in advance
#97
Site Comments / Re: Notice: Undefined variabl...
Last post by SleePy - November 11, 2016, 07:28:49 PM
All fixed.  Testing a SMF patch here.
#98
Site Comments / Notice: Undefined variable: l...
Last post by tfs - November 07, 2016, 06:49:24 PM
Getting this on the Home screen at https://www.simpledesk.net/

Notice: Undefined variable: list in /sv/sd/simpledesk.net/security/sources/Subs.php on line 4653
#99
SimpleDesk Support / Re: Find And Repair Errors
Last post by SleePy - October 15, 2016, 09:35:55 PM
Which version of SD?
#100
SimpleDesk Support / Re: Disable the Urgency option
Last post by SleePy - October 15, 2016, 09:35:26 PM
You can disable it via permissions, but admins can still change them.  It will still show up on the interface.  You could remove it from the interface by modifying templates as needed.