1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Another phpLD Link Submit Problem Solved

Discussion in 'Directories' started by wsfarrell, Sep 12, 2007.

  1. #1
    I noticed recently that a couple of my directories were getting zero daily submissions (down from 40-50). When I tried to submit a link myself, I got an error message like "Unauthorized! Sorry, you don't have permission to view this page".

    I thought this might be related to the issue I brought up a couple of weeks ago, which could be fixed by renaming unauthorised.tpl (with an "s") to unauthorized.tpl (with a "z"), but this went deeper than that.

    After digging around the phpLD forums, I found a solution. The problem has to do with user-agents and referrers (which I don't pretend to understand), and can be fixed as follows:

    Edit submit.php and comment out the lines on check_post_rules, so this

    //Make an additional check if client is allowed to post/submit
    //[Spam] protection
    require_once 'include/check_post_rules.php';
    $post_rules_unauthorized = check_post_rules($_POST);

    becomes this

    //Make an additional check if client is allowed to post/submit
    //[Spam] protection
    //require_once 'include/check_post_rules.php';
    //$post_rules_unauthorized = check_post_rules($_POST);

    Note that this only eliminates the SECOND level of spam protection; the first level is left intact. Worked like a charm for me.

    Bill
     
    wsfarrell, Sep 12, 2007 IP
  2. madtay

    madtay Peon

    Messages:
    387
    Likes Received:
    46
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Thanks for sharing :)
     
    madtay, Sep 13, 2007 IP
  3. indyguidedotinfo

    indyguidedotinfo Notable Member

    Messages:
    3,254
    Likes Received:
    202
    Best Answers:
    0
    Trophy Points:
    245
    #3
    did anyone else ever have this problem? I have not yet seen it ' knock on wood '
     
    indyguidedotinfo, Sep 13, 2007 IP
  4. freelink4u

    freelink4u Banned

    Messages:
    276
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    thanks man you are a life savor..i was also facing same thing
     
    freelink4u, Sep 13, 2007 IP
  5. malcolm1

    malcolm1 Prominent Member

    Messages:
    7,148
    Likes Received:
    758
    Best Answers:
    0
    Trophy Points:
    310
    #5
    Hello...

    many thx for this fix as a few have contacted me befoer regarding this type of error..

    thx
    malcolm
     
    malcolm1, Sep 13, 2007 IP
  6. jg123

    jg123 Notable Member

    Messages:
    6,006
    Likes Received:
    387
    Best Answers:
    0
    Trophy Points:
    295
    #6
    I have had this error before too, but I don't really understand what is causing it, can you explain that part please?
     
    jg123, Sep 13, 2007 IP