Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Aiheen aloitti: daveb47 - marraskuu 30, 2019, 07:53:26 AP

Otsikko: Any way to completely remove News box?upload video mod?
Kirjoitti: daveb47 - marraskuu 30, 2019, 07:53:26 AP
Is there any way to completely remove News box please
Also looking for package or way to upload video direct to my own hosting or elsewhere to be able to embed on my site?
Otsikko: Re: Any way to completely remove News box
Kirjoitti: Antechinus - marraskuu 30, 2019, 08:06:06 AP
Which one? The fader or the random news lines? And on which theme?

You do realise that either of the news boxes will only display if you actually enter content? If you clear all the textareas in the news manager then neither box will show, regardless of admin settings.
Otsikko: Re: Any way to completely remove News box?upload video mod?
Kirjoitti: daveb47 - marraskuu 30, 2019, 08:24:40 AP
Unfortunately mine still shows?
Otsikko: Re: Any way to completely remove News box?upload video mod?
Kirjoitti: Antechinus - marraskuu 30, 2019, 08:27:19 AP
Like I said: on which theme?
Otsikko: Re: Any way to completely remove News box?upload video mod?
Kirjoitti: daveb47 - marraskuu 30, 2019, 08:30:40 AP
Sorry missed that part
Deep Blue theme
Otsikko: Re: Any way to completely remove News box?upload video mod?
Kirjoitti: Antechinus - marraskuu 30, 2019, 08:42:24 AP
Ah. Just remembered. The news fader relies on being enabled and having actual content, but for some weird SMF reason the random news lines box only relies on being enabled (ie: will display even if there's no content).

So, easy fix: Admin > Current Theme > Enable random news line in the forum header (uncheck that)
Otsikko: Re: Any way to completely remove News box?upload video mod?
Kirjoitti: daveb47 - joulukuu 01, 2019, 07:24:42 AP
Still no luck with this,this is News box i would like to remove,sorry for wavy line but i have the shakes today!
Otsikko: Re: Any way to completely remove News box?upload video mod?
Kirjoitti: Tonyvic - joulukuu 01, 2019, 09:32:33 AP
Lainaus käyttäjältä: Antechinus - marraskuu 30, 2019, 08:42:24 AP
Ah. Just remembered. The news fader relies on being enabled and having actual content, but for some weird SMF reason the random news lines box only relies on being enabled (ie: will display even if there's no content).

So, easy fix: Admin > Current Theme > Enable random news line in the forum header (uncheck that)
That should be the one from what I can see.
Otsikko: Re: Any way to completely remove News box?upload video mod?
Kirjoitti: Mick. - joulukuu 01, 2019, 09:58:27 AP
Why not posting in the theme author's topic? Anyways, maybe remove it from the index.template? Something more or less like this...

// 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>';


Note... that line is from the default theme. Your custom theme may look the same or a bit similar.

Also...I visited your site, looks like you already have it turned off.
Otsikko: Re: Any way to completely remove News box?upload video mod?
Kirjoitti: daveb47 - joulukuu 01, 2019, 12:18:03 IP
Thanks i will take a look at that,but it is still there
Otsikko: Re: Any way to completely remove News box?upload video mod?
Kirjoitti: Arantor - joulukuu 01, 2019, 12:26:13 IP
I can't see it, all I can see is the breadcrumb trail.
Otsikko: Re: Any way to completely remove News box?upload video mod?
Kirjoitti: daveb47 - joulukuu 02, 2019, 07:16:46 AP
Image of News block.

Otsikko: Re: Any way to completely remove News box?upload video mod?
Kirjoitti: Drunken Clam - joulukuu 02, 2019, 07:31:57 AP
That's your breadcrumb trail. You are on the Home page so it's showing the little House.
Otsikko: Re: Any way to completely remove News box?upload video mod?
Kirjoitti: daveb47 - joulukuu 02, 2019, 07:42:02 AP
I am an idiot.....You are right it is breadcrumb.
Sorry!!!
Sorted