Kayako logo
SupportSuite, eSupport and LiveResponse Discussion, troubleshooting and feedback related to Kayako's flagship support desk products SupportSuite, eSupport and LiveResponse.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  (#1) Old
logicway Offline
Member
 
Posts: 64
Join Date: Jul 2006
Assign multiple usergroups to templategroup - 23-08-2006, 10:44 AM

I have all my users grouped into a usergroup. Each usergroup is a different company. We have 4 products right now, and I don't want that all the downloads, kb articles, troubleshooters are viewable by all usergroups. A user form a usergroup should only see the downloads, kb articles, troubleshooters of the product they bought from us.

So I created an extra templategroup. But within this templategroup I can only assign one usergroup. I can create for each usergroup a new templategroup, but then I will have too many templategroups. It will be hard to manage all these templategroups.

How can I assign multiple usergroups to a templategroup?
Or is there another way I can accomplish this?
   
Reply With Quote
  (#2) Old
logicway Offline
Member
 
Posts: 64
Join Date: Jul 2006
29-08-2006, 02:20 PM

Quote:
Originally Posted by logicway
I have all my users grouped into a usergroup. Each usergroup is a different company. We have 4 products right now, and I don't want that all the downloads, kb articles, troubleshooters are viewable by all usergroups. A user form a usergroup should only see the downloads, kb articles, troubleshooters of the product they bought from us.

So I created an extra templategroup. But within this templategroup I can only assign one usergroup. I can create for each usergroup a new templategroup, but then I will have too many templategroups. It will be hard to manage all these templategroups.

How can I assign multiple usergroups to a templategroup?
Or is there another way I can accomplish this?
bump...

I really need this to properly manage my helpdesk.
If I should create a new templategroup for each usergroups, I will have too many templategroups. Besides the difficulty to manage those templategroups, it is also painful to assign i.e. a download/kb-article/troubleshooter to a templategroup.
   
Reply With Quote
  (#3) Old
supportskins Offline
Senior Member
 
supportskins's Avatar
 
Posts: 3,953
Join Date: Aug 2006
Location: Mumbai, India
29-08-2006, 03:29 PM

Hi,
One template group in the software can only have 1 Registered User Group. You cannot have more than 1 Registered User Group. Although changing the setting -- Restrict Users Group to No will allow Users assigned to other template groups access this template group as well. Hope this helps.



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
  (#4) Old
logicway Offline
Member
 
Posts: 64
Join Date: Jul 2006
29-08-2006, 05:14 PM

Quote:
Originally Posted by supportskins
Hi,
One template group in the software can only have 1 Registered User Group. You cannot have more than 1 Registered User Group. Although changing the setting -- Restrict Users Group to No will allow Users assigned to other template groups access this template group as well. Hope this helps.
I know that a template group can have just one usergroup. What I meant was, is there another way that does the same thing, but I have no hope for this. I hoped that Kayako would respond to this, and at least letting me know if could be possible in feature versions.

I considered entering a feature request, but knowing that there are so many feature request and bugs, this will not be implemented.

So I will try to code this myself, maybe hardcode it.
   
Reply With Quote
  (#5) Old
supportskins Offline
Senior Member
 
supportskins's Avatar
 
Posts: 3,953
Join Date: Aug 2006
Location: Mumbai, India
29-08-2006, 05:16 PM

No this is not possible by default, you will have to enter it as a feature request or have it coded.



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
  (#6) Old
logicway Offline
Member
 
Posts: 64
Join Date: Jul 2006
30-08-2006, 12:06 AM

Quote:
Originally Posted by logicway
I know that a template group can have just one usergroup. What I meant was, is there another way that does the same thing, but I have no hope for this. I hoped that Kayako would respond to this, and at least letting me know if could be possible in feature versions.

I considered entering a feature request, but knowing that there are so many feature request and bugs, this will not be implemented.

So I will try to code this myself, maybe hardcode it.
Coding this was not an easy job, so I tried to hardcode it. It works for me now.
In /modules/core/client_loginhandler.php:

I replaced lines 76,77:
PHP Code:
$tgroup $val["title"];
break; 
with:
PHP Code:
if ($val["usergroupid"] = ( "1" || "2" || "3"))
    { 
$tgroup "templategroupA";
} elseif (
$val["usergroupid"] = ( "4" || "5" || "6"))
    { 
$tgroup "templategroupB";
} elseif (
$val["usergroupid"] = ( "7" || "8" || "9"))
    { 
$tgroup "templategroupC";
} elseif (
$val["usergroupid"] = ( "10" || "11" || "12"))
    { 
$tgroup "templategroupD";
} else {
$tgroup $val["title"];
break;

The numbers are the internal ID's fom the usergroups. The names are the names from the templategroups. This way I can assign multiple usergroups to any templategroup.

I have to make these assignments in the sourcefiles, so there is no staff-interface, but it works.

Another option to do this could be by creating a customfield for usergroups and this way to assign a usergroup to a productname. Then (when user logs in) query for the usergroup and the customfield-value, and return a templategroup linked to the productname. I will look into this also. If anyone has ideas how to do this, please let me know. This way there will be a staff-interface.
   
Reply With Quote
  (#7) Old
logicway Offline
Member
 
Posts: 64
Join Date: Jul 2006
30-08-2006, 01:42 AM

Quote:
Originally Posted by logicway
Another option to do this could be by creating a customfield for usergroups and this way to assign a usergroup to a productname. Then (when user logs in) query for the usergroup and the customfield-value, and return a templategroup linked to the productname. I will look into this also. If anyone has ideas how to do this, please let me know. This way there will be a staff-interface.
Customfields for usergroups aren't stored in the usergroup. A bug??
   
Reply With Quote
  (#8) Old
supportskins Offline
Senior Member
 
supportskins's Avatar
 
Posts: 3,953
Join Date: Aug 2006
Location: Mumbai, India
30-08-2006, 05:20 AM

There was a bug related to custom fields in v3.00.90, upgrading to v3.00.95 will fix the issue. Please note, v3.00.95 is yet a CVS build and *not* a stable build.



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
  (#9) Old
logicway Offline
Member
 
Posts: 64
Join Date: Jul 2006
30-08-2006, 02:09 PM

I copied "functions_customfields.php" from 3.095 to my 3.090 and customfield-values are properly stored now.

Now I am trying to code something like this:
I created a type radiobutton customfield (for usergroups) called product.
Now I can choose a productname when editing/creating usergroups.

When the user logs in, I want to check the value from this customfield, to redirect the user to a templategroup. It should be like this in client_loginhandler.php:
PHP Code:
if ($val["customfieldvalue"] == "Product_A")
    { 
$tgroup "TemplateGroup_A";
} elseif (
$val["customfieldvalue"] == "Product_B")
    { 
$tgroup "TemplateGroup_B";
} elseif (
$val["customfieldvalue"] == "Product_C")
    { 
$tgroup "TemplateGroup_C";
} elseif (
$val["customfieldvalue"] == "Product_D")
    { 
$tgroup "TemplateGroup_D";
} else {
$tgroup $val["title"];
break;

I am stuck with the if-statement of the customfield. I don't know how I could manage this.
How can I call a function/query to do this?
   
Reply With Quote
Reply

Tags
assign, templategroup, usergroups

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Register multiple email accounts for single User? hurtdidit Wont Implement / Already Implemented 15 06-05-2007 05:22 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