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.

Suggest me phpLD MOD

Discussion in 'Directories' started by selvam_cbe, Feb 3, 2008.

  1. #1
    If anyone can suggest me phpLD MOD to avoid submit the deep and sub pages ??:mad:
     
    selvam_cbe, Feb 3, 2008 IP
  2. pipes

    pipes Prominent Member

    Messages:
    12,766
    Likes Received:
    958
    Best Answers:
    0
    Trophy Points:
    360
    #2
    Hmm im trying to remember if one exists, theres that many mods out there, maybe if it doesn't exist already you could always get it coded cheaply.
     
    pipes, Feb 3, 2008 IP
  3. selvam_cbe

    selvam_cbe Peon

    Messages:
    181
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I had tried to search in Big G...But I did't Get any MOD for my web directories to protect from sub pages submission...
     
    selvam_cbe, Feb 3, 2008 IP
  4. dargre

    dargre Peon

    Messages:
    1,007
    Likes Received:
    161
    Best Answers:
    0
    Trophy Points:
    0
    #4
    if you need it to be automatic:
    In file submit.php find line:
       if (strlen (trim ($data['URL'])) > 0 && !preg_match ('#^http[s]?:\/\/#i', $data['URL']))
          $data['URL'] = "http://".$data['URL'];
    Code (markup):
    change it to:
       if (strlen (trim ($data['URL'])) > 0) {
    	  $data['URL'] = parse_url($data['URL'], PHP_URL_HOST);
    	  if(!preg_match ('#^http[s]?:\/\/#i', $data['URL']))
            $data['URL'] = "http://".$data['URL'];
       }
    Code (markup):
    If you wish rather to display error for incorrect URL on submit page - require little bit more code (5 minutes). :)

    - D.
     
    dargre, Feb 3, 2008 IP
    MOG likes this.
  5. vic_msn

    vic_msn Well-Known Member

    Messages:
    2,233
    Likes Received:
    125
    Best Answers:
    0
    Trophy Points:
    155
    #5
    sorry for the off topic //
    hi selvam... nice to see you in DP.. Hope u got my email .Look at my location;)
     
    vic_msn, Feb 3, 2008 IP
  6. MOG

    MOG Well-Known Member

    Messages:
    2,219
    Likes Received:
    163
    Best Answers:
    0
    Trophy Points:
    180
    #6
    Great Post! thanks

    by the way any link to the rest of the code to display an incorrect URL message?

    thanks!

    MOG
     
    MOG, Feb 3, 2008 IP