Cyberseo xml

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • levd
    Confirmed User
    • Jul 2006
    • 581

    #1

    Business 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
    So fuckin' bored
    • Jun 2003
    • 32393

    #2
    Section tag is "MODEL". Also you should change

    profilePictureUrl->thumb
    details->categories


    to

    size320x240->thumb
    willingness->categories
    Obey the Cowgod

    Comment

    • levd
      Confirmed User
      • Jul 2006
      • 581

      #3
      Cyberseo,

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

      Comment

      • just a punk
        So fuckin' bored
        • Jun 2003
        • 32393

        #4
        Originally posted by levd
        Cyberseo,

        No luck with the settings you mentioned. Any other ideas?
        Need more info on the issue. Any error messages or so?
        Obey the Cowgod

        Comment

        • levd
          Confirmed User
          • Jul 2006
          • 581

          #5
          No nothing no error just imported 0

          Comment

          • just a punk
            So fuckin' bored
            • Jun 2003
            • 32393

            #6
            Originally posted by levd
            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:

            Obey the Cowgod

            Comment

            • levd
              Confirmed User
              • Jul 2006
              • 581

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

              Comment

              Working...