Problem with guestbook plugin

Creating and modifying plugins.
Post Reply
hgoor
Regular
Posts: 297
Joined: Thu Jan 06, 2005 11:46 am

Problem with guestbook plugin

Post 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?
"If life is worth living, it's worth documenting" -- Adam Curry ("Podfather")

Bloggers@large: http://www.vandegoor.com
iLounge Radio: http://www.hostingperfect.net:8004/listen.pls
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Problem with guestbook plugin

Post 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
# 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/
hgoor
Regular
Posts: 297
Joined: Thu Jan 06, 2005 11:46 am

Re: Problem with guestbook plugin

Post 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...
"If life is worth living, it's worth documenting" -- Adam Curry ("Podfather")

Bloggers@large: http://www.vandegoor.com
iLounge Radio: http://www.hostingperfect.net:8004/listen.pls
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Problem with guestbook plugin

Post 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
# 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/
hgoor
Regular
Posts: 297
Joined: Thu Jan 06, 2005 11:46 am

Re: Problem with guestbook plugin

Post 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
"If life is worth living, it's worth documenting" -- Adam Curry ("Podfather")

Bloggers@large: http://www.vandegoor.com
iLounge Radio: http://www.hostingperfect.net:8004/listen.pls
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Problem with guestbook plugin

Post 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
# 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/
hgoor
Regular
Posts: 297
Joined: Thu Jan 06, 2005 11:46 am

Re: Problem with guestbook plugin

Post 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?
"If life is worth living, it's worth documenting" -- Adam Curry ("Podfather")

Bloggers@large: http://www.vandegoor.com
iLounge Radio: http://www.hostingperfect.net:8004/listen.pls
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Problem with guestbook plugin

Post 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
# 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/
hgoor
Regular
Posts: 297
Joined: Thu Jan 06, 2005 11:46 am

Re: Problem with guestbook plugin

Post 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...
"If life is worth living, it's worth documenting" -- Adam Curry ("Podfather")

Bloggers@large: http://www.vandegoor.com
iLounge Radio: http://www.hostingperfect.net:8004/listen.pls
Post Reply