TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,966
  • Latest: safir45
Stats
  • Total Posts: 195,993
  • Total Topics: 21,324
  • Online today: 388
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 365
  • Total: 365

Problem with "news"

Started by Dodi, July 29, 2008, 08:27:17 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dodi

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



bloc

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.

Dodi

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 !?

bloc

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>';

Dodi

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

bloc


This website is proudly hosted on Crocweb Cloud Website Hosting.