• 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

Using frozen nick issues

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

Post a reply
5 posts • Page 1 of 1

Postby re*s.t.a.r.s.*2 » Sun Apr 18, 2010 4:56 am

Hi there

I am using version 1.3 and this also occurs in version 1.2 ...
I have the chat with wordpress latest version 2.92, Works fine given the user its Id from the wp database, the Issue is that I have also put in the code an if statement that if the user in not logged in the chat will give a random guest# name, this in order to avoid any use to take admin control of the chat... but when I also enable $params["frozen_nick"] the chat start to loop the random name its gives to the users if I disable the frozen_nick it starts working fine again..... just want to report that..
here is the code
Code: Select all
<?php
require_once dirname(__FILE__)."/src/phpfreechat.class.php";
require_once('/docs/root/blog/wp-config.php');
$current_user = wp_get_current_user();
$user_name = addslashes($current_user->display_name);
$params = array();
$params["title"] = "my chat";
// code start here , costumer logged in will get name ,no name will get guest name
$params["nick"] = "guest".rand(1,1000);  // setup the intitial nickname
        if (!empty($user_name)) {
            $params["nick"] = $user_name;
        }//end of code
//$params["frozen_nick"] = true;//disabled because chat start a loop with the random nick..
$params["max_channels"]   = 3;
// code to get wordpress moderator powers to specific users
$params["isadmin"] = false;
if ( current_user_can('publish_posts') ) $params['isadmin'] = true;//end code            
$params['admins'] = array('admin' => 'admin','moderatos' => 'same');
//$params["data_private_path"] = "/dev/shm/catrachas";
$params["quit_on_closedwindow"] = true;// I was told that this dont work with firefox and IE8
$params["channels"] = array("Generall");
$params["language"] = "es_ES";
$params["height"] = "250px";
//$params["timeout"] = 10000;//disabled IE start getting time out
$params["max_nick_len"] = 10;
$params["max_msg"] = 12;
$params["max_displayed_lines"] = 50;
$params["short_url"] = true;
$params["short_url_width"] = 25;
$params["theme"] = "msn";
$params["serverid"] = md5(chatting); // calculate a unique id for this chat
$params["debug"] = false;
$chat = new phpFreeChat( $params );
?>
Last edited by re*s.t.a.r.s.*2 on Sun Apr 18, 2010 4:59 am, edited 1 time in total.
Free Singles Chat Rooms No Registration Required
Text and Chat Singles no need to register or app required
Sala De Bate Papo Online Grátis E Sem Cadastro
re*s.t.a.r.s.*2
Support Team
 
Posts: 612
Joined: Wed Sep 24, 2008 4:04 pm
Location: los angeles CA
  • Website
Top

Postby Frumph » Mon Apr 19, 2010 1:01 pm

Does the same hold true for going to the /wp-content/plugins/phpfreechat/chat.php directly?
Frumph
Member
 
Posts: 38
Joined: Wed Aug 05, 2009 10:47 am
Top

Postby re*s.t.a.r.s.*2 » Tue Apr 20, 2010 12:01 am

Does the same hold true for going to the /wp-content/plugins/phpfreechat/chat.php directly?

Hi Frumph

I talked to you at your chat, your plugin dont work at my blog just freeze at the chat loading screen so cant really tell if this also true for your plugin, Fact is that it doesn't work in official source, although the version 1.2 just enabling the frozen_nick standalone it would give you the error you must be logged to chat.... also since my english is not really good I cant really formulate a question regarding the PHPFREECHAT session issue I have when letting people not registered to chat using a random name and when register go back to the chat and get the registered name...
Dont know if you recall that conversation we had at your chat... you told me that FF y IE8 doesnt support the On exit log out event or something.... well if you can elaborate the question more in deep will be great cuz I cant fine the right words to state the issue...
Free Singles Chat Rooms No Registration Required
Text and Chat Singles no need to register or app required
Sala De Bate Papo Online Grátis E Sem Cadastro
re*s.t.a.r.s.*2
Support Team
 
Posts: 612
Joined: Wed Sep 24, 2008 4:04 pm
Location: los angeles CA
  • Website
Top

Postby Frumph » Sat Apr 24, 2010 6:37 pm

http://yoururl.com/wp-content/plugins/p ... t/chat.php if you can go to that directly and it works, then there's just a conflict in your wordpress template's css/plugin
Frumph
Member
 
Posts: 38
Joined: Wed Aug 05, 2009 10:47 am
Top

Postby glouk7 » Sat May 29, 2010 7:29 am

I have the same issue..

any solution ?
glouk7
New member
 
Posts: 2
Joined: Fri May 28, 2010 2:44 am
Top


Post a reply
5 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

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