May 4, 2011

XML tag values to the custom field | 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_Related Related Topics sp_TopicIcon
XML tag values to the custom field
Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 (0 votes) 
February 14, 2019
7:21 pm
Avatar
B8europe
Member
Members
Forum Posts: 48
Member Since:
February 16, 2016
sp_UserOfflineSmall Offline

Hi, I would like to combine two XML values to one custom field. Is that possible an if so how could that be done?

Login to see this link

and

p0019_s0108_0009_xeena_mae_promo/fhg_video1/trailerfhg.jpg

combined to Login to see this link

and send to the custom field "thumb"

February 15, 2019
3:43 am
Avatar
CyberSEO
Admin
Forum Posts: 4059
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline

This PHP code will do the trick:

Login to see the code

Just replace xml_tag1 and xml_tag2 with the appropriate XML tag names.

February 15, 2019
2:34 pm
Avatar
B8europe
Member
Members
Forum Posts: 48
Member Since:
February 16, 2016
sp_UserOfflineSmall Offline

admin said
This PHP code will do the trick:

Login to see the code

$post['custom_fields']['thumb'] = $xml_tags['xml_tag1']['val'] . $xml_tags['xml_tag2']['val'];

Just replace xml_tag1 and xml_tag2 with the appropriate XML tag names.  

Hi, As always thanks for you fast response.

The solution almost worked. The thing is that the fields are not "connected". There is a line enter in the custom field.

e.g:

"http://www.platinumfetish.com/…..019_s0108/

p0019_s0108_0009_xeena_mae_promo/fhg_video1/trailerfhg.jpg"

in stead of "http://www.platinumfetish.com/…..019_s0108/p0019_s0108_0009_xeena_mae_promo/fhg_video1/trailerfhg.jpg"

February 15, 2019
2:39 pm
Avatar
CyberSEO
Admin
Forum Posts: 4059
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline

In this case it should be done like this:

Login to see the code

February 15, 2019
3:04 pm
Avatar
B8europe
Member
Members
Forum Posts: 48
Member Since:
February 16, 2016
sp_UserOfflineSmall Offline

Worked, I'm now also able to set the featured Image

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 541

Currently Online:
14 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

ninja321: 86

s.baryshev.aoasp: 68

Freedom: 61

harboot: 56

Pandermos: 54

MediFormatica: 49

Member Stats:

Guest Posters: 337

Members: 2940

Moderators: 0

Admins: 1

Forum Stats:

Groups: 1

Forums: 5

Topics: 1685

Posts: 8601

Newest Members:

sdmactech, dungdn.msn, a6479501, ee.ramos.n, info.atpltraining, pay2hostweb

Administrators: CyberSEO: 4059