• 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

integartion phpfreechat with minibb

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

Post a reply
5 posts • Page 1 of 1

Postby vikal » Tue Jul 01, 2008 6:02 am

well i am trying to integrate phpfreechat with minibb

as minibb is using cookies for the authentication and security purpose

since my site is biggest one

now suggest me...


to prefer cookies or session for my site
vikal
Member
 
Posts: 12
Joined: Sun Jun 22, 2008 8:16 am
Top

Postby OldWolf » Tue Jul 01, 2008 6:25 am

Find out how to get minibb to return the current username (in my example, I'll pretend it's through the function get_username), and do the following:
Code: Select all
$params["nick"] = get_username();
$params["frozen_nick"] = true;
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 vikal » Tue Jul 01, 2008 6:39 am

hi

i will be very grateful to you...
if you tell me where actually i have to define those variable...

i mean the file with php extension..
vikal
Member
 
Posts: 12
Joined: Sun Jun 22, 2008 8:16 am
Top

Postby OldWolf » Wed Jul 02, 2008 7:54 am

Whichever file your chat is in. By default, it would be index.php.
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 vikal » Wed Jul 09, 2008 5:41 am

well i just follow the Moderator to return the usernames...of my site

i defined a login.class.php

in which there is a function like this

public function getuser_name() {
return $this->user_name;
}


and another function for session

public function sessionVerify() {
session_regenerate_id();
$_SESSION['auth'] = 1;
$_SESSION['name'] = $this->user_name;
}

i simply called this function in index.php

like this

require_once('lib/login.class.php');
$login= new Login();

if($login->getuser_name())
{
return $_SESSION['name'];
}
$params["nick"]=$_SESSION['name'];
$params['frozen_nick']=true;



now this return the user name and we can't change nicknames either ..this really fulfill my desire

since my requirement is that whoever login to the system...

phpfreechat should return same user only...for him no right to change the nicknames....



and i did the same

thanks

moderator

regards

vikal
vikal
Member
 
Posts: 12
Joined: Sun Jun 22, 2008 8:16 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 17 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