Kayako logo
Modifications & Extensions Modifications, extensions and guides for your Kayako help desk software.


Kayako develops robust helpdesk software, live chat and real-time visitor monitoring software.
Kayako is trusted by more than 30,000 organizations, including a number of Fortune 500 companies and government institutions.
Reply
 
LinkBack Thread Tools Search this Thread Rating: Thread Rating: 7 votes, 5.00 average. Display Modes
  (#1) Old
Matthew Offline
Member
 
Matthew's Avatar
 
Posts: 270
Join Date: Oct 2007
Location: Jakarta, Indonesia
Display User Group and Manager Status on client side - 20-05-2009, 11:00 AM

Here's an easy mod.



First, go through your languages and add the key phrases 'manager', and 'usergroup' with appropriate translations (such as 'Manager' and 'Group: ').

Next, open \index.php and look for this block:

PHP Code:
    // ======= PROCESS THE WIDGETS =======
    
require_once ("./includes/Widgets/widgets.php");
    
$template->assign("widgets"processWidgets($_widgets)); 
Insert this code directly above it:
PHP Code:
    // MOD: Show user group in client-side Navbar
    
$template->assign("usergroupname"$_SWIFT["usergroupcache"][$_SWIFT["user"]["usergroupid"]]["title"]); 
Finally, locate the navbar template in each of your template groups (or in whichever one you want to use this feature in). Search for the section of code that looks like this:
Code:
    <td bgcolor="#F5F5F5" colspan="4">
    <table width="100%"  border="0" cellspacing="1" cellpadding="2">
        <tr><td align="left" valign="top"><span class="smalltext"><{$language[loggedinas]}><strong><{$_USER[fullname]}></strong></span></td></tr>
    </table>
    </td>
Replace that entire <td> tag pair with this:
Code:
    <td bgcolor="#F5F5F5" colspan="4">
    <table width="100%"  border="0" cellspacing="1" cellpadding="2">
        <tr><td align="left" valign="top"><span class="smalltext"><{$language[loggedinas]}><strong><{$_USER[fullname]}></strong></span></td></tr>
        <tr><td align="left" valign="top"><span class="smalltext"><{$language[usergroup]}><strong><{$usergroupname}></strong><{if $_USER[ismanager] == 1}> (<{$language[manager]}>)<{/if}></span></td></tr>
    </table>
    </td>
(It's actually only a bit of code that needs replacing, but I thought this would make it easier to see.)

Save the files, rebuild your cache, and enjoy!
Attached Images
File Type: png navbarstatus.png (26.0 KB, 172 views)


Matthew Arciniega
Free: Ticket List & Search | Dept. Display Names
Free: Outlook/HTML Tickets| Staff Parser Log
Tutorials: SLA System
| Template Groups
KSS v3.20.02 | PHP: 5.2.6 | MySQL: 5.0.58 | CentOS 4
   
Reply With Quote
  (#2) Old
renatoar Offline
New Member
 
Posts: 3
Join Date: Jun 2008
06-10-2009, 11:18 PM

Hello, I tried to do this in version 3.60.04 more nao group name appears. I tried to make some changes in the string and nothing. You can help me?!
   
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Assign multiple usergroups to templategroup logicway SupportSuite, eSupport and LiveResponse 10 03-08-2009 01:25 AM
User group manager and queue visibility ISDHK SupportSuite, eSupport and LiveResponse 0 14-11-2006 09:26 AM



Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78