TinyPortal

Development => Support => Topic started by: alhaudhie on December 08, 2008, 02:05:27 PM

Title: Error tp_above sub template
Post by: alhaudhie on December 08, 2008, 02:05:27 PM
I having the problem like this?

File: /home/~/Themes/default/sbox.template.php (tp_above sub template - eval?)
Line: 20


where must i check to fix this problem?
Title: Re: Error tp_above sub template
Post by: G6Cad on December 08, 2008, 02:33:09 PM
Please read the Posting Guidelines.html (http://www.tinyportal.net/index.php/topic,581)

You have been here long enough to know what info we need the help you  ;)

sbox.template.php, that file i have never heard of
Title: Re: Error tp_above sub template
Post by: IchBin on December 08, 2008, 03:15:11 PM
That error is from another shoutbox which we do not support. You must seek help from the mod author of that shoutbox.
Title: Re: Error tp_above sub template
Post by: alhaudhie on December 10, 2008, 02:15:15 PM
Sorry for everything..

before this topic is closedcoz wrong topic i post the problem here..

i think the problem is from this code:

global $scripturl;
echo  '<div style="width: 100%; height: 185px;overflow: auto">';


echo '
                        <table border="0" width="650px" cellspacing="1" cellpadding="4" class="bordercolor">
                               <tr><td colspan="6" class="custom" align="center">20  Kiriman Terbaru Di Forum   

</td></tr> ';
       $what=ssi_recentTopics('20', NULL, 'array');


        foreach ($what as $topic)
        {
               echo '
                                <tr>
                                        <td class="windowbg" valign="middle">
                                                <span title="',shorten_subject($topic['preview'], $modSettings

['hoverLength']),'">', $topic['link'],'</span>';

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

['new_from'], '#new"><img src="', $settings['images_url'], '/', $context['user']['language'], '/new.gif" alt="',

$txt[302], '" border="0" /></a>';

                echo '
                                        </td>
                                        <td class="windowbg2" valign="middle" width="14%">
                                                ', $topic['poster']['link'], '
                                        </td>

                                        </td>
                                        <td class="windowbg" valign="middle" width="14%">
                                                ', $topic['board']['link'], '
                                        </td>


                                        <td class="windowbg2" valign="middle" width="24%">';
                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 style="font: bold 10px Verdana, sans serif; color: #7D6700">
                                                        ', $topic['time'], '
                                                </span>
                                        </td>
                                </tr>';
        }

        echo '
                        </table>';


After remove
echo  '<div style="width: 100%; height: 185px;overflow: auto">';

the block run properly...