1
mondarse
Bug in newBB Recet Topics' Block
  • 2003/11/28 13:06

  • mondarse

  • Just popping in

  • Posts: 96

  • Since: 2003/2/3 1


Hi,
I have found a bug in newBB Recet Topics' Block.
It only hapens when you set "Display in full size" to 0, so short display is used.
The template shows 3 colums:

<{$topic.title}> <{$topic.replies}> <{$topic.time}>

but newbb_new.php don't sends any data if "Display in full size" is set to 0.
Quote:

while ($tmpdb=$db->fetchArray($lastpostername)) {
$tmpuser = XoopsUser::getUnameFromId($tmpdb['uid']);
if ( $options[1] != 0 ) {
$topic['time'] = formatTimestamp($arr['topic_time'],'m')." $tmpuser";
}
}


I have commented the condition (if) and it works all right.

May be this code whas intended for "Most Viewed Topics" and "Most Active Topics" (haven't tried it), so we have to add and other condition checking $options[2] parameter.

2
ozboof
Re: Bug in newBB Recet Topics' Block
  • 2004/1/31 1:25

  • ozboof

  • Friend of XOOPS

  • Posts: 67

  • Since: 2003/10/28


I have tried the the suggestion above but seems to make the block dissappear .

maybe im having one of them days where nothing works

but could some tell/show me the exact lines etc to edit
As to be able to get date or poster in the recent post table in the short version of *Recent topics* block
as it this stage the recent post colum is empty

3
Dave_L
Re: Bug in newBB Recet Topics' Block
  • 2004/1/31 5:54

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


Did you comment-out both the line containing the "if" and the line containing the closing "}"?

modules/newbb/blocks/newbb_new.php

[color=ff0000]//[/color]if ( $options[1] != 0 ) {
   
$topic['time'] = formatTimestamp($arr['topic_time'],'m').$tmpuser";
[
color=ff0000]//[/color]}

4
ozboof
Re: Bug in newBB Recet Topics' Block
  • 2004/1/31 6:48

  • ozboof

  • Friend of XOOPS

  • Posts: 67

  • Since: 2003/10/28


No i never // }

but that has fixed it thanks Dave_L

5
onokazu
Re: Bug in newBB Recet Topics' Block
  • 2004/2/6 15:01

  • onokazu

  • XOOPS Founder

  • Posts: 617

  • Since: 2001/12/13


This is fixed on CVS, included in 2.0.6.

Login

Who's Online

324 user(s) are online (217 user(s) are browsing Support Forums)


Members: 0


Guests: 324


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits