News:

Join the Facebook Fan Page.

Main Menu

News

Started by halfflight, May 04, 2012, 11:25:24 PM

Previous topic - Next topic

halfflight

I have just changed themes from core back to curve. The only thing I miss about core is the News section. I like the fact that it is below the user menu and not stuck over to the right as in curve.

Is there anyway to replicate the news section from core in curve?

I hope that makes sense.

Smudger

TheListener

Is it the Newsfader you mean?

If so Admin > Configuration > Themes and settings > Theme >

Below Theme Options and Preferences look for Show news fader on board index:

Hope this helps.

Sir Osis of Liver

I think he wants to move it.

In index.template.php find 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>';



Move it below this:



// Show the menu here, according to the menu sub template.
template_menu();

echo '
<br class="clear" />




Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

TheListener

Jus t re read and I believe ya right  :-[

halfflight

Thanks guys I did want to move it, sorry for the confusion, I will have a crack at it now after backing up.

Smudger

TheListener

Can ya please mark the topic as solved once ya have sorted it.

:)

halfflight

Will do however when I try to move it I get this error;

Template Parse Error!
There was a problem loading the /Themes/default/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
syntax error, unexpected T_STRING, expecting ',' or ';'

halfflight

I sorted it by putting the code before;

Code: [Select]


   // Show the menu here, according to the menu sub template.
   template_menu();

   echo '
      <br class="clear" />

I do however have a new problem, how do I line it up so the actual news is on the same line. Here is an example og what I have now. I changed "news" to "On This Day"

On This Day:

May 5th, 1918. Italian Ace Sergente Giovanni Nicelli is killed in action.

Can I get it to read;

On This Day: May 5th, 1918. Italian Ace Sergente Giovanni Nicelli is killed in action.

Thanks for your help,

Smudger

Sir Osis of Liver




// Show the menu here, according to the menu sub template.
template_menu();

echo '
<br class="clear" />';

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

</div></div>';

// The main content should go here.



Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Sir Osis of Liver




<br>&nbsp&nbsp&nbsp<strong>On This Day: </strong>', $context['random_news_line'], '



Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

halfflight

Sorry Crash do I replace;

<h2>', $txt['news'], ': </h2>
            <p>', $context['random_news_line'], '</p>

With the text you suggested.

Sorry I am an old fart trying to get his head around this.

Smudger

Sir Osis of Liver


You're probably not older than me. 




// Show the menu here, according to the menu sub template.
template_menu();

echo '
<br class="clear" />';

// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news']))
echo '

<br>&nbsp&nbsp&nbsp<strong>On This Day: </strong>', $context['random_news_line'], '


</div></div>';

// The main content should go here.



Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

TheListener

Oi you two .

* Old Fossil is 39.

ApplianceJunk

Just trying to follow along too and trying it myself on a test forum.

What's with the &nbsp&nbsp&nbsp

halfflight

Quote from: Old Fossil on May 05, 2012, 12:11:17 AM
Oi you two .

* Old Fossil is 39.

Smudger is 50++ you youngster

Sir Osis of Liver

Just a quickie left margin.

(Krash = 62 )

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

halfflight

Thanks mate that did the trick. You win the old fart stakes!!!

Smudger

Sir Osis of Liver

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

halfflight

#18
 Sorry there is just one cosmetic problem. I placed the On This Day above the menu but I have a rather large gap now between Login and the On This Day. Is there anyway I can close the gap, I have removed avatars from the welcome area. I would also like to have a space between the On This Day and the Menu.

Here is a link to the site to help you understand my ramblings;

http://www.greatwaraviation.com/forum/index.php

Smudger

Colin

Quote from: ApplianceJunk on May 05, 2012, 12:11:53 AM
Just trying to follow along too and trying it myself on a test forum.

What's with the &nbsp&nbsp&nbsp
&nbsp = Space in HTML
"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

Advertisement: