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
  (#16) Old
phpimpact Offline
New Member
 
Posts: 10
Join Date: Jul 2007
Post 24-08-2007, 09:36 AM

Quote:
Okay I'm confused. There are a few echo <li> statements around line 150. Some are already wrapped around if statements and one of them isn't. Here is a section of code:

<li><a class="currenttab" href="#" onClick="this.blur(); return switchGridTab(\'ttgeneral\', \'tickets\');" id="ttgeneral" title="'. $_SWIFT["language"]["tabgeneral"] .'">'. $_SWIFT["language"]["tabgeneral"] .'</a></li>
<li><a href="#" onClick="this.blur(); switchGridTab(\'ttpostreply\', \'tickets\'); document.replyform.replycontents.focus(); EDITORON();

...
Hi Siora, yes, you have more than one <li>. First you'll need to find the one you want to hide, you can do this by checking the name of the onClick event, e.g.:

Quote:
echo '<li><a href="#" onClick="this.blur();switchGridTab(\'ttforward\', \'tickets\').....
This one is called "ttforward", which is the one that lets you forward tickets.

Wrap this echo with an if statement:

PHP Code:
if (in_array($userGroupId$allowedGroupIds))
{
    echo '
<li><a href="#" onClick="this.blur();switchGridTab(\'ttforward\'\'tickets\').....

Let me know how it went
   
Reply With Quote
  (#17) Old
Siora Offline
Member
 
Siora's Avatar
 
Posts: 1,283
Join Date: Apr 2007
Location: Toronto Canada
24-08-2007, 12:52 PM

But some of the echo statements are already wrapped in an if:

Code:
 if ($_SWIFT["staff"]["tforward"] != "0")
 {
  echo '<li><a href="#" onClick="this.blur();switchGridTab(\'ttforward\', \'tickets\');if (!loadedStates[\'forward\']) {fetchData(\'forward\', \''. $_ticket["ticketid"] .'\', \''. intval($_REQUEST["ticketlabelid"]) .'\');}" id="ttforward" title="'. $_SWIFT["language"]["tabforward"] .'">'. $_SWIFT["language"]["tabforward"] .'</a></li>';
 }
What do I do in this case. Sorry but I suck at this stuff.


Siora Solutions Inc.
www.sioraIT.com

Last edited by Siora; 24-08-2007 at 12:57 PM.
   
Reply With Quote
  (#18) Old
ysert Offline
New Member
 
Posts: 17
Join Date: May 2008
Location: Virginia, USA
Thumbs up 05-06-2008, 09:03 PM

After seeing this much sharing and help, I could not pass without saying I loved this Forum and admire you all for your willingness to share knowledge... We just purchased eSupport and I need to do some customization, thus will be posting lots of q's.

YSERT
   
Reply With Quote
  (#19) Old
epearson Offline
New Member
 
Posts: 3
Join Date: May 2008
05-06-2008, 09:57 PM

If I can re-direct this 180 degrees, how can I ADD tabs into a ticket? I have a bunch of custom fields and I'd like to put them on their dedicated tab, so they can be edited when clicking on the tab, instead of having to go to the edit tab.
   
Reply With Quote
  (#20) Old
Matthew Offline
Member
 
Matthew's Avatar
 
Posts: 195
Join Date: Oct 2007
Location: Jakarta, Indonesia
13-10-2008, 05:34 PM

Just wanted to say thanks for this.

Very helpful to me right now, so that as an administrator I can hide certain tabs from other staff while I perfect various modifications to the content of those tabs.

Simple, but highly functional.


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
Reply

Tags
hide, tabs, ticket

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
Ticket View -> Quick Search: Is there a way to set the default criteria? richm How do I? 0 30-04-2007 03:22 PM
New Build: 3.10.02 STABLE Ryan Lederman News and Announcements 0 05-03-2007 09:53 PM
Admin missing ticket view and other tabs duplex Presales Questions 8 21-02-2007 08:24 PM



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


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