Quick PHPLD Question

Discussion in 'Link Development' started by MattUK, Jun 19, 2006.

  1. #1
    Can you set up PHPLD to automatically approve and publish links when they are submitted?
    If not does anyone know of any software that can do this?
     
    MattUK, Jun 19, 2006 IP
  2. mcfox

    mcfox Wind Maker

    Messages:
    7,526
    Likes Received:
    716
    Best Answers:
    0
    Trophy Points:
    360
    #2
    Eek. You really sure you would want to do this? It would instantly turn your directory into a free-for-all.
     
    mcfox, Jun 19, 2006 IP
  3. MattUK

    MattUK Notable Member

    Messages:
    6,950
    Likes Received:
    377
    Best Answers:
    0
    Trophy Points:
    275
    #3
    Yeah, it's not for the publics use though. If for something pretty specific.
     
    MattUK, Jun 19, 2006 IP
  4. SiteExpress

    SiteExpress Well-Known Member

    Messages:
    1,355
    Likes Received:
    153
    Best Answers:
    0
    Trophy Points:
    155
    #4
    This could be done, but you would need to contact David for info on how to make the modification.
     
    SiteExpress, Jun 19, 2006 IP
  5. MattUK

    MattUK Notable Member

    Messages:
    6,950
    Likes Received:
    377
    Best Answers:
    0
    Trophy Points:
    275
    #5
    Are that any that has the option built-in?
     
    MattUK, Jun 19, 2006 IP
  6. Tim_Myth

    Tim_Myth Peon

    Messages:
    741
    Likes Received:
    52
    Best Answers:
    0
    Trophy Points:
    0
    #6
    If it's not for public consumption, why bother categorizing? Are your private users really going to submit so many links that you need a directory to handle it? Why not use a simple FFA script?
     
    Tim_Myth, Jun 20, 2006 IP
  7. MattUK

    MattUK Notable Member

    Messages:
    6,950
    Likes Received:
    377
    Best Answers:
    0
    Trophy Points:
    275
    #7
    It's for a large number of users but on a closed network.
     
    MattUK, Jun 20, 2006 IP
  8. dynn

    dynn Notable Member

    Messages:
    5,047
    Likes Received:
    238
    Best Answers:
    0
    Trophy Points:
    253
    #8
    open the posibility to spam...
     
    dynn, Jun 20, 2006 IP
  9. droolingmnky

    droolingmnky Well-Known Member

    Messages:
    148
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    110
    #9
    I don't think it would be too difficult to have it automagically approve the sites, I haven't taken a look but I'm willing to bet you can easily change the sql statement in submit.php.
     
    droolingmnky, Jun 20, 2006 IP
  10. Tim_Myth

    Tim_Myth Peon

    Messages:
    741
    Likes Received:
    52
    Best Answers:
    0
    Trophy Points:
    0
    #10
    I know you can approve all pending links in the admin panel using Validate Links, but I think to get the link to auto approve would take some code modifications.

    Why not install a wiki? Do you need to validate the links every so often?
     
    Tim_Myth, Jun 20, 2006 IP
    MattUK likes this.
  11. MattUK

    MattUK Notable Member

    Messages:
    6,950
    Likes Received:
    377
    Best Answers:
    0
    Trophy Points:
    275
    #11
    Aaah, that might be worth looking at, thanks :)
     
    MattUK, Jun 20, 2006 IP
  12. Tim_Myth

    Tim_Myth Peon

    Messages:
    741
    Likes Received:
    52
    Best Answers:
    0
    Trophy Points:
    0
    #12
    I'm a very lazy developer. I'd much rather use off-the-shelf technology that mostly meets my needs than develop the exact thing that meets my needs. :D

    Here is where you can modify submit.php in phpld to automatically accept all links submitted (turns out I was right the first time I just fat fingered the keyboard!):
    } else {
    	SmartyValidate :: connect($tpl);
    	$data = get_table_data('link');
    -->	$data['STATUS'] = [color=red]2[/color];
    	$data['IPADDRESS'] = get_client_ip();
    -->	$data['VALID'] = [color=red]2[/color];
    	$data['LINK_TYPE'] = $link_type;
    Code (markup):
    I tested this, and it works.
     
    Tim_Myth, Jun 20, 2006 IP
  13. MattUK

    MattUK Notable Member

    Messages:
    6,950
    Likes Received:
    377
    Best Answers:
    0
    Trophy Points:
    275
    #13
    Thanks Tim, you're a Legend, if I hadn't already repped you I'd do it again!
     
    MattUK, Jun 20, 2006 IP