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

Needing help setting up admin

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

Post a reply
2 posts • Page 1 of 1

Needing help setting up admin

Postby SSTG » Tue Apr 02, 2013 12:36 am

Hey all I'm still a novice at this but hopefully will get some help I'm just setting up a chatroom for a website and I need a admin set up so I can keep an eye on things if people go too far etc but cannot get my head around some of the parameters

This is what I have for the index.php
require_once dirname(__FILE__)."/src/phpfreechat.class.php";
$params = array();
$params["title"] = "Quick chat";
$params["nick"] = ""; // setup the intitial nickname
$params['firstisadmin'] = false;
//$params["isadmin"] = false; // makes everybody admin: do not use it on production servers ;)
$params["serverid"] = md5(__FILE__); // calculate a unique id for this chat
$params["debug"] = false;
$params["refresh_delay"] = 2000; // 2000ms = 2s
$params["nickmeta"] = array('gender'=>'f');
$params["admins"] = "NZPAdmin"; //
$chat = new phpFreeChat( $params );


I also heard I can intergrate the username of users in phpbb as we have a forum also would this be an easier way to set up an admin

any help on this would be greatly appreciated
SSTG
New member
 
Posts: 1
Joined: Tue Apr 02, 2013 12:24 am
Top

Re: Needing help setting up admin

Postby Alky » Mon Apr 15, 2013 4:49 pm

admins is an array of nick => password pairs for who gets admin powers
Code: Select all
$params["admins"] = array(
   'john' => 'password',
   'paul' => 'password',
   'george' => 'password',
   'ringo' => 'password' );

Using phpbb stuff to build your admin list and other cool stuff is covered in the FAQs I think. Or somewhere on this site cuz that's what I used as the model for having my web engine login run chat nicks :)
Alky
New member
 
Posts: 8
Joined: Thu Mar 21, 2013 6:53 pm
  • Website
Top


Post a reply
2 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 10 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