Mar 12, 2006, 10:11 PM
Veteran / Moderator (6956 posts)
Mar 12, 2006, 10:11 PM
Post #2 of 2
Views: 1520
>> Allow users to delete reviews for their sites?
Not easy, but possible. This requires a function call, and a few other things, probably best not done as a global. You'd need to check to see if user.Username eq LinkOwner, and if so, show a link to "delete reviews". In the script, or function, you'd check again to make sure $USER->{'Username'} eq $link->{'LinkOwner'} before allowing the delete. You could then present a list of reviews and a check box to delete. The interface would be as simple or complex as you want it to be, and you could "steal" code and interface from the modify routines. I'm actually doing something like this for comments/reviews, to allow a user to "hide" reviews that are inappropriate, and if the editors/moderators agree, delete the reviews. Otherwise, they show as "nn Hidden Reviews"
>> Flag a link for the admin when validing if it is already in database?
Should be a matter of a small hook, or function call to check to see if the URL already exists. I've wanted to do something like this for awhile, rather than clicking the "check" link. Actually, changing that to be "A link for this already exists" or simply not showing the "check" if no link does exist. I'd also like to see the images, in thumbnail format, by a link, and I'm actually adding in *that* functionality to the admin side of the gallery/photogs program.
>> Prevent reviews with BAD wording, sort of a filter on reviews, if we are to turn auto validation on..
This is much harder, unless you specifically mean the "Badwords" list as stored in the configs.
That too should only be a matter of a hook to run a scan and set 'isValidated' to no, rather than 'yes'
PUGDOG� Enterprises, Inc.
The best way to contact me is to NOT use Email.
Please leave a PM here.