Webcams.com

Affiliate Program

Login: Password:

Webcams.com Online Model & Model Profile RSS Feed Parser

Our online model and model profile feed parser is a powerful tool that allows you to display a list of our online models formatted to your specifications directly onto your web page.  This means that you do not have to use cookie cutter iframes to display online models.  You can seamlessly integrate the exact models you want to display into your page so it looks like the webcams are a part of your site instead of ours.  You can also use the parser to parse our model profile feeds.  There are numerous usage examples below.

These instructions assume at least an elementary knowledge of HTML and extremely basic PHP skills.  The flexibility of pages you generate depends greatly upon your design skills but the possibilities are limitless.

Integration Instructions

Step One: Before you begin, you should download our parser package. This zip file includes the actual parser and a variety of usage examples that you can use as a base.

Click here to download the parser package -- includes detailed samples

When you open the zip file you will see a few examples. You'll notice that all the examples include a WebcamsRSSParser.php file.  All of these examples have at the very minimum the elements listed in the 'Required Tags' table below.  Follow these simple instructions to generate 100% customized pages that show our online models. 

Step Two: Insert the tags listed in the 'Required Tags' table into your page. 

Step Three: Within the foreach tags, described below, you should input the 'online model feed tags' or 'model profile feed tags' depending on which type of feed you are using, below, using styling that suites you.

PHP Tags and Available Variables

Required Tags
Tag Name Actual PHP Code Instructions
Parser PHP include <?php

require_once('/your_path/to/WebcamsRSSParser.php');

?>

This includes the actual Webcams.com parser.  The parser reads the RSS feed tags and defines them in a PHP array below.  In layman's terms, it takes the RSS feed you generate via our online model RSS feed generation form and makes sense of it.
Online model Feed URL variable definition

<?php

$feed_url = 'http://webcams.com/your_feed_url';
$models = WebcamsRSS::parse_online_models($feed_url);

?>

Only use this for the online model feed! The $feed_url variable is the feed you generate using our RSS feed form.  The $models variable is an array of information consisting of the tags from the RSS feed that is defined in the $feed_url variable.
Model Profile Feed URL variable definition <?php

$feed_url = 'http://webcams.com/your_feed_url';
$model = WebcamsRSS::parse_model_profile($feed_url);

?>
Only use this for the model profile feed!  The $feed_url variable is the feed URL for the particular model whose profile data you want to use.  You can obtain this URL from either the model linking codes or from within an online model feed.
Foreach open tag <? foreach($models as $model) {
?>
Use this tag to pull data for each model from the array.  You would use this tag, then use all the tags in the table below formatted however you'd like then close using the close tag below.
Foreach close tag <?php
}
?>
Once you've used the tags below to style your page, use this tag to close the foreach.

Online Model Feed Tags Available
Tag Name Actual PHP Code Instructions
screen_name <?php echo $model->screen_name ?> Displays a model screen name
model_id <?php echo $model->model_id ?> Numeric model ID of the performer
mean_rating <?php echo $model->mean_rating ?> Displays a model's average rating by users
num_ratings <?php echo $model->num_ratings ?> Displays the number of ratings for a model
why_me <?php echo $model->why_me ?> Displays a model's 'why_me' value from their webcams.com profile
join_date <?php echo $model->join_date ?> The date a model joined the site
categories <?php echo $model->categories ?> Displays all of the categories that a model is classified within
image_url <?php echo $model->image_url ?> A model's thumbnail image
large_image_url <?php echo $model->large_image_url ?> A model's large image (320x240)
link <?php echo $model->link ?> Link to a model's profile page
freechat_link <?php echo $model->freechat_link ?> Link to a model's free chat room if the model has free chat enabled

Model Profile Feed Tags Available
Tag Name Actual PHP Code Instructions
screen_name <?php echo $model->screen_name ?> Model's screen name
mean_rating <?php echo $model->mean_rating ?> Average user rating for model
num_ratings <?php echo $model->num_ratings ?> Number of ratings for model
online_status <?php echo $model->online_status ?> Online Status.  Value is either 'Online' or 'Offline'
age <?php echo $model->age ?> Model's age
sex <?php echo $model->sex ?> Model's sex (inputted by model)
sex_pref <?php echo $model->sex_pref ?> Sexual preference
measurements <?php echo $model->measurements ?> Measurements
height <?php echo $model->height ?> Height
weight <?php echo $model->weight ?> Weight
eye_color <?php echo $model->eye_color ?> Eye color
hair_color <?php echo $model->hair_color ?> Hair color
hair_length <?php echo $model->hair_length ?> Hair length
ethnicity <?php echo $model->ethnicity ?> Ethnicity
build <?php echo $model->build ?> Build
about_me <?php echo $model->about_me ?> Model's 'about me' from profile
turn_ons <?php echo $model->turn_ons ?> Model's 'turn ons'
turn_offs <?php echo $model->turn_offs ?> Model's 'turn offs'
hair_color <?php echo $model->hair_color ?> Hair color
why_me <?php echo $model->why_me ?> Model's 'why me' from profile
fantasies <?php echo $model->fantasies ?> Model's 'fantasies' from profile
room_desc <?php echo $model->room_desc ?> Model's 'room description' from profile
sun_schedule <?php echo $model->sun_schedule ?> Sunday schedule
mon_schedule <?php echo $model->mon_schedule ?> Monday schedule
tue_schedule <?php echo $model->tue_schedule ?> Tuesday schedule
wed_schedule <?php echo $model->wed_schedule ?> Wednesday schedule
thu_schedule <?php echo $model->thu_schedule ?> Thursday schedule
fri_schedule <?php echo $model->fri_schedule ?> Friday schedule
sat_schedule <?php echo $model->sat_schedule ?> Saturday schedule
join_dated <?php echo $model->join_date ?> Model's associated categories
image_url <?php echo $model->image_url ?> Model's thumbnail image
large_image_url <?php echo $model->large_image_url ?> Model's large image (320x240)
link <?php echo $model->link ?> Link to a model's profile page
freechat_link <?php echo $model->freechat_link ?> Link to a model's free chat room if the model has free chat enabled

Usage Examples

These simple examples intend to illustrate the basics behind making an online model and model profile feed display.  More complicated usage examples are found in the parser package.

Example 1: In this simple example, the model's image and screen name are displayed and link to the model's free chat page.  Notice how the php variables are simply included as if they were normal HTML.  Using this and building upon it allows you to create highly versatile, original pages with any HTML styling elements including CSS.

<?php
require_once('WebcamsRSSParser.php');
$feed_url = 'http://www.webcams.com/affiliate/wca_promo.php?action=onlinemodelsrssfeed
&reseller=webcams&rev=0&type=1&link_type=html&mcat_id=&min_mean_rating=0
&min_num_ratings=0&max_site_age=9999&perpage=100';
$models = WebcamsRSS::parse_online_models($feed_url);
foreach($models as $model) {
?>

<a href="<?php echo $model->freechat_link ?>"><img src="<?php echo $model->image_url ?>"><br><?php echo $model->screen_name ?></a>
<hr>

<?php
}
?>

Example 2: Displays all the available fields for online blonde webcam models with a line in between each model listing

<?php
require_once('WebcamsRSSParser.php');
$feed_url = 'http://www.webcams.com/affiliate/wca_promo.php?action=onlinemodelsrssfeed
&reseller=webcams&rev=0&type=1&link_type=html&mcat_id=&min_mean_rating=0
&min_num_ratings=0&max_site_age=9999&perpage=100';
$models = WebcamsRSS::parse_online_models($feed_url);
foreach($models as $model) {
?>

screen_name: <?php echo $model->screen_name ?><br/>
mean_rating: <?php echo $model->mean_rating ?><br/>
num_ratings: <?php echo $model->num_ratings ?><br/>
why_me: <?php echo $model->why_me ?><br/>
join_date: <?php echo $model->join_date ?><br/>
categories: <?php echo $model->categories ?><br/>
image_url: <?php echo $model->image_url ?><br/>
large_image_url: <?php echo $model->large_image_url ?><br/>
link: <?php echo $model->link ?><br/>
freechat_link: <?php echo $model->freechat_link ?><br/>
<hr/>

<?php
}
?>

Example 3: Displays a model profile listing with all available entries for model '1stsexbomb'

<?php
require_once('WebcamsRSSParser.php');
$feed_url = 'http://www.webcams.com/affiliate/wca_promo.php?reseller=webcams
&type=1&rev=0&action=modelprofilerssfeed&model_id=2328';
$model = WebcamsRSS::parse_model_profile($feed_url);
?>
screen_name: <?php echo $model->screen_name ?><br/>
online_status: <?php echo $model->online_status ?><br/>
mean_rating: <?php echo $model->mean_rating ?><br/>
num_ratings: <?php echo $model->num_ratings ?><br/>
age: <?php echo $model->age ?><br/>
sex: <?php echo $model->sex ?><br/>
sex_pref: <?php echo $model->sex_pref ?><br/>
measurements: <?php echo $model->measurements ?><br/>
height: <?php echo $model->height ?><br/>
weight: <?php echo $model->weight ?><br/>
eye_color: <?php echo $model->eye_color ?><br/>
hair_color: <?php echo $model->hair_color ?><br/>
hair_length: <?php echo $model->hair_length ?><br/>
ethnicity: <?php echo $model->ethnicity ?><br/>
build: <?php echo $model->build ?><br/>
about_me: <?php echo $model->about_me ?><br/>
turn_ons: <?php echo $model->turn_ons ?><br/>
turn_offs: <?php echo $model->turn_offs ?><br/>
why_me: <?php echo $model->why_me ?><br/>
fantasies: <?php echo $model->fantasies ?><br/>
room_desc: <?php echo $model->room_desc ?><br/>
sun_schedule: <?php echo $model->sun_schedule ?><br/>
mon_schedule: <?php echo $model->mon_schedule ?><br/>
tue_schedule: <?php echo $model->tue_schedule ?><br/>
wed_schedule: <?php echo $model->wed_schedule ?><br/>
thu_schedule: <?php echo $model->thu_schedule ?><br/>
fri_schedule: <?php echo $model->fri_schedule ?><br/>
sat_schedule: <?php echo $model->sat_schedule ?><br/>
join_date: <?php echo $model->join_date ?><br/>
categories: <?php echo $model->categories ?><br/>
image_url: <?php echo $model->image_url ?><br/>
large_image_url: <?php echo $model->large_image_url ?><br/>
link: <?php echo $model->link ?><br/>
freechat_link: <?php echo $model->freechat_link ?><br/>


© Copyright 2005-08 Webcams.com. All Rights Reserved. - Terms of Services