Autoblog images on excerpts use

Hello! I want to use excerpts mode with 30 words but i need to pulling the 1rst available image of rss! Can i have some help with that? i use it on subdomain right know to test it before start the original website!

  • PC
    • WPMU DEV Initiate

    Hiya,

    Greetings and thanks for posting on the forums.

    The plugin supports the featured image import out of the box.

    You can activate the Featured image addon via the addons settings in the plugin.

    After that once creating the feed, you will need to select the respective settings.

    Did you test that out yet ?

    Screenshot attached.

    I hope that helps. Please feel free to ask if you have more questions on the same.

    Cheers
    PC

  • PC
    • WPMU DEV Initiate

    Hiya,

    Thanks for writing back.

    While this would require custom modification to the plugin to achieve what you want, I will try to get some direction from our lead developer on the same.

    I have sent him a note and he should make his way here sooner than later.

    Cheers, PC

  • Barry
    • DEV MAN’s Mascot

    Can you deactivate the image import addon that you have activated, activate the debug image import add on and then put your email address in the area at the bottom of the feed edit form.

    You should then start receiving emails when the feed is processed - can you then post up one of those for us so we can see what your system is processing?

  • psychoz
    • New Recruit

    This is what my system processing
    "Hello, I am processing the post 1141

    ?????:

    - 3 ???????? ????? (??? ????? ????)

    - 250 ????????? ???????? ?????

    - 250 ????????? ???? ??????

    - 2 ????????

    - 2 ?? 3 ???????? ????? ??? ????????? ???

    ???????? ??????????? ».
    "

    This is on excerpt use! Maybe you want and on full post?

  • psychoz
    • New Recruit

    This is on full post

    <div dir="ltr" style="text-align: left">
    <div style="text-align: center">
    <br></div>
    <div class="separator" style="clear: both;text-align: center">
    <a href="http://2.bp.blogspot.com/-MKY9LXNHPDg/UXK4lBGUzNI/AAAAAAAAMEY/GodrfKd97tc/s1600/ergolavoi.jpg" style="margin-left: 1em;margin-right: 1em"><img border="0" height="240" src="http://2.bp.blogspot.com/-MKY9LXNHPDg/UXK4lBGUzNI/AAAAAAAAMEY/GodrfKd97tc/s320/ergolavoi.jpg" width="320"></a></div>
    <div style="text-align: center">
    <br></div>
    <div style="text-align: center">
    <b>?????:</b></div>
    <div style="text-align: center">
    <br></div>
    <div style="text-align: center">
    - 3 ???????? ????? (??? ????? ????)</div>
    <div style="text-align: center">
    - 250 ????????? ???????? ?????</div>
    <div style="text-align: center">
    - 250 ????????? ???? ??????</div>
    <div style="text-align: center">
    - 2 ????????</div>
    <div style="text-align: center">
    - 2 ?? 3 ???????? ????? ??? ????????? ???</div>
    <div style="text-align: center">
    <br></div>
    <div style="text-align: center">
    </div>
    </div><a href="http://www.sintagesgiagias.info/2013/04/blog-post_4133.html#more">???????? ??????????? »</a><img src="http://feeds.feedburner.com/~r/sintagestisgiagias2/~4/Z1NSWDzDJoQ" height="1" width="1" />
    
    I found the following images - Array
    (
        [0] => http://2.bp.blogspot.com/-MKY9LXNHPDg/UXK4lBGUzNI/AAAAAAAAMEY/GodrfKd97tc/s320/ergolavoi.jpg
        [1] => http://feeds.feedburner.com/~r/sintagestisgiagias2/~4/Z1NSWDzDJoQ
    )
    
    I am going to try to grab the image - http://2.bp.blogspot.com/-MKY9LXNHPDg/UXK4lBGUzNI/AAAAAAAAMEY/GodrfKd97tc/s320/ergolavoi.jpg
    Successfully grabbed image - http://2.bp.blogspot.com/-MKY9LXNHPDg/UXK4lBGUzNI/AAAAAAAAMEY/GodrfKd97tc/s320/ergolavoi.jpg
  • psychoz
    • New Recruit

    ok just found why this happened!

    classes/autoblogprocess.php line 747-8

    Create an excerpt
    $post_content = strip_tags($post_content);

    i change this to

    Create an excerpt
    $post_content =html_entity_decode($post_content);

    the only "problem" know is that the plugin count and the words like "div" etc so if you want to excerpt 20 word you have to add something like 30-35!

  • Barry
    • DEV MAN’s Mascot

    the only "problem" know is that the plugin count and the words like "div" etc so if you want to excerpt 20 word you have to add something like 30-35!

    Yeah, that's why it strips the tags from the content first :slight_smile: What needs to happen is for the image processing to take place *before* the excerpt is created - that adds a couple of difficulties, but I'm contemplating them and should be able to come up with something - I may have to run it through a beta version first though so it can be tested on as many setups as possible.

  • psychoz
    • New Recruit

    Yeah but if strips the tags the addon cant find this

    preg_match_all('|<img.*?src=[\'"](.*?)[\'"].*?>|i', $content, $matches);

    so its ok for me at the moment! i will try and if i find something else i will inform you in this case :slight_smile:

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.