RSS Importer - Stopping Old Enteries

Register an Account
Pligg Chat Room
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-24-2009, 07:40 AM
Donor
Pligg Version: 1.0
Pligg Template: magazeen
Donation Level 2 
 
Join Date: Mar 2009
Location: London
Posts: 90
This is was at the end of an OLD thread. I think it deserves its own thread.

What script and line prints out "Title Match, skipping" in the RSS import module?

I wish to use an "exit;" at the loop or something so that the importer doesn't import any old stuff. This will work right?
Reply With Quote
  #2 (permalink)  
Old 07-09-2009, 08:31 PM
Donor
Pligg Version: 1.0
Pligg Template: magazeen
 
Join Date: Mar 2009
Location: London
Posts: 90
I still have not figured this out, I would be very grateful for any help.
Reply With Quote
  #3 (permalink)  
Old 07-09-2009, 08:49 PM
chuckroast's Avatar
Pligg Developer/Coder/Designer
Pligg Version: SVN
Pligg Template: Galleria
 
Join Date: Jun 2006
Location: PA
Posts: 3,759
How far back does the feed go? Does it stop anywhere? What's the feed url?


Get the full Pligg Module Pack today.

Anyone want the domain MyHubb.com ? Bid Now!




Reply With Quote
  #4 (permalink)  
Old 07-10-2009, 04:15 AM
New Pligger
 
Join Date: Jul 2009
Posts: 1
For version 1.0 of pligg and RSS Importer 0.9

You need to edit the file:
Code:
/modules/rss_import/templates/import_fields_center.tpl
Take a look on lines from 135 to 148:
ORIGINAL IS:
Code:
 if($feed->feed_title_dupe == 0 && $skipthis == 0){  // 0 means don't allow, 1 means allow
if($linkres->duplicates_title($linkres->title) > 0) {
      	//echo "Title Match, skipping: " . $linkres->title . "<HR>";
	echo '<span style="color:#fc0000;">Title Match, skipping</span> <hr>';
      	$skipthis = 1;
 }
}
						
if($feed->feed_url_dupe == 0 && $linkres->url != "" && $skipthis == 0){  // 0 means don't allow, 1 means allow
if($linkres->duplicates($linkres->url) > 0) {
     	//echo "URL Match, skipping: " . $linkres->title . "<HR>";
      	echo '<span style="color:#fc0000;">URL Match, skipping</span> <hr>';
	      	$skipthis = 1;
}
You need to modify to:
Modified code:
Code:
if($feed->feed_title_dupe == 0 && $skipthis == 0){  // 0 means don't allow, 1 means allow
if($linkres->duplicates_title($linkres->title) > 0) {
    	//echo "Title Match, skipping: " . $linkres->title . "<HR>";
	echo '<span style="color:#fc0000;">Title Match, Stoping this ****</span> <hr>';
        	break;
 }
}
						
if($feed->feed_url_dupe == 0 && $linkres->url != "" && $skipthis == 0){  // 0 means don't allow, 1 means allow
if($linkres->duplicates($linkres->url) > 0) {
     	//echo "URL Match, skipping: " . $linkres->title . "<HR>";
      	echo '<span style="color:#fc0000;">URL Match, Stoping this ****</span> <hr>';
      	break;
}
And the import process will stop when a url or tittle match.

Last edited by estudiolocal; 07-10-2009 at 04:18 AM. Reason: Organize the code
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
RSS Importer - Interesting Dilemma with banning/discard- and solution/mod project megaplatinum Questions and Comments 7 10-05-2009 11:14 AM
The RSS Importer and Google Reader deguello Questions and Comments 10 08-08-2009 03:45 PM
Pligg 1.0 > RSS Importer > replace special character martinjunker Questions and Comments 0 05-29-2009 10:52 AM
RSS Importer 0.9 HTML codes show up in description Vann Questions and Comments 0 05-15-2009 10:38 PM
Modules and RSS importer do not work after upgrade to 9.6 from 9.5 altinvest Questions and Comments 0 06-04-2007 02:20 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development