Staff Rates
Moderator: mkoch227
-
- Posts: 90
- Joined: Tue Dec 30, 2008 11:29 am
Staff Rates
Staff his/her Rates display on main staff page.
How can we do?
How can we do?
-
- Posts: 90
- Joined: Tue Dec 30, 2008 11:29 am
-
- Posts: 90
- Joined: Tue Dec 30, 2008 11:29 am
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>
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools
-
- Posts: 90
- Joined: Tue Dec 30, 2008 11:29 am
Perfect. Thanks.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>
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....hollandsedrop wrote:Is there any progress on this issue?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
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
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

Try changing to
Code: Select all
$myuser['ratingneg']+$myuser['ratingpos']
Code: Select all
$_SESSION['ratingneg']+$_SESSION['ratingpos']
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Because one has $myuser variables registered and the other one not. The version with "$_SESSION" should work fine on both.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools
-
- Posts: 1
- Joined: Mon Apr 02, 2018 6:22 am
Re: Staff Rates
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
rating category - very good, good , average , not good
Re: Staff Rates
There is no such function built-in, you would have to code it yourself.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools