• 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

Why can't edit the params?

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

Post a reply
3 posts • Page 1 of 1

Why can't edit the params?

Postby md16185 » Fri Feb 01, 2013 6:25 am

I am not good with php, I am trying to change the max lines and a couple of
other things... It messes up the chat...

Can anyone help me..

is the code:
Code: Select all
$params ['max_length] = ['n']


When are single quotes used and when are double quotes used... Like I
said I have little knowledge of PHP, how do I change the max_lines and
other params... This is confusing, I tried to do it on the server... should I
do that, then just rehash the chat? HELP!!
md16185
New member
 
Posts: 8
Joined: Thu Jan 31, 2013 9:37 pm
Top

Re: Why can't edit the params?

Postby re*s.t.a.r.s.*2 » Fri Feb 01, 2013 8:57 am

Hi,

Single or double quotes can be used when you are using a string , example:

$variable = 'my string';
or
$variable = "my string";

In your case you are looking for $params['max_displayed_lines'] = 10; it doesn't matter what kind of quotes you use because the array key is being set with a string so this also works :
$params["max_displayed_lines"] , please give a quick read to http://www.phpfreechat.net/parameters

That is where you are going to find all the available parameters for the epic phpfreechat 1xx.

hope this helps a bit.
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

Re: Why can't edit the params?

Postby OldWolf » Fri Feb 01, 2013 6:18 pm

md16185 wrote:
Code: Select all
$params ['max_length] = ['n']



Three problems with this line:
1. max_length should have single (or double) quote on both sides. Single is the more efficient one, but either way, one type needs to be on both sides of the word. Right now it's only on the left.
2. There's no reason to have n in brackets. I'm not sure where you picked that up, but you use brackets only to reference arrays (in this case "params").
3. Max length is looking for a number. Therefor, you don't want quotes around n (and I assume you know that n needs to be a number). Just the number, and then a semicolon after to indicate the line is done.

I'm happy to help you with this and work with you on it, but I think in all honesty you would be better served reading a couple of basic PHP tutorials before doing anything more. You're really going to struggle through if you don't understand those basics, and copying other param lines doesn't seem to work for the way you think.

Good luck!
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
3 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

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