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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 195,994
  • Total Topics: 21,325
  • Online today: 348
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 256
  • Total: 256

Recent topics phpblock lost!

Started by guvenck, March 29, 2007, 12:57:53 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

guvenck

Hello,

I had a working phpblock for Recent Topics with my 0.9.7 installation. I upgraded to 0.9.8 and the block is not visible anymore, why might this happen? Here is the code:

Quote
// "Recent Topics" a php Block
// Prefered settings when being designed
// Border and title on
// Title ="Recent Topics"

global $scripturl;
$what=ssi_recentTopics('10', NULL, 'array');

echo '<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">';
echo '<tr class="catbg3"><td valign="middle">Konu</td><td valign="middle">Forum</td><td valign="middle">Sender</td><td valign="middle">Date</td></tr>';

foreach ($what as $topic)
  {
    echo '<tr><td class="windowbg" valign="middle">', $topic['link'];
    // Is this topic new? (assuming they are logged in!)
    if (!$topic['new'] && $context['user']['is_logged'])
      echo '<a href="', $scripturl, '?topic=', $topic['topic'], '.from', $topic['time'], '#new"><img src="', $settings['images_url'], '/', $context['user']['language'], '/new.gif" alt="', $txt[302], '" border="0" /></a>';
      echo '</td><td class="windowbg2" valign="middle" >', $topic['board']['link'], '</td>';
      echo '</td><td class="windowbg2" valign="middle" >', $topic['poster']['link'], '</td><td class="windowbg2" valign="middle" >';
      if ($settings['images_url'] != $settings['theme_url'] . '/images' || file_exists($settings['theme_dir'] . '/images/icons/last_post.gif'))
      echo '<a href="', $topic['href'], '"><img src="', $settings['images_url'], '/icons/last_post.gif" alt="', $txt[111], '" title="', $txt[111], '" border="0" style="float: right;" /></a>';
      echo '<span class="smalltext">', $topic['time'], '</span></td></tr>';
  }

echo '</table>';


And my SMF version is 1.1.2.

G6Cad

In TP V.098 Bloc have moved the settings and the layout for the blocks around a bit.
You have to recheck your settings for the blocks and how they show now.

If you look in the admin panel/tinyportal/Settings, you have the "panels" now.
Play around with the settings and i think it will show up again.

guvenck

The block shows up in TP Admin and although it is turned on, it does not appear on the frontpage.

guvenck

Oh and a scriptbox does not show up on the frontpage either. Both are center blocks.

G6Cad

Have you looked at the settings on thr PANELS section ?
Show, right/left/center/top/bottom

guvenck

Solved it. During the installation, displaying of Center Blocks was unchecked. Maybe its newly introduced. Thanks for the quick replies :)

G6Cad


This website is proudly hosted on Crocweb Cloud Website Hosting.