News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

News Fader title will not change

Started by faithfulness, August 10, 2010, 04:34:12 PM

Previous topic - Next topic

faithfulness

Ok.., I upgraded to 2.0 RC3 last night.  I have the Core Theme Been working for a couple hours trying to change the news fader's title from "News" to "Community Updates".

What I've done. 

search this forum pretty thoroughly and I've change my Core theme's index.template.php to

// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news']))
echo '
<div id="random_news"><h3>', $txt['Community Updates'], ':</h3><p>', $context['random_news_line'], '</p></div>';

echo '
</div>


didn't work so I did the same to defaults theme, didn't work. 

So I found my themes/default/languages/index.english.php file and change that to


$txt['message_index'] = 'Message Index';
$txt['news'] = 'Community Updates';    < ------------------------ my change
$txt['home'] = 'Home';


there is no themes/core/languages/index.english.php file

when I when to the core/BoardIndex.template and changed the this "news" I finally saw a result.. but it totally removed news and did nothing else

<div class="tborder marginbottom">
<h3 id="newsfader" class="catbg">
<img id="newsupshrink" src="', $settings['images_url'], '/collapse.gif" alt="*" title="', $txt['upshrink_description'], '" align="bottom" style="display: none;" />
', $txt['news'], '   <------------------------------------------------------------ my Change to 'Community Updates'
</h3>


what am I missing??

xenovanis

Quote from: faithfulness on August 10, 2010, 04:34:12 PM
So I found my themes/default/languages/index.english.php file and change that to


$txt['message_index'] = 'Message Index';
$txt['news'] = 'Community Updates';    < ------------------------ my change
$txt['home'] = 'Home';


there is no themes/core/languages/index.english.php file

Forget about hacking the templatefiles. Changing the languagefile should work. Languagefiles for all themes are stored in /Themes/default/languages.
"Insanity: doing the same thing over and over again and expecting different results."

faithfulness

QuoteForget about hacking the templatefiles. Changing the languagefile should work. Languagefiles for all themes are stored in /Themes/default/languages.

I thought so after working so long on it.. but then this should have worked... am I right?

$txt['message_index'] = 'Message Index';
$txt['news'] = 'Community Updates';    < ------------------------ my change
$txt['home'] = 'Home';


But it doesn't ..... my forum is english only and this is the index.english.php file...

is it a bug or am I in the wrong file?

xenovanis

Do you have cache enabled? If so, try clearing it in Admin -> Maintenance.
"Insanity: doing the same thing over and over again and expecting different results."

faithfulness

xenovanis your a genius at this stuff  8) worked like a charm less than 2 seconds. lol thanks

Advertisement: