TinyPortal
Development => Support => Topic started by: guvenck on March 29, 2007, 12:57:53 PM
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.
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.
The block shows up in TP Admin and although it is turned on, it does not appear on the frontpage.
Oh and a scriptbox does not show up on the frontpage either. Both are center blocks.
Have you looked at the settings on thr PANELS section ?
Show, right/left/center/top/bottom
Solved it. During the installation, displaying of Center Blocks was unchecked. Maybe its newly introduced. Thanks for the quick replies :)
Told you ;)
Glad you sorted it :)