• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 2.x Branch ‹ General Support (v2.x)
  • Change font size
  • FAQ
  • Register
  • Login

Moderator /Admin role for only specified users ,V2

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
9 posts • Page 1 of 1

Moderator /Admin role for only specified users ,V2

Postby maheshchari » Sat Mar 02, 2013 3:20 pm

Hi all,

I have installed successfully PHPfreechat v2 successfully. It giving that first user in the channel is admin/moderator role.

but i want only specific users only should be moderator ,i have searched in forum and code , i can not find any help on this.

Please help me regarding this


Thanks in Advance.
maheshchari
New member
 
Posts: 4
Joined: Sat Mar 02, 2013 3:15 pm
Top

Re: Moderator /Admin role for only specified users ,V2

Postby phpfreechat » Sat Mar 02, 2013 5:29 pm

To disable first connected is admin, have a look to the server side parameter first_is_op:
http://www.phpfreechat.net/documentatio ... eters.html
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Re: Moderator /Admin role for only specified users ,V2

Postby maheshchari » Sat Mar 02, 2013 7:33 pm

phpfreechat wrote:To disable first connected is admin, have a look to the server side parameter first_is_op:
http://www.phpfreechat.net/documentatio ... eters.html



Thanks for help, i did same ,but i am not looking for this, i want only two users should be moderator for all time .

Example:
tadmin
vadmin

should be moderators for that channel. is there any kind of provision there in v2?
maheshchari
New member
 
Posts: 4
Joined: Sat Mar 02, 2013 3:15 pm
Top

Re: Moderator /Admin role for only specified users ,V2

Postby phpfreechat » Sat Mar 02, 2013 10:35 pm

Yes, have a look to the isop server side hook:
http://www.phpfreechat.net/documentation/hooks.html
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Re: Moderator /Admin role for only specified users ,V2

Postby maheshchari » Sun Mar 03, 2013 1:23 pm

But total commands are not working in the version 2,

i tried ban,kickban but they are not working.
maheshchari
New member
 
Posts: 4
Joined: Sat Mar 02, 2013 3:15 pm
Top

Re: Moderator /Admin role for only specified users ,V2

Postby phpfreechat » Sun Mar 03, 2013 11:11 pm

maheshchari wrote:But total commands are not working in the version 2,

i tried ban,kickban but they are not working.

Maybe you don't use it well ?
How to u use it ?
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Re: Moderator /Admin role for only specified users ,V2

Postby maheshchari » Fri Mar 08, 2013 5:21 am

I have tried this command ,it is still showing invalid


/ban "<chari>" ["something more reason"]


i am running this script in my localhost,is commands works in localhost?
maheshchari
New member
 
Posts: 4
Joined: Sat Mar 02, 2013 3:15 pm
Top

Re: Moderator /Admin role for only specified users ,V2

Postby phpfreechat » Sat Mar 09, 2013 1:17 am

maheshchari wrote:I have tried this command ,it is still showing invalid


/ban "<chari>" ["something more reason"]


i am running this script in my localhost,is commands works in localhost?


The login you want to ban is named chari ?
So you juste have to type:
/ban "chari"
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Re: Moderator /Admin role for only specified users ,V2

Postby OldWolf » Sat Mar 09, 2013 6:41 pm

maheshchari wrote:I have tried this command ,it is still showing invalid


/ban "<chari>" ["something more reason"]


i am running this script in my localhost,is commands works in localhost?

The <> brackets are part of the place holder, you replace them.
Signature:
Read before Posting: Forum Rules
Note: I am unable to offer support through PM/e-mail at this time.
OldWolf
Site Admin
 
Posts: 1918
Joined: Sun Sep 23, 2007 5:48 am
Top


Post a reply
9 posts • Page 1 of 1

Return to General Support (v2.x)

Who is online

Users browsing this forum: No registered users and 5 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub