EzPortal - Portal Software for Forums

EzPortal - Made to Fit Your SMF Forum - Glad You Found Us!
+- +-

UserBox

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Recent Posts

Re: permissions to shoutbox by EzPortal
December 10, 2018, 11:22:34 pm

Re: permissions to shoutbox by zoltar
December 10, 2018, 02:48:47 pm

Re: permissions to shoutbox by EzPortal
December 09, 2018, 08:23:51 pm

Re: permissions to shoutbox by zoltar
December 09, 2018, 03:21:35 am

Re: permissions to shoutbox by EzPortal
December 08, 2018, 09:20:27 am

permissions to shoutbox by zoltar
December 08, 2018, 03:36:08 am

Re: Mobile Only Blocks by rcolaneri
November 20, 2018, 01:53:00 pm

Re: Mobile Only Blocks by EzPortal
November 20, 2018, 09:22:47 am

+- HTML Menu


Sample HTML Block Usage - You May Custom Code it, as needed!

Author Topic: Issue with custom ezBlock  (Read 3440 times)

0 Members and 1 Guest are viewing this topic.

Offline fobnicat

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Issue with custom ezBlock
« 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.

Offline EzPortal

  • Administrator
  • *****
  • Posts: 1190
  • Karma: 65
Re: Issue with custom ezBlock
« Reply #1 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>
Like ezPortal? Support me at https://www.patreon.com/vbgamer45/

Offline fobnicat

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Re: Issue with custom ezBlock
« Reply #2 on: September 30, 2014, 11:29:24 pm »
 :o I did it again  :-\

Thank you! ;D

 

Related Topics

  Subject / Started by Replies Last post
22 Replies
49720 Views
Last post April 23, 2015, 02:08:54 pm
by EzPortal
3 Replies
5338 Views
Last post May 18, 2009, 10:56:13 pm
by fisho
8 Replies
14112 Views
Last post July 01, 2010, 04:26:42 pm
by krice
2 Replies
3809 Views
Last post February 08, 2012, 09:52:43 pm
by wireplay
0 Replies
4005 Views
Last post June 27, 2013, 09:15:48 am
by saintblue

+-SMF Gallery

Quick Menu








Members Online

11 Guests, 0 Users
Powered by EzPortal