SSRebellion Posted April 4, 2013 Share Posted April 4, 2013 (edited) I can't find how to enable cometchat only for selected membergroups,like in that script code i just add userid of membergroup which can use cometchat. can ya help me tybump Edited April 3, 2013 by DeitY Link to comment Share on other sites More sharing options...
0 Administrator Tony Posted April 7, 2013 Administrator Share Posted April 7, 2013 Nvm. Flinty left a few things out. <if test="IPSMember::isInGroup($this->memberData, array('19', '9'))"><!-- COMETCHAT --><link type="text/css" href="/cometchat/cometchatcss.php" rel="stylesheet" charset="utf-8"><script type="text/javascript" src="/cometchat/cometchatjs.php" charset="utf-8"></script></if> You're missing an </if> closing bracket. The code Comet Chat gives you: <link type="text/css" href="/cometchat/cometchatcss.php" rel="stylesheet" charset="utf-8"><script type="text/javascript" src="/cometchat/cometchatjs.php" charset="utf-8"></script> Add the following above it: <if test="IPSMember::isInGroup($this->memberData, array('19', '9'))"><!-- COMETCHAT --> Close it out with the </if>. The question(s) in this support topic have been answered and the owner has been able to solve the problem. Because of this, the support topic has been closed and moved.If you have other questions, please open a new topic. Link to comment Share on other sites More sharing options...
0 FlinTY Posted April 4, 2013 Share Posted April 4, 2013 (edited) i no theres one for arrowchat and i have used it on cometchat aswell and it worked, the only problem is you will see members popping up in the who's online list but they disappear, but anyways heres the code: Add this above the code that cometchat gave you: <if test="IPSMember::isInGroup($this->memberData, array('19', '9'))"><!-- COMETCHAT -->the numbers are your group ID's so just add your group ID's how they are displayed.then once you've done that login to another users account to check if it works and if correct the bar shouldn't be there but myself i prefer arrowchat as this code works great Edited April 4, 2013 by FlinTY Link to comment Share on other sites More sharing options...
0 SSRebellion Posted April 5, 2013 Author Share Posted April 5, 2013 There is a syntax error... Link to comment Share on other sites More sharing options...
0 Administrator Tony Posted April 5, 2013 Administrator Share Posted April 5, 2013 There is a syntax error... You may want to post what that syntax error is, otherwise, how can anyone rectify it? Link to comment Share on other sites More sharing options...
0 SSRebellion Posted April 5, 2013 Author Share Posted April 5, 2013 There is nothing named,just error in syntax.. Link to comment Share on other sites More sharing options...
0 Administrator Tony Posted April 5, 2013 Administrator Share Posted April 5, 2013 Where are you adding the snippet FlinTy offered? It should work just fine. Copy/paste the file using PasteBin and link to it here. Link to comment Share on other sites More sharing options...
Question
SSRebellion
I can't find how to enable cometchat only for selected membergroups,like in that script code i just add userid of membergroup which can use cometchat.
can ya help me ty
bump
Edited by DeitYLink to comment
Share on other sites
6 answers to this question
Recommended Posts