SMF Support > SMF 2.0.x Support

News

<< < (2/5) > >>

Old Fossil:
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:


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

Krash.:


--- Code: ---
// 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.


--- End code ---

Krash.:


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


--- End code ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version