Forum / phpBB - can't delete threads

Creating and modifying plugins.
Post Reply
ewehdemeyer
Regular
Posts: 62
Joined: Fri Jan 19, 2007 6:59 pm
Location: Hamburg

Forum / phpBB - can't delete threads

Post by ewehdemeyer »

Hi,
on my blog there is a more smallish forum, but some friends wrote - so I don't want to delete it altogether. Additionally some spammers dropped their mess. It's not that often, so I am simply trying to delete it, when that happens. But I am just able to delete the answer, not the thread - that's remaining.
There are buttons :"new thread", "new forum" "delete answer" - but no "delete thread". I am blinking a fact?

thanks
Eva
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Forum / phpBB - can't delete threads

Post by garvinhicking »

Hi!

Which version of that plugin are you using?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
ewehdemeyer
Regular
Posts: 62
Joined: Fri Jan 19, 2007 6:59 pm
Location: Hamburg

Post by ewehdemeyer »

Hi Garvin

it's version 0.24
ewehdemeyer
Regular
Posts: 62
Joined: Fri Jan 19, 2007 6:59 pm
Location: Hamburg

Post by ewehdemeyer »

Garvin,

feeling cheap. may be updating is the way. I'll try that immediate after lunch.

Eva
ewehdemeyer
Regular
Posts: 62
Joined: Fri Jan 19, 2007 6:59 pm
Location: Hamburg

Post by ewehdemeyer »

Hi,
now it's version: 0.31. Didn't help.

Eva
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Inside the language files there are definintely strings on where to delete a complate thread, in the same line where you can move a thread.

You must be logged in as superuser/admin to see those in the forum frontend...?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
ewehdemeyer
Regular
Posts: 62
Joined: Fri Jan 19, 2007 6:59 pm
Location: Hamburg

Post by ewehdemeyer »

Hi,

Yes, I'm logged in as superuser/admin. hm.
screenshot:

Image

Eva
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Hm, this looks more like a screenshot of when you are not logged in?!

Have you check the admin backend, there's a "Forum" menu as well?

(I'm not using this forum plugin and have never really used it, so I'm fishing in the dark here as I have no example installation I could look into easily)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
ewehdemeyer
Regular
Posts: 62
Joined: Fri Jan 19, 2007 6:59 pm
Location: Hamburg

Post by ewehdemeyer »

Hi,
When I delete the answers, there are more buttons, but when its done - only "new thread".

Image
after deleting the answers
...
Image
click on the thread
...
Image

the backend allows to change the order of the forums.
maybe I have to change some settings in the plugin? Everyone using this plugin without this phenomenon?

maybe someone knows whats wrong.

Eva
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

I don't use the plugin myself, either; but I've got the code, so I've got some idea of what's going on.

If you're logged in as a user with userlevel 255 (an admin), then you should see three buttons: close or open thread, move thread, and delete thread. These are saved as the Smarty variable "THREADBUTTONS", so it's possible your template just isn't drawing that variable.

However, it's in the templates/postlist.tpl code. When you enter a thread and look at its posts, and you're logged in as admin, the thread buttons should appear at the bottom of the page in a center-aligned div. They're images wrapped in anchors. Use "View Source" to check if they're in the HTML.
Judebert
---
Website | Wishlist | PayPal
ewehdemeyer
Regular
Posts: 62
Joined: Fri Jan 19, 2007 6:59 pm
Location: Hamburg

Post by ewehdemeyer »

Hi judebert,
thats right - and it works! I am able to delete threads - as long, as there are answers. By answer-deleting I produced answerless threads. The answerless threads are without these buttons.
But through move ... and .. delete I got rid now of the needless threads.

Thanks a lot
Eva
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

So the problem was that you couldn't delete an empty thread? I suppose that would be because you can't enter the thread, and so you the buttons can't be displayed.

Your screenshots actually make that abundantly clear. I don't know why I didn't see it before.

I found the problem in the source and fixed it. I added that "PLUGIN_FORUM_NO_POSTS" to the English language file, too.

Since I'm not using the plugin, could you give it a test for me? It'll be available from SPARTACUS after the next nightly build.
Judebert
---
Website | Wishlist | PayPal
ewehdemeyer
Regular
Posts: 62
Joined: Fri Jan 19, 2007 6:59 pm
Location: Hamburg

Post by ewehdemeyer »

Hi judebert,
I'll look for that Thursday. ok?
Eva
ewehdemeyer
Regular
Posts: 62
Joined: Fri Jan 19, 2007 6:59 pm
Location: Hamburg

Post by ewehdemeyer »

Hi judebert,
Completely forgotten. sorry.
but it works fine now.
yes we can: deleting empty threads
Eva
Post Reply