![]() |
Parse error?
Hi everyone,
I'm trying to input this code into my template: Code:
<if condition="$p['users-online']">$p[users-online]</if> Code:
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in /home/mysite/public_html/includes/adminfunctions_template.php(3537) : eval()'d code on line 128 Any idea what's wrong? If needed, here is some of the code it's around... Code:
<!-- begin beta status --> |
Try chnaging to:
HTML Code:
<if condition="$p[users-online]">$p[users-online]</if> |
Are you sure thats the only change you made? (does it save without that line)
|
@Marco; tried... doesn't work.
@merk; yes, it saves without that line. |
Change all instants of users-online to users_online. The template system will not allow you to use - in variables. ;)
|
Quote:
|
Not sure why. I've experianced this problem awhile ago and that fixed it for me. Uisng - in variables always seemed to be bad coding IMHO. Just my $0.02.
|
Ah, strange. I guess I can live without it :P Thanks for all the help.
|
No problem man. :)
|
Quote:
But I see no reason why it shouldnt work D: |
All times are GMT. The time now is 09:24 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|