Warning: The author of this contribution does not provide support for it anymore.

ACP Announcement Centre

Parse error - ACP Announcement Centre

Parse error

by Jessica » Wed May 04, 2011 11:33 pm

cannot get to module Announcement Centre.

Parse error: syntax error, unexpected ')' in /home/jesschen/public_html/phpBB3/includes/functions_posting.php on line 134

Line 134:

Code: Select all

'U_MORE_SMILIES'       => ( $acp_announce ) ? ( $acp_models ) ? append_sid("{$phpbb_root_path}posting.$phpEx", 'mode=smilies&models=1') : append_sid("{$phpbb_root_path}posting.$phpEx", 'mode=smilies&f=' . $forum_id))


how to fix? :/
Pro-choice, Atheist, Pro-LGBT rights
Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid. - Albert Einstein
User avatar
Jessica
Former Team Member
Posts: 4342
Joined: Sun Jul 18, 2010 2:53 pm
Location: Pennsylvania, USA
Name: Jessica
Contact:

Re: Parse error

by wolfman24 » Thu May 05, 2011 7:22 am

The last ) is unexpected, as the error message says. Try to replace it with a , or to remove it.
wolfman24
Registered User
Posts: 387
Joined: Tue Mar 07, 2006 12:07 pm

Re: Parse error

by lefty74 » Thu May 05, 2011 6:06 pm

i wonder where the acp_models code is coming from, looks like someone liked the code i wrote when he/she made his/her mod.

try this instead (not tested this):

Code: Select all

'U_MORE_SMILIES'       => ( $acp_announce ) ? append_sid("{$phpbb_root_path}posting.$phpEx", 'mode=smilies&announce=1') : ( $acp_models ) ? append_sid("{$phpbb_root_path}posting.$phpEx", 'mode=smilies&models=1') : append_sid("{$phpbb_root_path}posting.$phpEx", 'mode=smilies&f=' . $forum_id))
lefty74
zoocrew.eu - help us save our wildlife
My MODS | Due to lack of time I unfortunately am unable to work on my mods anymore, anyone who has ideas to improve them and would like to take any of them over, please PM me.
User avatar
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL
Contact: