Pligg 1 RC4
RSS Importer 0.9
I'm using the RSS import for youtube videos and it works great. I do a series of searches based on a specific keyword. However, sometimes not all of the videos are relevant, so I want to remove them from the site when they show up and tidy up my site by only leaving the relevant content. Problem is, when I discard the link, it comes back next time RSS importer runs. So, what would be the best solution to fix this so that the video doesn't appear but the RSS importer still knows not to import it - it's still somewhere in the searchable database against what the RSS importer is grabbing (i.e. it recognizes the url so it skips it)?
I've seen people talk on the forums of using google reader to approve the stories to be sent to the RSS importer before the importer sees them. I'd rather not do this as it seems too time consuming to even get my stories imported and published. I'd rather filter out unrelated articles after they're already published at my leisure.
The ban domain option is the best one, but I don't want to ban all of youtube, just the link.
Step 1:
In 2 places in linkadmin.php (in the admin directory), there's this code
Code:
$main_smarty->assign('banned_domain_url',get_base_url($link->link_url));
Code:
$main_smarty->assign('banned_domain_url',$link->link_url);
Problem #1:
Submitting a URL manually still causes the site to look at the base url in the local-antispam.txt file, not the whole url. It looks like I need to re-write the libs/link.php code, but I'm not sure where to change it. Any ideas?
Code:
function _scan_url()
{
$req = $this->_url;
$pos = strpos($req, '://');
$this->_protocol = strtolower(substr($req, 0, $pos));
$req = substr($req, $pos+3);
$pos = strpos($req, '/');
if($pos === false)
$pos = strlen($req);
$host = substr($req, 0, $pos);
if(strpos($host, ':') !== false)
{
list($this->_host, $this->_port) = explode(':', $host);
}
else
{
$this->_host = $host;
$this->_port = ($this->_protocol == 'https') ? 443 : 80;
}
$this->_uri = substr($req, $pos);
if($this->_uri == '')
$this->_uri = '/';
}
Then from there, I need to include a similar function into the RSS importer to scan local-antispam.txt for banned urls.
Problem #3:
After that, for an extra, I could add a button directly next to the link where the discard button is and make it so that this function of banning is easier than the 3 step process it currently is.
I'm gonna keep working on it and post my results. If anyone wants to chip in to help, that would be great too








Linear Mode



