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 Rate Thread Display Modes
  (#1) Old
jbard Offline
New Member
 
Posts: 6
Join Date: Nov 2007
Altering categorty icons - 19-12-2007, 11:35 PM

Hi all,

I'm trying to figure out how to change the icons for "Register" "Knowledgebase" etc, on the front page of Kayako. I want to do this per template, so just changing the icon by replacing doesn't accomplish what I'd like.

Really, I just need to figure out what's calling it, cause searches aren't helping me at all.

Thanks a bunch!
   
Reply With Quote
  (#2) Old
Jamie Edwards Offline
Operations Manager
 
Jamie Edwards's Avatar
 
Posts: 5,660
Join Date: Jan 2006
Location: United Kingdom
20-12-2007, 01:44 AM

Hi jbard,

The file you need to edit is in includes/Widgits/widgets.php - however, I am afraid I am not sure of the conditional(s) to use to check what template group is being accessed.


Jamie Edwards (jamie.edwards ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
  (#3) Old
mopa Offline
Member
 
mopa's Avatar
 
Posts: 146
Join Date: May 2007
Location: Denmark
20-12-2007, 12:43 PM

I'm not sure if this is what you are looking for but anyway here it goes.

I have used this to add my own (new) widgets on the frontpage but I guess it might be used to set up different stuff for different departments as well (haven't tried though)


BE SURE TO MAKE A BACKUP BEFORE TRYING
Also please read all of the below before starting...




Find Includes/widgets/widgets.php
use this code and change the nessesary fields.
PHP Code:
if ($_SWIFT["tgroup"]["tgroupid"] == 10
{
                             
// ======= NEW WIDGET=======
                             
$_widgets[$index]["icon"] = $_SWIFT["themepath"]."superusers.gif";
                             
$_widgets[$index]["title"] = $_SWIFT["language"]["superusers_title"];
                             
$_widgets[$index]["description"] = $_SWIFT["language"]["superusers_desc"];
                             
$_widgets[$index]["link"] = "index.php?_e=superusers";
                             
$index++;

NOTE: In this I have used the code for something I call superusers. You can call it whatever you like. just remember that there is an icon, a title, a describtion and a link in the code above.

The number in this example (10) is found in Admin -> Templates -> Manage Group.
The number that shows in the end of the link when hovering on top on the group is the number you would want to write here. This will make the link/widget available only for that department.
To make it work the below code should also be included in /modules/core/client_index.php
PHP Code:
$mode $_REQUEST['_e'];
switch(
$mode)
{
case 
'superusers': require_once("superusers.php"); break;
case 
'about': require_once("about.php"); break;
default: echo 
$template->displayTemplate("index");

The superusers.php and about.php (two different ones just to let you see how to put in more than one) are both referring to what page they should open. This is the one I think you might can change to some of the already used widgets links like "submit tickets". This way I would think you could cheat the system to have different icons. But I have not tested it so I'm NOT sure....

However if you use new non existing links the superusers.php and about.php should be located in this directory:
/modules/core/

BE SURE TO MAKE A BACKUP BEFORE TRYING


Kayako: 3.11.01 | PHP: 5.2.3 | MySQL: 5.0.41 | Windows 2003 Server
   
Reply With Quote
  (#4) Old
Jamie Edwards Offline
Operations Manager
 
Jamie Edwards's Avatar
 
Posts: 5,660
Join Date: Jan 2006
Location: United Kingdom
20-12-2007, 01:10 PM

Hi mopa,

Fantastic guide - thank you for sharing. I have moved this to the Modifications forum


Jamie Edwards (jamie.edwards ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
  (#5) Old
craigbrass Offline
Senior Member
 
Posts: 5,920
Join Date: Jun 2005
Location: Cumbria, UK
20-12-2007, 01:21 PM

Yes, thats a great guide, thanks!


Craig Brass - Kayako Forum Squatter (Note: I am NOT a staff member)

Icon Headquarters - Its Elixir - Web2Messenger
   
Reply With Quote
Reply

Tags
altering, categorty, icons

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
Looking for code to make login box beneath icons netatom SupportSuite, eSupport and LiveResponse 5 27-02-2008 07:20 PM
2 Live Chat Icons JorgeC How do I? 4 30-08-2007 09:08 PM
seperate live response icons per department jesscoburn SupportSuite, eSupport and LiveResponse 0 02-02-2007 10:40 PM



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