• 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

Username integration

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

Post a reply
4 posts • Page 1 of 1

Postby livewiremaxx » Wed May 16, 2012 8:25 pm

Ive gone through many of the posts and still didnt get it, so thougght I would ask and share my details and see if I can get it right. I have a script that users already log into - Simple login with session.

With a shoutbox, and a Java IRC chat I have been able to pull in the username using id="user" value="<?=$_SESSION['uname']?>" />
and <param name="nick" value="<?=$_SESSION['uname']?>">

So I try and mange and work with $params["nick"] = "uname"; and several other different ways and just cant seem to pull it in.

Ive also added and tried to work with adding my session value and nothing still


Any suggestions?
livewiremaxx
New member
 
Posts: 4
Joined: Wed May 16, 2012 8:01 pm
Top

Postby re*s.t.a.r.s.*2 » Wed May 16, 2012 10:29 pm

Hi,

You are in php, so you need to use it as this
Code: Select all
$params['nick'] = $_SESSION['uname'];

setting this other way you are effectibly passing a string to the nick :

Code: Select all
$params['nick'] = "uname";

regards.
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 livewiremaxx » Thu May 17, 2012 2:26 am

Thanks, I got it working - great script - one last question though - used one of the demo examples and I can seem to find where to change or get rid at the top where it says A chat with a ISO-8859-1 encoded page
livewiremaxx
New member
 
Posts: 4
Joined: Wed May 16, 2012 8:01 pm
Top

Postby jason113 » Wed Jun 06, 2012 9:40 pm

I had same problem now it is solved..thanks for the script.
Hello used cars everyone. You can find cleaning gold coast and como aparecer en google.
jason113
New member
 
Posts: 1
Joined: Wed Jun 06, 2012 9:33 pm
Top


Post a reply
4 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

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