I have a questions, right now I have a PHP2 directory, I know alot of directories the way their directory is laid out you have to browse to the category before you can submit, mine you can go directly to submit.php page and submit your site. Is there a way I can make it so people have to browse to their category before submitting, Or will I need to change the whole template?
Sorry not heard of that one, do you mean phpLD? Either way, it shouldn't be that difficult. Assuming you already have links on your category page pointing to your submit page, they should look something like: submit.php?id=3 submit.php?id=4 submit.php?id=5 etc So all you have to do is perform a check on the id value. If the id is present then the user has been to a category first, if no id, then display a different page telling them to browse to a category. HTH
I think it would take some custom coding on the submit page to make sure a category ID was passed along. submit.php?c=700 If not inform them, they must select a category first.
if you mean you are using phpld then there is a mod about that wont allow submissions unless a category has been selected
you can get the closed top level cat mod from DP member Dargre http://www.linkforever.net/pld_mods.php
Im not exactly sure if that works for what I want.. Would it be similar to http://www.directory-submit.info/? Where you click on suggest link and it says category is locked.. Would I have to change anything else in my directory layout?
Here is a better example: http://www.888dir.com/submit.php.. Now its similar to my directory but it makes the user browse to the category instead of using the dropdown box. So does anyone know how to setup a directory to work this way?
It's preety easy: in submit.tpl after: {strip} put this: {if empty($CATEGORY_ID) or $CATEGORY_ID eq 0} Please select most appropriate category to submit your link! {else} Code (markup): then at the end before: {/strip} or {include file="footer.tpl"} (depending what is first) put this: {/if} Code (markup): Of course feel free to change info text and style - D
Thanks alot! that was really easy and worked.. Now if someone tries to go directly to the submit page from the homepage they get that error. but when going to a category and then hit submit it will work. Im sure this will piss off alot of lazy people, but im trying to filter out some of the submissions from some people.
I think this works somewhat but not completely, what code can I insert so I can submit from the subpage and it will show submit.php?c=1. Because I dont have this right now The submit doesnt always work and sometimes asks to browse to the category after submitting from a subpage.
Maybe try this from: {if empty($CATEGORY_ID) or $CATEGORY_ID eq 0} to: {if (empty($CATEGORY_ID) or !isset(CATEGORY_ID)) or $CATEGORY_ID eq 0} just a guess here, so nothing definitive.
no that didnt work.. if im at http://www.fesu.net/index.php?c=75 and i go to click submit link i want it to say submit.php?c=75.. Ive seen some directories similar to mine like this but not sure how to get it done.