Dear TPortal fans and friends,
I hope I posted it in the right section, if not please apologize.
I had a lot of errors and could now find out that it was caused or caused to came up by a TP standard block called "recent topic"
global $context, $modSettings, $txt;
$context['TPortal']['recentboxnum'] = '15';
if(isset($modSettings['recycle_board']))
$bb = $modSettings['recycle_board'];
$what = ssi_recentTopics($context['TPortal']['recentboxnum'], NULL, NULL, 'array');
$counter=1;
$cmax = count($what);
echo '
<div style="width: 100%; overflow: auto; height: 30ex;">';
foreach($what as $w)
{
echo '
<div class="smalltext"><a href="'.$w['href'].'">' . $w['short_subject'] . '</a></div>
<div class="smalltext">', $txt['by'], ' <b>', $w['poster']['link'], '</b></div>
<div class="smalltext">';
if(!$w['new'])
echo '<a href="'.$w['href'].'"><img border="0" src="'.$settings['images_url'].'/'.$context['user']['language'].'/new.gif" alt="new" /></a> ';
echo '['.$w['time'].']
</div>';
if($counter != $cmax)
echo '<hr />';
$counter++;
}
echo '
</div>';
The error I got in the error log was:
"8: Undefined variable: settings"
21 File: .../Themes/default/languages/TPortal.german-utf8.php (tp_above sub template - eval?)May questions - beside the intention to inform and share - are:
- Is it just a "problem" in our environment (setting, mods, ...see info) or general with this code?
- Do anybody know a good alternative, or how to change the code, so that it would not cause "troubles".
Thanks a lot in advanced!

______________________________
Link to my forum: sangham dot net
SMF version: SMF ver. 2.0.4
TP version: TP ver. 1.0
Default Forum Language: english
Theme name and version: small layout modifications based core
Browser Name and Version: firefox 18.0.2 (just upload activated while searching for version)
Mods installed: Tagging System2.4.3, Menu Editor Lite 1.0.5, (Add Facebook Like, Tweet, and Google +1 1.0.3a - deinstalled again), Quick Translation 0.8, TinyPortal 1.107, SEO Sitemap 2.2.1, Language Drop Down 1.5.3, KeyCAPTCHA for SMF 2.4, New Hooks 0.2, Login Security 1.0.2.2, SMF Quiz 1.1.0
Line: 21