Results 1 to 7 of 7
  1. #1
    Pligg Donor fingerprn's Avatar
    Joined
    Jul 2007
    Posts
    123

    A different kind of "blocked URL" question

    I'm not sure if you've noticed, but a small number of URLs just pop up as being blocked, even though Digg takes them without any problem. For example, try to submit anything from the news site Arizona Local News - Phoenix Arizona News - azcentral.com and you'll get the invalid or blocked URL message.

    I'd like to modify the code so that Validate URL is set to true (so that I keep the title and trackback capturing features), but it doesn't give me an error if the URL is blocked.

    So far, I've figured out that I can get half of the job done by removing the following in submit.php

    Code:
    	check_actions('submit_validating_url',array("url" => $url,'linkres'=>&$linkres));
    	if(!$linkres->valid) {
    		$main_smarty->assign('submit_error', 'invalidurl');
    		$main_smarty->assign('tpl_center', $the_template . '/submit_errors');
    		
    		$main_smarty->display($the_template . '/pligg.tpl');
    		return;
    	}

    However, when I submit the link of a blocked story, it updates the link in the database as "1" instead of the actual link (even though it shows up correctly in Submit Step 2).

    It looks like I'm missing something here.

    Any ideas?

  2. #2
    Pligg Donor fingerprn's Avatar
    Joined
    Jul 2007
    Posts
    123
    Still seeking someone's wisdom.

  3. #3
    New Pligger GeneralLedger's Avatar
    Joined
    Jan 2008
    Posts
    18
    I am having the same problem... for some reason my pligg install blocks anything from bloomberg.com

  4. #4
    Pligg Donor fingerprn's Avatar
    Joined
    Jul 2007
    Posts
    123
    Still hoping for enlightenment. Any ideas from anyone on this issue?

  5. #5
    New Pligger digduality's Avatar
    Joined
    Oct 2007
    Posts
    3
    same issue here with youtube videos and quite a bit of stuff from maxim magazine.

  6. #6
    Pligg Donor fingerprn's Avatar
    Joined
    Jul 2007
    Posts
    123
    I figured it out. Go to libs/link.php and comment out the following:

    if($xxx == "BADURL") {
    $this->valid = false; return;
    }

    I haven't done extensive testing, so let me know if you discover that this causes new problems.

    NOTE: You do not have to remove the code from submit.php that I mentioned in my original post.

  7. #7
    New Pligger maxi's Avatar
    Joined
    Apr 2008
    Posts
    8

    Exclamation Resolved Problem with Invalid or Blocked URL

    Hi guys,

    Modify the "link.php" file (libs/link.php) on line 85.

    -------------------
    if($xxx == "BADURL") {
    $this->valid = false; return;
    -------------------

    Change false to true and it will work fine..

    Hope this help :smile:
    Bye.


    maxi...

Similar Threads

  1. The data.type "problem", "new" and "published" not shown
    By Valver in forum Questions & Comments
    Replies: 2
    Last Post: 09-29-2011, 04:36 AM
  2. basic question about "Votes Allowed from one IP"
    By RichonPligg in forum Questions & Comments
    Replies: 5
    Last Post: 03-07-2011, 07:54 AM
  3. Template "thestandard" & google "share_revenue" question !
    By sulong in forum Questions & Comments
    Replies: 3
    Last Post: 09-17-2009, 08:26 AM
  4. Replies: 1
    Last Post: 07-02-2008, 10:53 AM
  5. "URL is invalid or blocked" - how to allow blocked URLs?
    By jon in forum Questions & Comments
    Replies: 5
    Last Post: 05-18-2008, 10:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Donate to Pligg CMS Dreamhost Web Hosting Host Gator Web Hosting