May 4, 2011

How to parse as featured image this feed content ? | CyberSEO Pro | Support Forum

Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_TopicIcon
How to parse as featured image this feed content ?
Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 (0 votes) 
May 7, 2014
8:06 am
Avatar
superfaby
Member
Members
Forum Posts: 6
Member Since:
January 21, 2013
sp_UserOfflineSmall Offline

Hello

I'm trying add a featured image from this feed, but I don't know how to do :

<thumb>

     <large> URL IMAGE</large>

      <small>URL IMAGE</small>

</thumb>

 

Config :

Custom fiels :
(...)
thumb->thumb

Php code :

$post['custom_fields']['thumb'] = $post['custom_fields']['thumb'][0];

 

But it doesn't work.

Any idea ?

Thanks per advance.
regards

Fabien

May 7, 2014
8:49 am
Avatar
superfaby
Member
Members
Forum Posts: 6
Member Since:
January 21, 2013
sp_UserOfflineSmall Offline

arf, it's seems to be only    thumb->large

But in this this case : how it's work to get the first image ?

<images>

    <image format="225x169">Login to see this link;

    <image format="240x180">Login to see this link;

    <image format="300x225">Login to see this link;

     <image format="320x240">Login to see this link;

</images>

May 8, 2014
11:44 pm
Avatar
CyberSEO
Admin
Forum Posts: 3913
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline

It's really had to answer to your question without the actual XML feed URL.

May 9, 2014
2:22 am
Avatar
superfaby
Member
Members
Forum Posts: 6
Member Since:
January 21, 2013
sp_UserOfflineSmall Offline

Hello,

That's true, I'm Sorry :)

here is the feed :

Login to see this link

As you can see, it's easy to parse it but, only this part make me some difficulties :

< images >

  <image format="225x169">#url#</image>

</images>

Is it possible to get the 'image format="225x169" ' url ?

I have tried some combinaisons in the php code but it didn't work.

Thank you,
Regards
Fabien

May 9, 2014
2:43 am
Avatar
CyberSEO
Admin
Forum Posts: 3913
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline

In "Custom fields": image->image

In PHP code the image URL's will be stored as an array:

$post['custom_fields']['image'][0]
$post['custom_fields']['image'][1]
etc..

May 9, 2014
4:02 am
Avatar
superfaby
Member
Members
Forum Posts: 6
Member Since:
January 21, 2013
sp_UserOfflineSmall Offline

It's work !

Thank you very much :)

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 541

Currently Online:
24 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

ninja321: 84

s.baryshev.aoasp: 68

Freedom: 61

Pandermos: 54

MediFormatica: 49

B8europe: 48

Member Stats:

Guest Posters: 337

Members: 2819

Moderators: 0

Admins: 1

Forum Stats:

Groups: 1

Forums: 5

Topics: 1627

Posts: 8280

Newest Members:

sneakpeachagency, bkc.tessier, igor.buzaev, jeremyboucher, lthompson2709, MAC

Administrators: CyberSEO: 3913