Go Back   PHP Link Directory Forum > PHP Link Directory (phpLD) > Mods and contribution Discussion

Mods and contribution Discussion This forum is only for discussion of modding phpLD. For specific mod releases, please see the appropriate forum.

Closed Thread
 
topic widgets
Old 09-14-2005   #1
David
Administrator
phpLD Administrator
Supporter
 
David's Avatar
 
Join Date: Jan 2005
Posts: 12,325
Default [Suggest Category] Mod

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.

Demo: {redirected link removed}
(click on 'Suggest Category' menu link)

Download: http://www.monster-submit.com/phpld/


To download this and other VS mods, please go here : VS phpLD Mods

Last edited by David; 03-22-2008 at 05:56 AM.
David is offline  
Old 09-14-2005   #2
VSDan
Supporter
Moderator
 
VSDan's Avatar
 
Join Date: Sep 2005
Location: Vancouver, BC, Canada
Posts: 1,184
Default Re: Suggest a Category Mod

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
monster-submit.com
VSDan is offline  
Old 10-05-2005   #3
ksbhati
 
Join Date: Aug 2005
Posts: 42
Default

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
ksbhati is offline  
Old 10-08-2005   #4
tstaut
 
Join Date: Oct 2005
Posts: 2
Default Re: Suggest a Category Mod

I got it to autoaccept by going into the "categories" table in PHPMyAdmin and changing "STATUS" default from 1 to "2".

It worked.



Code:
Content visible to registered users only.
tstaut is offline  
Old 10-08-2005   #5
kickass
 
Join Date: Aug 2005
Location: Delaware Valley, PA
Posts: 221
Default

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.
kickass is offline  
Old 10-09-2005   #6
tstaut
 
Join Date: Oct 2005
Posts: 2
Default

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?
tstaut is offline  
Old 10-25-2005   #7
Bill
Mentor
 
Bill's Avatar
 
Join Date: Aug 2005
Location: New Jersey
Posts: 331
Default

Code:
Content visible to registered users only.

Im also running into this same error.
Bill is offline  
Old 10-26-2005   #8
VSDan
Supporter
Moderator
 
VSDan's Avatar
 
Join Date: Sep 2005
Location: Vancouver, BC, Canada
Posts: 1,184
Default

Try v1.10 of the mod. Fixes title_url issue, and allows person to provide description.
__________________
Dan

phpLD Mods :: phpLD_Vault
Webmaster Resources Directory
phpLD_Vault Support

IMPORTANT NOTE:
phpLD_Vault Support not handled in this forum AND not via PM here. Click on link above for support. NO exceptions!
VSDan is offline  
Old 10-26-2005   #9
vkaryl
 
Join Date: Aug 2005
Posts: 260
Default

Thanks Dan. Kinda been waiting for this last tweak-fix....
__________________
Directory Scripts
Rock Template
vkaryl is offline  
Old 10-26-2005   #10
oneant
 
Join Date: Oct 2005
Posts: 6
Default

hi nice mod. thank you for sharing this.

just one little question. is it possible for the admin to approve the submitted categories before posting it goes live?

i am submitting categories as anonymous and it gets automatically added to the directory.
oneant is offline  
Old 10-26-2005   #11
VSDan
Supporter
Moderator
 
VSDan's Avatar
 
Join Date: Sep 2005
Location: Vancouver, BC, Canada
Posts: 1,184
Default

Code:
Content visible to registered users only.
I believe that is an existing phpLD issue, that occurs even if add new category via admin. I cannot recall my edits, but you need to edit main.php by adding WHERE STATUS=2 to some of the SQL statements.
__________________
Dan

phpLD Mods :: phpLD_Vault
Webmaster Resources Directory
phpLD_Vault Support

IMPORTANT NOTE:
phpLD_Vault Support not handled in this forum AND not via PM here. Click on link above for support. NO exceptions!
VSDan is offline  
Old 10-26-2005   #12
Bill
Mentor
 
Bill's Avatar
 
Join Date: Aug 2005
Location: New Jersey
Posts: 331
Default

Code:
Content visible to registered users only.


Just tested it out and it seems to be working fine! Thanks.
Bill is offline  
Old 11-04-2005   #13
bobby9101
 
bobby9101's Avatar
 
Join Date: Sep 2005
Posts: 677
Default

sorry for being a n00b
but when i opened it i found that it was never called.
should i add
Code:
Content visible to registered users only.
in the top_bar.tpl file?
__________________
Please check your sig links

Last edited by David; 08-21-2008 at 04:25 AM.
bobby9101 is offline  
Old 11-05-2005   #14
VSDan
Supporter
Moderator
 
VSDan's Avatar
 
Join Date: Sep 2005
Location: Vancouver, BC, Canada
Posts: 1,184
Default

Not a problem, explained in attached readme file. However, you have it right =)
__________________
Dan

phpLD Mods :: phpLD_Vault
Webmaster Resources Directory
phpLD_Vault Support

IMPORTANT NOTE:
phpLD_Vault Support not handled in this forum AND not via PM here. Click on link above for support. NO exceptions!
VSDan is offline  
Old 11-06-2005   #15
bobby9101
 
bobby9101's Avatar
 
Join Date: Sep 2005
Posts: 677
Default

yeah, the first time i got it it didnt have a readme so i downladed again and it worked
__________________
Please check your sig links
bobby9101 is offline  
Old 12-08-2005   #16
Nictech
 
Join Date: Dec 2005
Location: New Brunswick, Canada
Posts: 7
Default

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?
Nictech is offline  
Old 12-09-2005   #17
VSDan
Supporter
Moderator
 
VSDan's Avatar
 
Join Date: Sep 2005
Location: Vancouver, BC, Canada
Posts: 1,184
Default

Try this. Open suggest.php and find:

Code:
Content visible to registered users only.
and afterwards add:

Code:
Content visible to registered users only.
__________________
Dan

phpLD Mods :: phpLD_Vault
Webmaster Resources Directory
phpLD_Vault Support

IMPORTANT NOTE:
phpLD_Vault Support not handled in this forum AND not via PM here. Click on link above for support. NO exceptions!
VSDan is offline  
Old 12-09-2005   #18
Nictech
 
Join Date: Dec 2005
Location: New Brunswick, Canada
Posts: 7
Default

Bingo!

Thanks VSDan, works perfectly.
Nictech is offline  
Old 12-09-2005   #19
FB
 
Join Date: Dec 2005
Location: Stevens Point, WI
Posts: 72
Default

vdan...nice little mod!

It was working fine in the original template, but when I switched templates it put the input box to the right of the header.

you can view it here. The template maker suggested I ask you first.

{old test url removed}
Thanks for any help.

Kevin

Last edited by David; 03-22-2008 at 05:57 AM.
FB is offline  
Old 12-09-2005   #20
VSDan
Supporter
Moderator
 
VSDan's Avatar
 
Join Date: Sep 2005
Location: Vancouver, BC, Canada
Posts: 1,184
Default

Hi Kevin:

I had a look at your site, and do not see a problem. Am I missing something?
__________________
Dan

phpLD Mods :: phpLD_Vault
Webmaster Resources Directory
phpLD_Vault Support

IMPORTANT NOTE:
phpLD_Vault Support not handled in this forum AND not via PM here. Click on link above for support. NO exceptions!
VSDan is offline  
Closed Thread

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
topic widgets



All times are GMT +1. The time now is 05:36 PM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.