Kayako logo
Modifications & Addon Releases Modification guides and addons are posted here to share with the community. Do not post requests in here!

Notices

Reply
 
LinkBack Thread Tools Search this Thread Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  (#1) Old
Matthew Offline
Member
 
Matthew's Avatar
 
Posts: 197
Join Date: Oct 2007
Location: Jakarta, Indonesia
Post Online Help Tips for Staff - 28-10-2008, 08:48 PM

The Staff control panel can be intimidating for new users, and even 'seasoned' ones often don't know what to do with tabs such as 'Release', 'Follow-Up', and so on.

I decided to put in a very simple 'random tip' system. This prints a row near the top of the page (typically right above a text editor), with random text drawn from a collection of strings stored in a php file. I have one on the Reply Tab, New Ticket, Insert Article (for KB), and in other locations where I want to provide a little guidance and/or protection against common mistakes.

Here's how.

Insert this function at the end of \includes\functions_html.php. This is what renders the help row:

PHP Code:
function printHelpRow($title$helptip)
{
    echo 
'<tr class="'getRowBG() .'">
    <td width="100" align="left"><span class="tabletitle">'
.$title.'</span></td>
    <td align="left"><b>'
$helptip.'</b>&nbsp;&nbsp;</td></tr>';
    return 
true;

Now create a file called help_staffposts.php (for example) in \locale\en-us\. The contents of the file look like the following, substituting your own help tips for the ones shown:

PHP Code:
<?php
/*==============================================*/
/*     Online Help Strings                    */
/*==============================================*/
if (!defined("INSWIFT")) {
    
trigger_error("Unable to process $PHP_SELF"E_USER_ERROR);
}
$__LANG = array (
    
'help_title' => 'Helpful Tip',
    
'help_maxtips' => '3'//the number of tips in this help file
    
'help_1' => 'Text Editor: Use the <font color="red">Paste from Word</font> button to safely convert text from Microsoft Word, Outlook, and other programs.',
    
'help_2' => 'Text Editor: The <font color="red">Paste as Plain Text</font> button will remove all HTML and Microsoft style information from pasted text.',
    
'help_3' => 'Text Editor: Toggle the <font color="red">full-screen mode</font> when you need to edit long articles or ticket responses.',
);

?>
Note that help_maxtips should correspond to the total number of tips in your help file.

(Later, you can make other help files with distinct tip collections, using this model.)

Now in \modules\tickets\staff_viewticket.php, locate the following line, which prints the title bar above the text editor for staff replies:

PHP Code:
    printDescRow($_SWIFT["language"]["contents"]); 
Insert directly above it:
PHP Code:
    // Online Help Mod by Matthew Arciniega
    
$template->loadLanguageSection("help_staffposts"); // corresponds to your help file
    
printHelpRow($_SWIFT["language"]["help_title"], $_SWIFT["language"]["help_".rand(1,$_SWIFT["language"]["help_maxtips"])]);
    
// End Online Help Mod 
That's all there is to it. You can insert the above code into other areas of the staff control panel, or even in the Admin CP. Each area can have a custom collection of tips.


Matthew Arciniega
+ Free: Ticket List & Search Mods
| Dept. Display Names
+ Free: (Almost) Perfect Outlook/HTML Tickets
+ Tutorials: SLA System Explained
| Using Template Groups
Kayako v3.20.02 | PHP: 5.2.6 | MySQL: 5.0.58 | CentOS 4

Last edited by Matthew; 11-11-2008 at 03:31 AM.. Reason: Error in a filename "Now create a file called help_staffposts.php (for example) in \locale\en-us\..."
   
Reply With Quote
  (#2) Old
joshuah Offline
Member
 
Posts: 141
Join Date: Oct 2007
hmmm - 11-11-2008, 02:50 AM

hello there,

i tried this, but it doensot seem to work.. i have also cleared cache etc...

Any idea how i can resolve this? Maybe some files missing or something?
   
Reply With Quote
  (#3) Old
Matthew Offline
Member
 
Matthew's Avatar
 
Posts: 197
Join Date: Oct 2007
Location: Jakarta, Indonesia
11-11-2008, 03:33 AM

Quote:
Originally Posted by joshuah View Post
hello there,

i tried this, but it doensot seem to work.. i have also cleared cache etc...

Any idea how i can resolve this? Maybe some files missing or something?
There was an inconsistency between the filename I asked you to use in \locale\en-us\ and the reference in code. Oops. It should have been help_staffposts.php. I've corrected the post. See if that helps.


Matthew Arciniega
+ Free: Ticket List & Search Mods
| Dept. Display Names
+ Free: (Almost) Perfect Outlook/HTML Tickets
+ Tutorials: SLA System Explained
| Using Template Groups
Kayako v3.20.02 | PHP: 5.2.6 | MySQL: 5.0.58 | CentOS 4
   
Reply With Quote
  (#4) Old
joshuah Offline
Member
 
Posts: 141
Join Date: Oct 2007
11-11-2008, 04:23 AM

Quote:
Originally Posted by Matthew View Post
TI've corrected the post. See if that helps.
Works perfect! thanks for that,

Would it be too much trouble if i could request that all the other locations can be defined here? i.e.

Forward
Release
Audit log
History
Add notes

etc

Thanks :-) Great work!!!
   
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
Invalid Username or Password with AD slarson SupportSuite, eSupport and LiveResponse 15 13-05-2008 09:59 AM
LiveSupport not going online (Vista) njclark007 LiveResponse Desktop Application 6 06-11-2007 11:32 PM
LiveSupport WCA Online, LS Icon Online but Chat request = offline! gremlin LiveResponse Desktop Application 3 21-03-2007 10:31 AM



Powered by vBulletin® Version 3.7.5
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Help desk software by Kayako.


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