How can i remove ''news'' from smf curve homepage

Started by timidapsin, May 07, 2013, 08:08:24 PM

Previous topic - Next topic

timidapsin

please i need help on how to manually remove the News from smf curve theme.

Mick.

Turn it off from the current theme settings youre using.

Arantor

Specifically Admin > Configuration > Current Theme > Enable random news line in the forum header

Mick.

Quote from: Arantor on May 07, 2013, 08:10:56 PM
Specifically Admin > Configuration > Current Theme > Enable random news line in the forum header
;)

timidapsin

i want to edit the code and remove it completely from the curve theme

Mick.

Can i ask why?  If you turn it off, it wont be visible.

What kind of edit are you doing?

TheListener

Quote from: timidapsin on May 07, 2013, 08:32:23 PM
i want to edit the code and remove it completely from the curve theme

Thanks for telling us after the horse has bolted.


timidapsin


Arantor

Why?

We have told you how to turn it off so it will not be visible at all. Why change the code?

timidapsin

Quote from: Arantor on May 07, 2013, 08:57:47 PM
Why?

We have told you how to turn it off so it will not be visible at all. Why change the code?
This is because i want simple portal to show it on my preferred position at the homepage

Mick.

ok.

OPen:
/Themes/default/index.template.php

Find:
// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news']))
echo '
<h2>', $txt['news'], ': </h2>
<p>', $context['random_news_line'], '</p>';


In other themes may look the same, may not.

TheListener

Simple Poretal has the news as a portal block.


Mick.

Quote from: Old Fossil on May 07, 2013, 09:09:16 PM
Simple Poretal has the news as a portal block.



Im thinking what he wants is, to show in block ONLY. Wants it removed so it doesnt show twice. (block and forum)

Arantor

I don't see the problem. Surely the option should disable it and leave the portal block alone?

TheListener

Quote from: Mick. on May 07, 2013, 09:10:54 PM
Quote from: Old Fossil on May 07, 2013, 09:09:16 PM
Simple Poretal has the news as a portal block.



Im thinking what he wants is, to show in block ONLY. Wants it removed so it doesnt show twice. (block and forum)

I suddenly thought the same after I pressed the post button  :-[


timidapsin

Quote from: Mick. on May 07, 2013, 09:07:19 PM
ok.

OPen:
/Themes/default/index.template.php

Find:
// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news']))
echo '
<h2>', $txt['news'], ': </h2>
<p>', $context['random_news_line'], '</p>';


In other themes may look the same, may not.
Thanks guys for replying, this should solve my problem

Mick.

Quote from: Arantor on May 07, 2013, 09:11:33 PM
I don't see the problem. Surely the option should disable it and leave the portal block alone?

It does.  I've used a working news block and disabled from forum via the theme settings.

Arantor


Mick.


Arantor

I strongly discourage people from making code edits when none are appropriate. It causes trouble down the line in terms of maintenance and most of this thread could have been saved. >_<

Mick.

Quote from: Arantor on May 07, 2013, 09:22:43 PM
I strongly discourage people from making code edits when none are appropriate. It causes trouble down the line in terms of maintenance and most of this thread could have been saved. >_<
I agree. I cant think of a mod that would rewrite the news code. Anyways, he got what he wanted.

Arantor

* Arantor does not like giving people what they think they want when it isn't what they actually need. :(

Mick.

Quote from: Arantor on May 07, 2013, 09:26:30 PM
* Arantor does not like giving people what they think they want when it isn't what they actually need. :(
ok. You can kick me now. Lol

Arantor

Nah, it's all good. It's just one of my little frustrations.

Mick.

Quote from: Arantor on May 07, 2013, 09:28:55 PM
Nah, it's all good. It's just one of my little frustrations.
I hear ya man but to some it doesnt matter how many times you have to ask why.

Advertisement: