• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ phpBB, Simple Machines Forum (SMF), and Forum Software (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

how to login as admin

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

Post a reply
9 posts • Page 1 of 1

Postby josephine » Thu May 01, 2008 5:52 pm

Hi!
First, my english isn't very well.
I've installed the chat with my SMF with this sollution: http://www.phpfreechat.net/forum/viewtopic.php?id=1609 . It works great!!!
But how can I login as admin in the chat?

I've this in de index.php from the chat:
$params["admins"] = array("josephine" => "password");

The name is the same as my forum name and the password is the same as my forum password. But when I start the chat (automatic login with my forum name+password) I didn't have the admin interface...

Please help me!

Thanks in advance!

Kind regards,

Josephine
josephine
New member
 
Posts: 5
Joined: Thu May 01, 2008 1:35 pm
Top

Postby Kela » Thu May 01, 2008 8:09 pm

$params["admins"] = array("" => "");

.........

if (_here_is_some_condition_)
$params["isadmin"] = true;

That is all! And it works!

For example:

if ($user_info["id"] == 1774)
$params["isadmin"] = true;

where 1774 is you user ID on SMF forum.

Se full listing here: http://www.phpfreechat.net/forum/viewto ... 8382#p8382
Chevrolet Captiva Club
Kela
Member
 
Posts: 13
Joined: Fri Jan 25, 2008 9:23 pm
  • Website
Top

Postby josephine » Thu May 01, 2008 8:19 pm

Thaaaaaaaaaanks for the very fast reply!!! :D:D Tomorrow I'll going to try the solution.
I run on SMF 1.1.4, do you know if the integration works too on smf 2.0??
josephine
New member
 
Posts: 5
Joined: Thu May 01, 2008 1:35 pm
Top

Postby OldWolf » Fri May 02, 2008 4:33 am

If you have trouble, you can also use the first solution, but you have to /identify password to get it to give you admin (while you have the admin username as your nick):

/identify mypassword

http://www.phpfreechat.net/admin
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

Postby josephine » Fri May 02, 2008 8:27 am

Thanks, it's solved because I've a Image before my username :)

But the next question... (is that allowed in the same topic?)
When I say: /help I didn't get the command list. How to solve this problem?
josephine
New member
 
Posts: 5
Joined: Thu May 01, 2008 1:35 pm
Top

Postby OldWolf » Fri May 02, 2008 5:31 pm

It's dificult to say because we don't know why you don't get it. Have you made any other changes to your code?

Also note that the list appears below the text input box, not in the chat. :)
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

Postby josephine » Fri May 02, 2008 5:47 pm

I know it's difficult. No, I didn't made other changes... I'd use the ''msn'' theme, but when I use the default theme I've got the same problem.
Other commends working as well. And the orange box below the text input working as well too.
Image

Yes, I know that the list appears below the text input ;)
josephine
New member
 
Posts: 5
Joined: Thu May 01, 2008 1:35 pm
Top

Postby cls » Sat May 03, 2008 12:52 pm

Which language do you have defined with $params['language']?
The underscores in the message above indicate, that the language definitions are missing.
cls
Member
 
Posts: 57
Joined: Sat Aug 18, 2007 10:29 pm
Location: Germany
  • Website
Top

Postby josephine » Sat May 03, 2008 2:51 pm

nl_NL, I know I've to translate some messages...

EDIT// I've tried to set the language to en_EN, and the problem is solved! Thank you!!
Last edited by josephine on Sat May 03, 2008 2:53 pm, edited 1 time in total.
josephine
New member
 
Posts: 5
Joined: Thu May 01, 2008 1:35 pm
Top


Post a reply
9 posts • Page 1 of 1

Return to phpBB, Simple Machines Forum (SMF), and Forum Software (v1.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
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub