GIDForums  

Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 20-Feb-2006, 23:28
vigilantweather vigilantweather is offline
New Member
 
Join Date: Feb 2006
Posts: 28
vigilantweather is on a distinguished road
Exclamation

Parse Error


Hi... Please ignore the two prior threads of mine... no one responded and I finally got it to work on my own.

Now I face an error with creating a shoutbox...

Here's the error (it is on my PhpBB 2.x Forums homepage index.php)

http://www.vigilantweather.com/board/index.php is the URL

Error Message:

Parse error: parse error, unexpected '=', expecting ')' in /home/vigilant/public_html/board/index.php on line 277

Here is a sample of line 277 & surrounding areas in index.php --- Hint: Line 277 begins with ' FORUM_LOCKED_IMG And now to the code:

PHP Code:

'FORUM_IMG' => $images['forum'],
        'FORUM_NEW_IMG' => $images['forum_new'],
        ' FORUM_LOCKED_IMG' = > ' L_FORUM' ) $$lang['Forum ' ],

// Start add - Fully integrated shoutbox MOD
' U_SHOUTBOX' = > append_sid("shoutbox.$phpEx"),
' L_SHOUTBOX' = > $$lang['Shoutbox ' ],
' U_SHOUTBOX_MAX' = > append_sid("shoutbox_max.$phpEx"),
// End add - Fully integrated shoutbox MOD $$images['forum_locked ' ], 



Does anyone know how to fix this? If so, please post here ASAP... My board is suffering from errors during times of promotion which spells out trouble!

Help appreciated... thanks
  #2  
Old 21-Feb-2006, 06:35
cable_guy_67's Avatar
cable_guy_67 cable_guy_67 is offline
Senior Member
 
Join Date: Oct 2004
Location: Nescopeck, PA
Posts: 1,108
cable_guy_67 is a jewel in the roughcable_guy_67 is a jewel in the roughcable_guy_67 is a jewel in the roughcable_guy_67 is a jewel in the rough

Re: Parse Error


Unless there is something very strange happening before this code, you will have problems with...
PHP Code:

'FORUM_IMG' => $images['forum'],
        'FORUM_NEW_IMG' => $images['forum_new'],
        ' FORUM_LOCKED_IMG' = > ' L_FORUM' ) $$lang['Forum ' ],
        // ABOVE LINE, is trouble    ^^^^^^^ 



Now, not having phpBB I am guessing but this looks like your run of the mill language file for text substitution. One file with a long list of key=>value pairs. The close parenthesis above is making a mess of things, as well as the L_FORUM part.

Try this, change the FORUM_LOCKED_IMG line to something like
PHP Code:

' FORUM_LOCKED_IMG' = >  $$lang['Forum ' ],
// OR MAYBE
' FORUM_LOCKED_IMG' = >  $images['forum_locked' ], 



Did the error go away? I'm not sure that is the $$lang item you want but maybe it will get things moving along?

HTH,
Mark
__________________
"Opportunity is missed by most people because it comes dressed in overalls and looks like work."
--Thomas Alva Edison
"Those who would give up essential liberty to purchase a little temporary safety, deserve neither liberty nor safety."
--Benjamin Franklin
"A happy person is not a person in a certain set of circumstances, but rather a person with a certain set of attitudes."
--Hugh Downs
  #3  
Old 21-Feb-2006, 11:48
vigilantweather vigilantweather is offline
New Member
 
Join Date: Feb 2006
Posts: 28
vigilantweather is on a distinguished road

Re: Parse Error


No it is still there... both deliver the same, original error.
  #4  
Old 21-Feb-2006, 12:24
cable_guy_67's Avatar
cable_guy_67 cable_guy_67 is offline
Senior Member
 
Join Date: Oct 2004
Location: Nescopeck, PA
Posts: 1,108
cable_guy_67 is a jewel in the roughcable_guy_67 is a jewel in the roughcable_guy_67 is a jewel in the roughcable_guy_67 is a jewel in the rough

Re: Parse Error


I'm such an idiot. That's what I get for not trying it out first.

The problem is the whitespace between the = and the >.

Make them all look like => and see if it solves your problem. I bet it does, since I was able to replicate your exact error on my board.

Mark

EDIT:
Hmmm, looks like you are back up.

One more thing. Check out your menu items in the footer of your main pages. They are all the same on each particular page (but different on each main site page).
__________________
"Opportunity is missed by most people because it comes dressed in overalls and looks like work."
--Thomas Alva Edison
"Those who would give up essential liberty to purchase a little temporary safety, deserve neither liberty nor safety."
--Benjamin Franklin
"A happy person is not a person in a certain set of circumstances, but rather a person with a certain set of attitudes."
--Hugh Downs
 
 

Recent GIDBlog2nd Week of IA Training by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Tutorial] GUI programming with FLTK dsmith FLTK Forum 10 03-Oct-2005 15:41
Winsock error when compiling FLTK 2.0 Projects mauriciorossi FLTK Forum 3 16-Aug-2005 10:18
Help with syntax errors PeteGallo C Programming Language 7 08-Aug-2005 20:30
What is "Ambigious symbol" ??*( a compilation error) small_ticket CPP / C++ Forum 2 07-Jan-2005 21:10
Can enum have same name as class? crystalattice CPP / C++ Forum 3 08-Dec-2004 16:43

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 21:23.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.