1
kiwiguy
newbb 2.0.1 unable to delete topics
  • 2005/1/24 0:53

  • kiwiguy

  • Friend of XOOPS

  • Posts: 295

  • Since: 2004/4/19


I have just upgraded from the 2.0 version of newbb to 2.0.1 and it has seemed to have mucked up a little only a teeensy weensy bit in 1` of my catergory forums in the way its displayed. as seen below

Resized Image

I have tried 5 times to delete this topic and it refuses to delete how do I go about fixing this little bug.

thanks in advance

kiwiguy

2
Draven
Re: newbb 2.0.1 unable to delete topics
  • 2005/1/24 3:56

  • Draven

  • Module Developer

  • Posts: 337

  • Since: 2003/5/28


Not sure of the problem, but trying submitting the problem to http://dev.xoops.org/modules/xfmod/tracker/?group_id=1001&atid=104 so you can be sure Preditor gets the bug. Forums can sometimes be missed unintentionally :)

3
irmtfan
Re: newbb 2.0.1 unable to delete topics
  • 2005/1/24 5:28

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


kiwiguy,
this is a silly question but do you update newbb module after copy all files?

4
kiwiguy
Re: newbb 2.0.1 unable to delete topics
  • 2005/1/24 8:54

  • kiwiguy

  • Friend of XOOPS

  • Posts: 295

  • Since: 2004/4/19


Yes i did update the newbb module....

5
Freaky
Re: newbb 2.0.1 unable to delete topics
  • 2005/1/24 19:12

  • Freaky

  • Just popping in

  • Posts: 37

  • Since: 2003/9/14


Hey Guys!

Same problem over here, when trying to delete/remove topic or post...it stays

Any solution for this possible bug?

6
siweb
Re: newbb 2.0.1 unable to delete topics
  • 2005/1/24 19:19

  • siweb

  • Not too shy to talk

  • Posts: 150

  • Since: 2004/5/2 1



7
Freaky
Re: newbb 2.0.1 unable to delete topics
  • 2005/1/24 20:33

  • Freaky

  • Just popping in

  • Posts: 37

  • Since: 2003/9/14


just made the change as described but still not working!

8
maumed
Re: newbb 2.0.1 unable to delete topics
  • 2005/1/24 23:45

  • maumed

  • Just popping in

  • Posts: 50

  • Since: 2004/10/18


still not working... the following lines are ok?

lines 822-829, newbb/class/post.php
if(!is_object($post) || $post->getVar('post_id')==0) return false;

$sql sprintf("DELETE FROM %s WHERE post_id = %u"$this->db->prefix("bb_posts"), $post->getVar('post_id'));
if (!
$result $this->db->queryF($sql)) {
     return 
false;
}
$this->_delete($post); // line 828
$post->deleteAttachment();


Mauricio

9
Montisarts
Re: newbb 2.0.1 unable to delete topics
  • 2005/1/25 2:15

  • Montisarts

  • Not too shy to talk

  • Posts: 158

  • Since: 2003/1/26


I did a fresh install of xoops, didn't install newbb1.x, deleted the dir of newbb en uploaded version 2.1.

I would say that is a fresh install? (not sure)
But I am not able to delete posts/topics either...

greetz Frank

10
kiwiguy
Re: newbb 2.0.1 unable to delete topics
  • 2005/1/25 2:45

  • kiwiguy

  • Friend of XOOPS

  • Posts: 295

  • Since: 2004/4/19


Was informed to add this to line 828 of modules>newbb>class>post.php

Quote:
$this->_delete($post);


Which would change this part from:

Quote:
function _delete(&$post)
{
if(!is_object($post) || $post->getVar('post_id')==0) return false;

$sql = sprintf("DELETE FROM %s WHERE post_id = %u", $this->db->prefix("bb_posts"), $post->getVar('post_id'));
if (!$result = $this->db->queryF($sql)) {
return false;
}
$post->deleteAttachment();


changed to

Quote:
function _delete(&$post)
{
if(!is_object($post) || $post->getVar('post_id')==0) return false;

$sql = sprintf("DELETE FROM %s WHERE post_id = %u", $this->db->prefix("bb_posts"), $post->getVar('post_id'));
if (!$result = $this->db->queryF($sql)) {
return false;
}
$post->deleteAttachment();$this->_delete($post);


But yet this still does not work after updating Nebb module after i made this change.

regards kiwiguy

Login

Who's Online

350 user(s) are online (271 user(s) are browsing Support Forums)


Members: 0


Guests: 350


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