• 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

Integrating the params with $_SESSION variables

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

Post a reply
2 posts • Page 1 of 1

Integrating the params with $_SESSION variables

Postby StaljaBro » Fri Feb 08, 2013 6:28 am

Hi, I've been using phpfreechat for a while now but came across an issue this morning that I couldn't resolve. I am wanting to integrate some data from a session variable into the nickmeta param, but nothing shows up when I try. It worked until I tried to add more stuff to it, and now it just won't show anything.

Here's the relevant code:
Code: Select all
$nickname = $_SESSION['given'];
$lastname = $_SESSION['family'];

$params["nick"] = $nickname; //The user's first name, which will be their nickname for the chat
$params["nickmeta"] = array('Surname'=>$lastname;//The person's surname


The nickname side of it works fine, but I can't get the surname to show anything.
Thanks in advance
StaljaBro
New member
 
Posts: 1
Joined: Fri Feb 08, 2013 6:14 am
Top

Re: Integrating the params with $_SESSION variables

Postby OldWolf » Fri Feb 08, 2013 7:34 pm

You missed a closing parenthesis.

array('Surname'=>$lastname;

array('Surname'=>$lastname);
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


Post a reply
2 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

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