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,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 629
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 413
  • Total: 413

Undefined index: newtime

Started by smartmouse, September 16, 2007, 01:35:37 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jacortina

Yes. After all that, I said that ID_TOPIC would be wrong in my last post but failed to replace it in that line:

echo '<a href="', $scripturl, '?topic=', $my['topic'], '.msg', $my['new_from'], ';topicseen#new"> <img src="', $settings['images_url'], '/', $context['user']['language'], '/new.gif" alt="', $txt[302], '" /></a>';

smartmouse

Please confirm that it is right now:

global $context, $scripturl;
$bullet = '<img src="'.$settings['images_url'].'/TPdivider.gif" alt="" border="0" style="margin:0 2px 0 0;" />';
$result=ssi_recentTopics_Include(30,array(62),'return');
foreach($result as $my){
  echo "$bullet";
  echo '<span class="smalltext">'.$my['link'];
  // is this topic new? (assume they are logged in)
if (!$my['new'] && $context['user']['is_logged'])
echo '<a href="', $scripturl, '?topic=', $my['topic'], '.msg', $my['new_from'], ';topicseen#new"> <img src="', $settings['images_url'], '/', $context['user']['language'], '/new.gif" alt="', $txt[302], '" /></a>';
echo '<br>';
}
echo '</span>';


At the moment, it seems to work with no errors. I'm crossing my fingers...

smartmouse

It works!

Problem solved! Thank you so much for your help and your patience!

This website is proudly hosted on Crocweb Cloud Website Hosting.