A big thanks to Dan for this mod. We’ll be testing it, and then integrate it into future releases.
Description: Allows surfers to suggest categories / subcategories. Suggested categories / subcategories are inactive until webmaster approves them via phpLD Admin – webmaster receives email confirmation when suggestions submitted.
VSDan replied: Thanks David! About this mod, when a category is suggested, it is added to the SQL database – but as inactive. Admin needs to activate (or delete) via admin. Future enhancement includes having the mod send an email when a category suggested. One phpld problem I discovered is that inactive categories along with active categories are displayed in the pull down category list for submit.php and suggest.php. Maybe have 2 category arrays (user and admin), where user category array only stores active categories?
Regards,
Dan
Virtual Solutions
ksbhati replied: Hi !
Nice MOD, I just have one suggestion. It would be nice to include the Description field also in the Suggest Category Page so that Admin does not have to key in the description. Of course Admin can always edit the description from the Admin section before approving the Category if description is inappropriate .
Best regards,
Karni
tstaut replied: I got it to autoaccept by going into the “categories” table in PHPMyAdmin and changing “STATUS” default from 1 to “2”.
It worked.
kickass replied: Wow, I was just thinking I really needed this mod for SeekLocally, and — Voila! here it is!
This is great!
I, for one, would prefer to monitor which categories are getting added, since I’m using this script for very specialized directories, so will leave it as it is, but the email notification to be sent out when the category is added would be VERY cool. I hope that’s done soon so I can add it in time for the SeekLocally launch.
tstaut asked: OK here’s a problem I’ve having with this- if you suggest a category, and it gets approved with no URL title, the URL is all wrong and it just redirects to the home page.
I was thinking that having the description field in mysql auto-increment to a number would fix it, but phpmyadmin is telling me only one field per table can auto-increment and the link # owns that already.
Any ideas?
VSDan replied: Try v1.10 of the mod. Fixes title_url issue, and allows person to provide description.
Nitech asked: Has anyone found a way to have the suggest category show the category it was clicked from instead of [Top] in the Parent box?
This works in submit link so it should work in suggest. Right? Thoughts?
VSDan replied:
if (empty ($_REQUEST['submit'])) {
$cid = get_category($_SERVER['HTTP_REFERER']); $data = array(); $data['PARENT_ID'] = $cid;
Thanks VSDan, works perfectly.