Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Delete record by user

Quote Reply
Delete record by user
Why is there no function that a user canīt delete his own records?

Michael

Quote Reply
Re: Delete record by user In reply to
Because that would be an adminstrative nightmare for a lot of people to re-add records that users mistakingly delete. It can easily be created though...I have this option available for deleting accounts, bookmarks, links, banners, etc...

Basically you will have to copy the modify.cgi script, add new subs in the SiteHTML.pm and also add new template files...of course, all of this could be done via a plug-in...but you could play around with hacking a copy of modify.cgi and reference the delete_records sub rather than the modify_record sub.

Regards,

Eliot Lee
Quote Reply
Re: Delete record by user In reply to
It's a problem from a management point of view.

I think a plug-in could be written to mark a link as "deleted" so that the admin could then decide what to do with it, but the link would be treated as "unvalidated" for building and stats purposes.

Probably not too difficult, as it would be just a matter of flagging the database record as "deleted", and adding the option to manage deleted links.

PUGDOGŪ Enterprises, Inc.
FAQ:http://LinkSQL.com/FAQ
Forum:http://LinkSQL.com/forum
Quote Reply
Re: Delete record by user In reply to
Thatīs it!!

you are right pugdog. I think itīs possible to integrate it in the modify function. So this would be Modify/Delete section.

There is an option to set the ad to delete. Thatīs not complicated.

Only the build and admin functions need to be modified.
It makes sence to use page.cgi , and the ad should not be listed if the field "deleted-by-user" in ON.
The admin section needs a funtion to list the records "deleted-by-user" and finally delete them.

Michael






Quote Reply
Re: Delete record by user In reply to
I added a requests mod forum to the FAQ, and I have this listed as one of the things I'm actually working on.

PUGDOGŪ Enterprises, Inc.
FAQ:http://LinkSQL.com/FAQ
Forum:http://LinkSQL.com/forum
Quote Reply
Re: Delete record by user In reply to
I added an extra-field "Delete" with select option YES/No to the db.

This field is shown on the modify form. If a user want to
delete the record, he can set this to "Yes".

The admin can run the delete-record function with the search for this value and get listed all the records which must be deleted.

Very easy, but helps a lot

Michael