Page 1 of 1

Problem with guestbook plugin

Posted: Sat Apr 14, 2007 4:20 pm
by hgoor
Hi,

I use the guestbook plugin but I am unable to delete entries, even though I am logged on as admin...

When I click the Delete Entry button, it just takes me back to the homepage!!

What gives?

Re: Problem with guestbook plugin

Posted: Sat Apr 14, 2007 6:17 pm
by garvinhicking
Hi!

which guestbook and which s9y version?

When you click on the link to edit an article in the frontend, this works?

Regards,
Garvin

Re: Problem with guestbook plugin

Posted: Sun Apr 15, 2007 10:22 pm
by hgoor
garvinhicking wrote:Hi!

which guestbook and which s9y version?

When you click on the link to edit an article in the frontend, this works?

Regards,
Garvin
I have no idea who's plugin it is, it just says version 2.4.

When I am logged in as admin I see an X at the top right for each entry and it displays a tooltip that indicates that when you click the X it should delete the entry, but when I click it, the result is that I go back to my homepage and the entry is still there...

I had to delete some spam using phpmyadmin!

Version of S9y is 1.1 and PHP 5.1.2...

Re: Problem with guestbook plugin

Posted: Mon Apr 16, 2007 10:45 am
by garvinhicking
Hi!

When you click on the link to edit an article (NOT a guestbook item, a real s9y blog entry) in the frontend, this works?

Can you see what the deleton URL looks like? Maybe it is malformed.

Best regards,
Garvin

Re: Problem with guestbook plugin

Posted: Mon Apr 16, 2007 8:10 pm
by hgoor
garvinhicking wrote:Hi!

When you click on the link to edit an article (NOT a guestbook item, a real s9y blog entry) in the frontend, this works?

Can you see what the deleton URL looks like? Maybe it is malformed.

Best regards,
Garvin
Yes it works like normal.

This is the url I see when I want to delete something:

http://zion.demon.nl/guestbook?noclean= ... ity[id]=16

Re: Problem with guestbook plugin

Posted: Tue Apr 17, 2007 10:29 am
by garvinhicking
Hi!

Okay, that URL is wrong. Because of URL rewriting the URL would instead need to read:

Code: Select all

http://zion.demon.nl/index.php?/guestbook&noclean=true&serendipity[adminAction]=guestbookdelete&serendipity[page]=1&serendipity[id]=16
or something like that. Because "guestbook" is not a valid name. Maybe Timbalu, the author of the current plugin, can have a statement regarding this? I darkly remember we already had a forum thread about the guestbook delete link, maybe you can come up with a search that yields results about it?

Best regards,
Garvin

Re: Problem with guestbook plugin

Posted: Tue Apr 17, 2007 10:50 am
by hgoor
garvinhicking wrote:Hi!

Okay, that URL is wrong. Because of URL rewriting the URL would instead need to read:

Code: Select all

http://zion.demon.nl/index.php?/guestbook&noclean=true&serendipity[adminAction]=guestbookdelete&serendipity[page]=1&serendipity[id]=16
or something like that. Because "guestbook" is not a valid name. Maybe Timbalu, the author of the current plugin, can have a statement regarding this? I darkly remember we already had a forum thread about the guestbook delete link, maybe you can come up with a search that yields results about it?

Best regards,
Garvin
Uh, but the link to my guestbook, which is:

http://zion.demon.nl/index.php?serendip ... =guestbook

does work?

Re: Problem with guestbook plugin

Posted: Tue Apr 17, 2007 10:55 am
by garvinhicking
Hi!
Uh, but the link to my guestbook, which is:

http://zion.demon.nl/index.php?serendip ... =guestbook

does work?
Yes, but that was not the link you gave - the subpage-link one is right, but the plugin should not use a delete link formatted like the one you gave, I consider this to be a bug. It should also use a link format like the above...

Best regards,
Garvin

Re: Problem with guestbook plugin

Posted: Tue Apr 17, 2007 12:13 pm
by hgoor
garvinhicking wrote:Hi!
Uh, but the link to my guestbook, which is:

http://zion.demon.nl/index.php?serendip ... =guestbook

does work?
Yes, but that was not the link you gave - the subpage-link one is right, but the plugin should not use a delete link formatted like the one you gave, I consider this to be a bug. It should also use a link format like the above...

Best regards,
Garvin
Ah ok. I obviusly use mod_rewrite but it didn't work that wel with the guestbook I think so that's one of the reasons the URL to the guestbook itself is actually /index.php?

Where I think it could/should be /guestbook...