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

Restrict usernames to registered users

Integration help for Joomla, Drupal, and Wordpress

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

Post a reply
9 posts • Page 1 of 1

Postby Tal » Fri Sep 11, 2009 12:34 pm

Thanks to the wordpress plugin I have the chat running nicely on my site, the only problem is with usernames. If you're logged into the system it uses your default username for the chat which is great, but if you're not you can choose any name you like, including that of other registered users. Is there any way I can prevent registered names from being used by others?
Tal
Member
 
Posts: 13
Joined: Thu Sep 10, 2009 1:43 pm
Top

Postby OldWolf » Fri Sep 11, 2009 8:43 pm

Set frozen nick to true, and assign guests a user name with a number.
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 Tal » Fri Sep 18, 2009 7:35 pm

for some reason after selecting the users must be registered option, the chat is no longer automatically picking up the registered nickname of users, everyone now has to enter a nick when entering the chat (this was before I changed the frozen nick setting)

Any ideas how to fix that?
Tal
Member
 
Posts: 13
Joined: Thu Sep 10, 2009 1:43 pm
Top

Postby OldWolf » Sat Sep 19, 2009 4:31 pm

I've never played with the plugin, so I'm really not sure what it does using it's options. Sounds like something was mis-coded though.
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 Frumph » Sun Sep 20, 2009 1:47 am

The plugin wasn't made to work with frozen nick yet, i'm still working on that part.

Right now i'm trying to figure out a way for a chat admin to clear the sql cache. (properly)
Frumph
Member
 
Posts: 38
Joined: Wed Aug 05, 2009 10:47 am
Top

Postby Tal » Sun Sep 20, 2009 7:06 pm

Managed to freeze the nicks so that was fine.

Also got the login automatically issue solved by making sure the var $nick was set to something other than ""
Tal
Member
 
Posts: 13
Joined: Thu Sep 10, 2009 1:43 pm
Top

Postby Frumph » Mon Sep 21, 2009 5:44 am

Yeah did the same thing here on the plugin, made it so that it used the original guest-# code from the release package.
Frumph
Member
 
Posts: 38
Joined: Wed Aug 05, 2009 10:47 am
Top

Postby Tal » Mon Sep 21, 2009 6:50 am

I'm using the plugin, and I didn't undo any of the settings (except through the wordpress interface) so what happened?
Tal
Member
 
Posts: 13
Joined: Thu Sep 10, 2009 1:43 pm
Top

Postby Frumph » Mon Sep 21, 2009 7:49 pm

The phpfreechat.php and chat.php need to have corresponding the same code inside it,

Code: Select all
      $params["nick"] = "guest".rand(1,1000);  // setup the intitial nickname
      if (!empty($user_name)) {
         $params["nick"] = $user_name;
      }

Thats the changes made for the nick, reverting to how the phpfreechat release does it.
Frumph
Member
 
Posts: 38
Joined: Wed Aug 05, 2009 10:47 am
Top


Post a reply
9 posts • Page 1 of 1

Return to Joomla, Drupal, and Wordpress (v1.x)

Who is online

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