Kayako logo
Developers & Code Interested in customizing your Kayako products? Discuss modifications and develop your own mods with the community.

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  (#1) Old
adr132 Online
New Member
 
Posts: 7
Join Date: Jun 2008
Add a widget that links to another site - 30-06-2008, 02:36 PM

I'm sure that is can be done, but i just can't seem to get it to work. I am trying to add a new widget that will be used simply as a link to a different web page (not within Kayako SupportSuite). I have opened the widgets.php file and edited as shown in the example, but my login screen will be blank when trying to open. Does anyone have an example code on how to do this, or should the widgets.php example do what i am looking for? I am not an experienced php programmer, but can follow directions. Any help is appreciated.
   
Reply With Quote
  (#2) Old
supportskins Offline
Senior Member
 
supportskins's Avatar
 
Posts: 3,569
Join Date: Aug 2006
Location: Mumbai, India
30-06-2008, 09:37 PM

An example of a new widget code is given in the beginning of the file, here it is anyhow:

Code:
$_widgets[MODULE_NAME]["icon"] = $_SWIFT["themepath"]."news.gif";
$_widgets[MODULE_NAME]["title"] = $_SWIFT["language"]["news"];
$_widgets[MODULE_NAME]["description"] = $_SWIFT["language"]["desc_news"];
$_widgets[MODULE_NAME]["link"] = "index.php?_m=news&_a=view";



Professional and Affordable Kayako Skins - Specialists in Kayako Skinning & Customization - Professional Paid Support
Our Skins and Services - http://www.supportskins.com/store/
SupportSkins.com - http://www.supportskins.com/
   
Reply With Quote
  (#3) Old
adr132 Online
New Member
 
Posts: 7
Join Date: Jun 2008
is that it? - 01-07-2008, 05:37 PM

Do you need to edit any other pages/templates/modules to add a widget, besides adding your icon.gif to your themes folder? Can someone give me an example of code of an added widget with data? Is there anything I need to know about the placement of the code within the widgets.php? When i try to edit this page trying to add a widget, i get a completely blank screen when i go back to the user login screen URL. If I wanted to link a widget to another page, will this work:
$_widgets[Test]["icon"] = $_SWIFT["themepath"]."test.gif";
$_widgets[Test]["title"] = "Testing title";
$_widgets[Test]["description"] = "Testing description";
$_widgets[Test]["link"] = "http://www.test.com";
   
Reply With Quote
  (#4) Old
supportskins Offline
Senior Member
 
supportskins's Avatar
 
Posts: 3,569
Join Date: Aug 2006
Location: Mumbai, India
01-07-2008, 06:38 PM

Yes this will work. You just need to make sure you add "test.gif" in the /themes/client_default directory of the software.



Professional and Affordable Kayako Skins - Specialists in Kayako Skinning & Customization - Professional Paid Support
Our Skins and Services - http://www.supportskins.com/store/
SupportSkins.com - http://www.supportskins.com/
   
Reply With Quote
  (#5) Old
adr132 Online
New Member
 
Posts: 7
Join Date: Jun 2008
Worked!! - 02-07-2008, 07:10 PM

This worked for me. Thank you for the response!
   
Reply With Quote
Reply

Tags
site, widget

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
Add More links to the Bottom DarthMauul Developers & Code 3 14-01-2008 03:29 PM
How to add custom links to support center? Jemrada SupportSuite, eSupport and LiveResponse 1 08-09-2006 11:18 AM
Add another widget to support center kipper3d SupportSuite, eSupport and LiveResponse 7 09-04-2006 06:56 AM



Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vBulletin Skin developed by: vBStyles.com


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