• 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

Question, parameters and SMF?

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

Post a reply
3 posts • Page 1 of 1

Question, parameters and SMF?

Postby mlthmp » Mon Jul 01, 2013 6:41 am

Hey everyone. Have a question.

I've got chat installed, and somewhat tied into SMF 2.0.4 (pulls user names)

However I cant seem to disable first user is admin. Any idea what I need to do? Here is how I have them setup in index.php

$params = array(
'serverid' => md5(__FILE__),
'title' => "TkO Chat",
'admins' => array('mlthmp' => 'xxxxxx', 'Admin' => 'xxxxx',),
'nick' => $user_info['name'],
);
mlthmp
New member
 
Posts: 2
Joined: Mon Jul 01, 2013 6:38 am
Top

Re: Question, parameters and SMF?

Postby mlthmp » Fri Dec 06, 2013 4:06 am

anyone? = (
mlthmp
New member
 
Posts: 2
Joined: Mon Jul 01, 2013 6:38 am
Top

Re: Question, parameters and SMF?

Postby viningc » Mon Dec 09, 2013 8:07 am

Here's what I did. I can now login and, once I ID myself, I'm changed to an admin.


$params = array();
$params["title"] = "WTFS chat";
$params["nick"] = ""; // setup the intitial nickname to request one each time
$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["admins"]= array("admin" => "********", 'Spock' => '********'); //sets the admin username and password


I got the idea from another post on here somewhere. Hope this helps.
viningc
New member
 
Posts: 3
Joined: Sat Nov 23, 2013 2:37 am
Top


Post a reply
3 posts • Page 1 of 1

Return to General Support (v2.x)

Who is online

Users browsing this forum: No registered users and 2 guests

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