
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?

![]() |
| | Thread Tools | Display Modes |
| |||
|
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? |
| |||
|
I still have not figured this out, I would be very grateful for any help. |
| ||||
|
How far back does the feed go? Does it stop anywhere? What's the feed url?
|
| |||
|
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 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;
} 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;
} Last edited by estudiolocal; 07-10-2009 at 04:18 AM. Reason: Organize the code |
![]() |
| 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 | 11 | 07-28-2011 03:32 PM |
| Pligg 1.0 > RSS Importer > replace special character | martinjunker | Questions and Comments | 2 | 03-31-2011 03:06 PM |
| The RSS Importer and Google Reader | deguello | Questions and Comments | 11 | 06-17-2010 05:27 PM |
| RSS Importer 0.9 HTML codes show up in description | Vann | Questions and Comments | 1 | 06-13-2010 06:23 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 |