Forum Replies Created

Viewing 15 replies - 1 through 15 (of 61 total)
  • Thread Starter peteduignan

    (@peteduignan)

    Happy that it works for you. Hopefully a few more people will try those mods if they are having autopost issues.

    Thread Starter peteduignan

    (@peteduignan)

    Great! And I hope you have a merry one too………………..

    Toni,

    In Export Feeds

    check the box to the right of
    Check to include all fields (title, URL, Category, User)

    (And I only know that because I had same export issue a while back!)

    Best…

    Pete

    Thread Starter peteduignan

    (@peteduignan)

    Yes during my testing, I found that I got a big burst of content also. That is because I was finally getting all those backlogged feed items processed.

    Then it seemed like I wasn’t getting very many but actually I was getting what I should be getting – i.e. it was processing per the options I had selected.

    That is a very good sign!

    Thread Starter peteduignan

    (@peteduignan)

    Thanks for testing it. Sorry to hear you had issues. No idea how those mods could cause that.

    My website is up and running well. I have had it down a few times over the last while because I was getting too many duplicates and not enough feed items published so it was looking stupid. I was busy with other work/life and didn’t have time to investigate fully.

    Since I implemented those changes in the last few days, I have had very few duplicates and lots of feed items being posted. (I do have some older duplicates that I am slowly getting rid of).

    If someone can point out any error(s) in the code/logic, please do so.

    Thanks for the feedback puzzl3d…

    Thread Starter peteduignan

    (@peteduignan)

    Ok here are the changes I made to import_posts.php. Would be interested to know if that improves the autoposting for anyone. Please test and see if it works. If it’s not correct, please let me know your correct code.

    (Note: the Line #s relate to the original code)

    Line 503
    changed from
    $feedlimit=$feedlimit+1; if($feedlimit>$maxposts) continue;
    to
    // $feedlimit=$feedlimit+1;
    if($feedlimit>$maxposts) continue;

    Line 592
    changed from
    $total = $total +1;
    to
    // $total = $total +1;

    Line 594
    changed from
    $thisLink=trim($items["mylink"]);
    to
    // $thisLink=trim($items["mylink"]);

    Lines 611 and 612
    changed from
    $thisLink = strip_qs_var_match('news.google.com',$thisLink,'url');
    $thisLink = strip_qs_var('bing.com',$thisLink,'tid');
    to
    $thisLink = strip_qs_var_match('news.google.com',$items["mylink"],'url');
    $thisLink = strip_qs_var('bing.com',$items["mylink"],'tid');

    Line 628 (only increment when creating a new post)
    inserted $total = $total +1; $feedlimit=$feedlimit+1;

    Happy testing!

    Pete

    Thread Starter peteduignan

    (@peteduignan)

    I think there are thousands of scenarios since everyone is running this plugin with different plugin options settings, different hardware, software, RSS feeds etc.

    One scenario many people seem to have in common is that they are not getting all their feed items published into the main database.

    This is a great plugin and quite complex. However like any piece of software there are always areas to improve.

    Actually there are (I believe) a few areas to fix.

    Import_feeds.php
    The totaling of items is happening before the fresh check and before checking if the feed item already exists. I believe it should only increment the total if a new feed item is created.

    Import_posts.php
    The totaling of items is happening before checking if the post already exists. I believe it needs to move to after checking $mypostids. There is also a problem with the trim – see info in this thread.

    My site is https://www.whiddy.com. Since I made these changes, the posting has definitely improved and I am now getting very few duplicates.

    I only know relatively basic php and WordPress, but if you work thru the logic in those php files, I believe they will be improved by implementing these changes.

    Am hoping someone who is knowledgeable in php and WordPress can test this further and if it is works, to provide updated php files to help out everyone else. Or if Allen come out of hibernation, maybe he can tell me I am crazy or I am on the right track! Either way I am just trying to make the plugin better as I want to keep using it.

    Pete

    Thread Starter peteduignan

    (@peteduignan)

    Suggest you add some echo statements to see what is actually happening.

    My apologies. Forgot to mention…

    I commented out these lines
    ‘if($feedlimit>$maxposts) continue;’
    and
    ‘if ($total>$maxperfetch) break;’

    because for now I am more interested in getting the EVERY NEW feed item posted, than worrying about how many are being posted each time the program runs.

    In addition to that, I made another change for the reason below so that when I do go back to checking on total new posts, it will be correct.

    I moved this line
    ‘$total = $total +1;’
    under
    ‘if ((empty( $mypostids ) && $mypostids !== false) ){‘
    because if the post already exists then I want to keep going down the array until it finds one that doesn’t exist. THEN I want to increment the total.

    Hope I am making sense!

    Pete

    Thread Starter peteduignan

    (@peteduignan)

    Hi aliogul, my apologies for the delay in responding.

    No. I have not had time to track this down. Just busy with other stuff and had to put this on hold as it is not a showstopper for me.

    Overall I love this plugin and it is the backbone of my news and entertainment website. Have over 300 feeds and for the most part, the plugin just works like a charm!

    Let me know if you have any update on this. Thanks.

    Yes I had a similar request recently. Would be great if Allen would consider it if more people are interested.
    Also in Feed List, would love to have the option to be able to change “Default status of posts” per feed. e.g. currently in Autopost, mine is set to “Publish”. But I would like to set some feeds to be “Draft” so I can review their posts before publishing (or not) on the website.

    In addition to this request, would be great if in Autopost I could assign a plugin category to more than one wp category. Actually I can do this currently but only the first assignment gets populated. I feel that is because of the url being the same.

    Thread Starter peteduignan

    (@peteduignan)

    Hello,

    I figured it out (I think!!!) without changing code.

    Removed the 301 redirects from my host cPanel.

    Added 301 redirects in WordPress SEO (I guess that means I won’t be moving from this plugin for a while!).

    Set my Home pages to noindex as I don’t use them in my menus.

    Not sure if this will beat me up in the search engines but will figure that out as I proceed.

    Pete

    Thread Starter peteduignan

    (@peteduignan)

    Hi,

    Just wondering if anyone else had a similar issue and figured out a way around it?

    I’ve tried redirect and some similar plugins but they didn’t help.

    What I am trying to do is work out a way for Polylang so that instead of
    hreflang=”es” href=”https://whiddy.com/es/”
    that it points to
    hreflang=”es” href=”https://whiddy.com/es/category/es-us/portada/”

    Unfortunately my php and js skill level is not anywhere near being able to code it.

    Thanks so much for reviewing this topic.

    Pete

    Thread Starter peteduignan

    (@peteduignan)

    Got it. Thanks for explaining.

    Thread Starter peteduignan

    (@peteduignan)

    Yes. I saw that but believe me it makes more sense to you that it does to me!!! Looks good when looking at it in Simplepie though.

    Is there a particular reason to use Simplepie in the diagnostics and Feedvalidator in the feed import?

Viewing 15 replies - 1 through 15 (of 61 total)