Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Aiheen aloitti: Propaganistas - helmikuu 16, 2009, 10:37:20 AP

Otsikko: Hiding output
Kirjoitti: Propaganistas - helmikuu 16, 2009, 10:37:20 AP
Hiya,

what do I have to do to hide the output of $context['random_news_line'] in the following code?

<div id="random_news"><p>', $context['random_news_line'], '</p></div>

Just deleting it isn't an option as the javascript call is required for another mod. It needs to be there. I already tried to delete it ;)

So, hiding the output would be nice :)

Thanks,
Propa
Otsikko: Re: Hiding output
Kirjoitti: karlbenson - helmikuu 16, 2009, 11:56:28 AP
<div id="random_news"><p></p></div>
Otsikko: Re: Hiding output
Kirjoitti: Propaganistas - helmikuu 16, 2009, 01:19:06 IP
Lainaus käyttäjältä: regularexpression - helmikuu 16, 2009, 11:56:28 AP
<div id="random_news"><p></p></div>

As I mentioned in my post, deleting isn't an option.
Otsikko: Re: Hiding output
Kirjoitti: Propaganistas - helmikuu 17, 2009, 11:51:36 AP
bump
Otsikko: Re: Hiding output
Kirjoitti: Propaganistas - helmikuu 18, 2009, 08:39:01 AP
bump?
Otsikko: Re: Hiding output
Kirjoitti: Rumbaar - maaliskuu 07, 2009, 07:58:05 IP
I'm not sure what you need it for then.  That section is just the output display of the $context contents.  Deleting it shouldn't pose any affect on any other sections or even use of that $context contents.

You can try wrapping the whole thing in HTML comment tags? <!--  -->
Otsikko: Re: Hiding output
Kirjoitti: Propaganistas - maaliskuu 08, 2009, 06:32:19 AP
Ah well, I just put in a space so the news content 'does get displayed'. I can't use the news function though, but it's ok for now :)

Thanks anyway.