TinyPortal
Development => Resources => Modules => Topic started by: Dodi on July 29, 2008, 08:27:17 PM
there is a way to show the "news" in the Classic YaBB SE theme only in a lateral box of TP !? hiding the same on the upper part of page ?
In a short words... is possible to show the news only in TP and not in the board !?
Thx
Please read the Posting Guidelines (http://www.tinyportal.net/index.php?topic=581)
Yes and No.
You can edit out the part in classic theme that displays the random news, and TP random news will still work. But if you just turn off random news from inside admin panel of SMF, the TP counterpart will also show nothing as its the same setting used there.
thank you so much Bloc!
this is not a problem, I won't turn news off! I simply need to show it only in the lateral box!
can you guide me to realize it !?
In classic theme's index.template.php, find and simply remove this code:
// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news']))
echo '
<tr class="windowbg2">
<td colspan="2" height="24" class="tborder" style="border-width: 1px 0 0 0; padding-left: 1ex;">
<b>', $txt[102], ':</b> ', $context['random_news_line'], '
</td>
</tr>';
Thank you Bloc!
I've simply modified:
Quoteif (!empty($settings['enable_news']))
to
Quoteif (!empty($settings['disable_news']))
and I got what I was lookin' for!
THANK YOU SO MUCH!!!
lol, that can work too. :)