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
kushaaal Offline
New Member
 
Posts: 28
Join Date: Mar 2006
Location: India
Post mapping Vbulletin usergroup with Support access at Kayako - 15-06-2008, 06:56 AM

Hello,
I want to restrict access to a particlar usergroup of the VB to have access to Kayako support suite.

If that is possible, is it also possible to configure the permissions of secondary user group of vb to have access to Kayako Support suite?

Regards,


Invision Aid: Professional Community Setup Solutions
   
Reply With Quote
  (#2) Old
craigbrass Offline
Senior Member
 
Posts: 5,326
Join Date: Jun 2005
Location: Cumbria, UK
15-06-2008, 04:42 PM

Not having vBulletin and not having used it for about 3 years, I will just guide you vauigly through this and hopefully you can work the rest out.

Using phpMyAdmin, go and get into the users table and find the field that gives the group id. Also find the group id you want to restrict to. Make a note of both of these.

Open /includes/LoginShare/vb.php with a text editor or similar. Find :-
Code:
"SELECT * FROM `user` WHERE `username` = '". $dbCore->escape($username) ."';"
and change to like
Code:
"SELECT * FROM `user` WHERE `group` = "2" AND `username` = '". $dbCore->escape($username) ."';"
where group is the field name of the group column and 2 is the group ID you want to allow access.


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

Icon Headquarters - Its Elixir - Web2Messenger
   
Reply With Quote
  (#3) Old
kushaaal Offline
New Member
 
Posts: 28
Join Date: Mar 2006
Location: India
18-06-2008, 05:12 PM

Thank You, however, it returns the blank white page. Is there something missing in the code?


Invision Aid: Professional Community Setup Solutions
   
Reply With Quote
  (#4) Old
craigbrass Offline
Senior Member
 
Posts: 5,326
Join Date: Jun 2005
Location: Cumbria, UK
18-06-2008, 06:55 PM

Odd, making that change *shouldn't* develop a blank page. Are you sure you put the field name in correctly for the group?


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

Icon Headquarters - Its Elixir - Web2Messenger
   
Reply With Quote
  (#5) Old
kushaaal Offline
New Member
 
Posts: 28
Join Date: Mar 2006
Location: India
18-06-2008, 07:07 PM

PHP Code:
"SELECT * FROM `user` WHERE `usergroupid` = "13" AND `username` = '"$dbCore->escape($username) ."';" 
I tried with other field as membergroupid too with same blank page, am I missing the code?


Invision Aid: Professional Community Setup Solutions
   
Reply With Quote
  (#6) Old
craigbrass Offline
Senior Member
 
Posts: 5,326
Join Date: Jun 2005
Location: Cumbria, UK
19-06-2008, 06:05 AM

It looks fine to me. If you could email me the LoginShare file and a database dump of your vBulletin installation, I'll take a look at it for you if you like. I'll PM you my email address.


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

Icon Headquarters - Its Elixir - Web2Messenger
   
Reply With Quote
Reply

Tags
access, mapping, support, usergroup, vbulletin

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
Problems with index.php and swift.php Paul Westhead Technical Chat 14 13-08-2008 09:49 AM
A complaint about Kayako Support oliverm Comments, Questions & Feedback 2 02-08-2007 09:46 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