GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Webmaster Q & Fuckin' A (https://gfy.com/forumdisplay.php?f=27)
-   -   Business Cyberseo xml (https://gfy.com/showthread.php?t=1196810)

levd 05-12-2016 12:14 PM

Cyberseo xml
 
Guys,

I'm trying to pull some data from this feed but I cant get it to pull any info.. what am I doing wrong here?

feed:

custom fields:

profilePictureUrl->thumb
performerId->name
chatRoomUrl->chat_link
details->categories

php:

$post['guid'] = $post['custom_fields']['thumb'];
$post['post_title'] = 'Chat with ' . $post['custom_fields']['name'];
if (!cseo_post_exists($post)) {
$post['post_content'] .= '<h2 style="text-align: center;"><a href="' . $post['custom_fields']['chat_link'] . '">Click to Chat and get the best Discounts!</a></h2>';
$post['post_content'] .= '<p style="text-align: left;"><strong>Name:</strong> ' . $post['custom_fields']['name'] .'</p>';
$post['post_content'] .= '<p style="text-align: left;"><strong>Categories:</strong> ' . $post['custom_fields']['categories'] .'</p>';

} else {
$post = false;
}

Section tag: data,models,model ?

just a punk 05-13-2016 09:41 AM

Section tag is "MODEL". Also you should change

profilePictureUrl->thumb
details->categories


to

size320x240->thumb
willingness->categories

levd 05-14-2016 12:23 PM

Cyberseo,

No luck with the settings you mentioned. Any other ideas?

just a punk 05-16-2016 09:48 AM

Quote:

Originally Posted by levd (Post 20894810)
Cyberseo,

No luck with the settings you mentioned. Any other ideas?

Need more info on the issue. Any error messages or so?

levd 05-16-2016 11:41 AM

No nothing no error just imported 0

just a punk 05-16-2016 04:04 PM

Quote:

Originally Posted by levd (Post 20898758)
No nothing no error just imported 0

Because you are doing something wrong. I've just tested the code above, including my own corrections (note my 1st post in this thread) and got the following result on my local-hosted site:

http://s018.radikal.ru/i516/1605/af/0741919a17b3.jpg

levd 05-17-2016 12:04 PM

Got it working thanks!
Somehow i needed to delete all xml section tags and only add MODEL for this feed. Then it worked ;-)


All times are GMT -7. The time now is 09:42 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc