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
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.
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" />
Jus t re read and I believe ya right :-[
Thanks guys I did want to move it, sorry for the confusion, I will have a crack at it now after backing up.
Smudger
Can ya please mark the topic as solved once ya have sorted it.
:)
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 ';'
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
// 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.
<br>   <strong>On This Day: </strong>', $context['random_news_line'], '
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
You're probably not older than me. (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.thekrashsite.com%2Fpics%2Frolleyes.gif&hash=ca10c185942636e0afc5cc09d07dded9f2b57aed)
// 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>   <strong>On This Day: </strong>', $context['random_news_line'], '
</div></div>';
// The main content should go here.
Oi you two .
/me is 39.
Just trying to follow along too and trying it myself on a test forum.
What's with the    
Quote from: Old Fossil on May 05, 2012, 12:11:17 AM
Oi you two .
/me is 39.
Smudger is 50++ you youngster
Just a quickie left margin.
(Krash = 62 (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.thekrashsite.com%2Fpics%2Fbor.gif&hash=cba0817857a10dc1cd975d2b49a33ba2fc822800))
Thanks mate that did the trick. You win the old fart stakes!!!
Smudger
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
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    
  = Space in HTML
They are there for a left margin, If I remove them it doesn't change the gap only buggers up the alignment.
Thanks for the help though.
Smudger
Ok, here's a better way to do it using inline CSS -
/// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news']))
echo '
<div style="margin: 20px 0 20px 10px;"><span style="font-weight: bold;">On This Day: </span>', $context['random_news_line'],'</div>
</div></div>';
The margins in margin: are top, right, bottom, left.