1
Kell
newbb and last topic [newbb_new.cpp:78]
  • 2003/11/30 11:10

  • Kell

  • Just popping in

  • Posts: 2

  • Since: 2002/10/4


It seems that when not in full mode, newbb won't send the data for the last poster. Shouldn't this just not be shown in the template? Also, if you really want to do that, the "if" should come outside the "while" as follows:
if ( $options[1] != 0 ) {
            while (
$tmpdb=$db->fetchArray($lastpostername)) {
               
$tmpuser = XoopsUser::getUnameFromId($tmpdb['uid']);
                
$topic['time'] = formatTimestamp($arr['topic_time'],'m')." $tmpuser";
            }
         }
I still had to take that "if" off.

2
Kell
Re: newbb and last topic [newbb_new.cpp:78]
  • 2003/11/30 11:20

  • Kell

  • Just popping in

  • Posts: 2

  • Since: 2002/10/4


Sorry, ignore this post. Seems someone else pointed it already. Argh, what a noob mistake posting a bug w/o skimming the forums first. Sorry once again.

https://xoops.org/modules/newbb/viewtopic.php?topic_id=14249&forum=21