Parse error: syntax error, unexpected '['

This is an archive of the phpBB 2.0.x support forum. Support for phpBB2 has now ended.
Forum rules
Following phpBB2's EoL, this forum is now archived for reference purposes only.
Please see the following announcement for more information: viewtopic.php?f=14&t=1385785
Locked
green ticks
Registered User
Posts: 426
Joined: Sun Apr 02, 2006 12:56 am

Parse error: syntax error, unexpected '['

Post by green ticks »

Code: Select all

Parse error: syntax error,unexpected '[' in /home/runenati/public_html/forums/templates/Rune-Nation/theme_info.cfg on line 8
Um and heres my .cfg

Code: Select all

<?php

//
// phpBB 2.x auto-generated theme config file for Rune-Nation
// Do not change anything in this file!
//

$Rune-Nation[0]['template_name'] = "RuneNation";
$Rune-Nation[0]['style_name'] = "Rune-Nation";
$Rune-Nation[0]['head_stylesheet'] = "RN.css";
$Rune-Nation[0]['body_background'] = "";
$Rune-Nation[0]['body_bgcolor'] = "E5E5E5";
$Rune-Nation[0]['body_text'] = "000000";
$Rune-Nation[0]['body_link'] = "006699";
$Rune-Nation[0]['body_vlink'] = "5493B4";
$Rune-Nation[0]['body_alink'] = "";
$Rune-Nation[0]['body_hlink'] = "DD6900";
$Rune-Nation[0]['tr_color1'] = "EFEFEF";
$Rune-Nation[0]['tr_color2'] = "DEE3E7";
$Rune-Nation[0]['tr_color3'] = "D1D7DC";
$Rune-Nation[0]['tr_class1'] = "";
$Rune-Nation[0]['tr_class2'] = "";
$Rune-Nation[0]['tr_class3'] = "";
$Rune-Nation[0]['th_color1'] = "98AAB1";
$Rune-Nation[0]['th_color2'] = "006699";
$Rune-Nation[0]['th_color3'] = "FFFFFF";
$Rune-Nation[0]['th_class1'] = "cellpic1.gif";
$Rune-Nation[0]['th_class2'] = "cellpic3.gif";
$Rune-Nation[0]['th_class3'] = "cellpic2.jpg";
$Rune-Nation[0]['td_color1'] = "FAFAFA";
$Rune-Nation[0]['td_color2'] = "FFFFFF";
$Rune-Nation[0]['td_color3'] = "";
$Rune-Nation[0]['td_class1'] = "row1";
$Rune-Nation[0]['td_class2'] = "row2";
$Rune-Nation[0]['td_class3'] = "";
$Rune-Nation[0]['fontface1'] = "Verdana, Arial, Helvetica, sans-serif";
$Rune-Nation[0]['fontface2'] = "Trebuchet MS";
$Rune-Nation[0]['fontface3'] = "Courier, \'Courier New\', sans-serif";
$Rune-Nation[0]['fontsize1'] = "10";
$Rune-Nation[0]['fontsize2'] = "11";
$Rune-Nation[0]['fontsize3'] = "12";
$Rune-Nation[0]['fontcolor1'] = "444444";
$Rune-Nation[0]['fontcolor2'] = "327534";
$Rune-Nation[0]['fontcolor3'] = "FF7F00";
$Rune-Nation[0]['span_class1'] = "";
$Rune-Nation[0]['span_class2'] = "";
$Rune-Nation[0]['span_class3'] = "";
$Rune-Nation[0]['img_size_poll'] = "0";
$Rune-Nation[0]['img_size_privmsg'] = "0";

?>

So um, I'm not sure what to change, I need this to work so i can add more styles.. This error showed during i click 'Add' under the styles Bar in the ACP.
eukben
Registered User
Posts: 9
Joined: Tue May 22, 2007 4:05 pm

Re: Parse error: syntax error, unexpected '['

Post by eukben »

/Edit: Mis-read, my apologies.
User avatar
T0ny
Registered User
Posts: 1383
Joined: Sun Jan 29, 2006 8:42 pm
Location: Lancashire
Name: Tony

Re: Parse error: syntax error, unexpected '['

Post by T0ny »

green ticks wrote: $Rune-Nation[0]['template_name'] = "RuneNation";
$Rune-Nation isn't a valid PHP variable name. Variable names can't contain '-'
Locked

Return to “2.0.x Support Forum”