Page 1 of 1

Staff Rates

Posted: Sun Feb 01, 2009 8:37 pm
by hollandsedrop
Staff his/her Rates display on main staff page.

How can we do?

Posted: Mon Feb 02, 2009 12:23 pm
by MPH2008
You are wanting % of staff answers/completed tasks?

Posted: Mon Feb 02, 2009 12:26 pm
by hollandsedrop
MPH2008 wrote:You are wanting % of staff answers/completed tasks?
No. Only rating display! (ex: 5 star)

Posted: Mon Feb 02, 2009 12:29 pm
by MPH2008
I'm installing/updating our Hesk to the new version this week, so i'll look into what you are wanting to achieve and see if I can help out :)

Posted: Wed Feb 11, 2009 2:46 pm
by hollandsedrop
MPH2008 wrote:I'm installing/updating our Hesk to the new version this week, so i'll look into what you are wanting to achieve and see if I can help out :)
Is there any progress on this issue?

Posted: Sat Feb 14, 2009 11:24 am
by Klemen
You can add something like this in the admin_main.php file:

Code: Select all

<p>Your rating: <?php
	$myuser['rating'] = $_SESSION['rating'];
	$alt = $myuser['rating'] ? sprintf($hesklang['rated'], sprintf("%01.1f", $myuser['rating']), ($myuser['ratingneg']+$myuser['ratingpos'])) : $hesklang['not_rated'];
	echo '<img src="../img/star_'.(hesk_round_to_half($myuser['rating'])*10).'.png" width="85" height="16" alt="'.$alt.'" title="'.$alt.'" border="0" style="vertical-align:text-bottom" />';
?></p>

Posted: Sat Feb 14, 2009 12:25 pm
by hollandsedrop
Klemen wrote:You can add something like this in the admin_main.php file:

Code: Select all

<p>Your rating: <?php
	$myuser['rating'] = $_SESSION['rating'];
	$alt = $myuser['rating'] ? sprintf($hesklang['rated'], sprintf("%01.1f", $myuser['rating']), ($myuser['ratingneg']+$myuser['ratingpos'])) : $hesklang['not_rated'];
	echo '<img src="../img/star_'.(hesk_round_to_half($myuser['rating'])*10).'.png" width="85" height="16" alt="'.$alt.'" title="'.$alt.'" border="0" style="vertical-align:text-bottom" />';
?></p>
Perfect. Thanks.

Posted: Thu Mar 05, 2009 12:25 pm
by MPH2008
hollandsedrop wrote:
MPH2008 wrote:I'm installing/updating our Hesk to the new version this week, so i'll look into what you are wanting to achieve and see if I can help out :)
Is there any progress on this issue?
Unfortunately i've only just managed to get around to installing it as we speak now. I'll have a poke around on our development/test server and see what can be achieved....

Posted: Mon Sep 28, 2009 12:06 am
by Raven
A late reply to an old'ish post I know but I have also just got around to installing this fine hack. All working fine so I also decided to add it to the: Profile section (/admin/profile.php) - this shows the stars just as they should be but when l I hover my mouse over it reports: User rated 5.0/5.0 (0 votes) when it should be: User rated 5.0/5.0 (1 votes).

As you can see, I have one vote but it states 0... This is only on the profile page too? Any help with this would be super ;)

Cheers

**EDIT**
Just a quick edit, I am using HESK 2.0 for the time being :P

Posted: Mon Sep 28, 2009 5:46 pm
by Klemen
Try changing

Code: Select all

$myuser['ratingneg']+$myuser['ratingpos']
to

Code: Select all

$_SESSION['ratingneg']+$_SESSION['ratingpos']

Posted: Mon Sep 28, 2009 7:58 pm
by Raven
Cool that fixed it :) Thank you so much for your quick reply and top-notch support ;)

Just a quick question, why do I need different code for both the profile.php and manage_users.php files? -- I would have thought that it would have worked the same...

Posted: Tue Sep 29, 2009 5:14 pm
by Klemen
Because one has $myuser variables registered and the other one not. The version with "$_SESSION" should work fine on both.

Posted: Sat Oct 10, 2009 10:15 pm
by Raven
Thanks Klemen, thats sorted it :)

Re: Staff Rates

Posted: Mon Apr 02, 2018 6:38 am
by bibinthilakan
Hi , is there is any option where we can integrate end user rating to " staff " (who made IT support recently ) ?
rating category - very good, good , average , not good

Re: Staff Rates

Posted: Mon Apr 02, 2018 6:12 pm
by Klemen
There is no such function built-in, you would have to code it yourself.