EzPortal - Portal Software for Forums

EzPortal Forums => ezBlock Coding Forums => Topic started by: fobnicat on September 30, 2014, 11:20:13 pm

Title: Issue with custom ezBlock
Post by: fobnicat on September 30, 2014, 11:20:13 pm
Hi all,

I apologize for being quite the nuisance with so many simple questions, but I appreciate all of the help.

I have written a very basic block to get started.  This block will allow my moderators to enter in basic information to display a monthly winner.

I have searched over for any syntax errors, but I cant find any, yet I am still getting "ezBlock unable to run PHP syntax error!"

Any help?

Code: [Select]
<blockdata><![CDATA[echo '<h1>' . $parameter1 . "'s ROTM is sponsored by " . $parameter2 . '</h1>'

echo '<b>Congratulations ' . $parameter3 .' ' . $parameter4 . " for being this month's winner!</b>"
echo . $parameter3 . ' will be receiving ' . $parameter5 . ' from ' . $parameter2 . '!'

echo 'Now check out ' . $parameter3 . "'s winning " . $parameter6 . ':

echo '<img src="/images/rotm/' . $parameter7 . '">'
]]></blockdata>

I only posted the block data due to there being no issues entering the form data leading me to believe the parameters section is clean.
Title: Re: Issue with custom ezBlock
Post by: EzPortal on September 30, 2014, 11:22:57 pm
Updated code
Code: [Select]
<blockdata><![CDATA[echo '<h1>' . $parameter1 . "'s ROTM is sponsored by " . $parameter2 . '</h1>';

echo '<b>Congratulations ' . $parameter3 .' ' . $parameter4 . " for being this month's winner!</b>";
echo  $parameter3 . ' will be receiving ' . $parameter5 . ' from ' . $parameter2 . '!';

echo 'Now check out ' . $parameter3 . "'s winning " . $parameter6 . ': ';

echo '<img src="/images/rotm/' . $parameter7 . '">';
]]></blockdata>
Title: Re: Issue with custom ezBlock
Post by: fobnicat on September 30, 2014, 11:29:24 pm
 :o I did it again  :-\

Thank you! ;D