Main Menu
collapse

Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

User Info

Welcome Guest.
Please log in.

Who's Online

  • Dot Guests: 943
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]


If you're interested in helping other members with support requests, consider joining the Community Support Helpers group.

Custom PHP Block

Started by Burke Knight, July 04, 2013, 01:30:21 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Burke Knight

I am making a news box block that uses css. It is using a custom php block.
I get the block to show, yet the news text does not. I know it is something simple I'm missing, but I just can't figure it out.

<?phpecho'<div id="bkmnews" align="center"><div id="bkmnew" align="center"><div class="bkmnewtop"></div><div class="bkmnewmain"><br /><p align="center"><div id="random_news"><p>', $context['random_news_line'], '</p></div></p><br /></div><div class="bkmnewbottom"></div></div></div>';?>


The random news line should be showing, but it does not. I really need this to work, so if someone has an idea, please let me know.

Thank you.

phantomm

You forgot to add global variables :)


global $context;

echo'
<div id="bkmnews" align="center">
<div id="bkmnew" align="center">
<div class="bkmnewtop"></div>
<div class="bkmnewmain">
<br />
<p align="center"><div id="random_news"><p>', $context['random_news_line'], '</p></div></p>
<br />
</div>
<div class="bkmnewbottom"></div>
</div>
</div>';

Burke Knight

Like I said, something simple I missed...lol

Thanks. :)