Change Directory to limit submission rate

Discussion in 'Directories' started by daones, Nov 22, 2007.

  1. #1
    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?
     
    daones, Nov 22, 2007 IP
  2. SilkySmooth

    SilkySmooth Well-Known Member

    Messages:
    1,583
    Likes Received:
    269
    Best Answers:
    0
    Trophy Points:
    180
    #2
    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
     
    SilkySmooth, Nov 22, 2007 IP
  3. floppydrivez

    floppydrivez Peon

    Messages:
    453
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    0
    #3
    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.
     
    floppydrivez, Nov 22, 2007 IP
  4. choice

    choice Prominent Member

    Messages:
    5,444
    Likes Received:
    490
    Best Answers:
    0
    Trophy Points:
    350
    Digital Goods:
    2
    #4
    if you mean you are using phpld then there is a mod about that wont allow submissions unless a category has been selected
     
    choice, Nov 22, 2007 IP
  5. daones

    daones Well-Known Member

    Messages:
    1,151
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    120
    #5
    Choice do you have more information on that mod?
     
    daones, Nov 22, 2007 IP
  6. choice

    choice Prominent Member

    Messages:
    5,444
    Likes Received:
    490
    Best Answers:
    0
    Trophy Points:
    350
    Digital Goods:
    2
    #6
    choice, Nov 22, 2007 IP
  7. daones

    daones Well-Known Member

    Messages:
    1,151
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    120
    #7
    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?
     
    daones, Nov 22, 2007 IP
  8. daones

    daones Well-Known Member

    Messages:
    1,151
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    120
    #8
    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?
     
    daones, Nov 24, 2007 IP
  9. dargre

    dargre Peon

    Messages:
    1,007
    Likes Received:
    161
    Best Answers:
    0
    Trophy Points:
    0
    #9
    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
     
    dargre, Nov 24, 2007 IP
    daones likes this.
  10. daones

    daones Well-Known Member

    Messages:
    1,151
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    120
    #10
    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.
     
    daones, Nov 24, 2007 IP
  11. daones

    daones Well-Known Member

    Messages:
    1,151
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    120
    #11
    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.
     
    daones, Nov 28, 2007 IP
  12. an0n

    an0n Prominent Member

    Messages:
    5,688
    Likes Received:
    915
    Best Answers:
    0
    Trophy Points:
    360
    #12
    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.
     
    an0n, Nov 28, 2007 IP
  13. daones

    daones Well-Known Member

    Messages:
    1,151
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    120
    #13
    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.
     
    daones, Nov 29, 2007 IP