Select and optionally render webcam model data.
OVERVIEW
| PHP | HTML zestoi('webcams', ARGS)
|
| SMARTY | {webcams ARGS}
|
EXAMPLES
A few very simple examples showing different methods for selecting and displaying the data
EXAMPLE 1
Display a webcam grid of any online models using the default rows, cols and grid template from the web admin settings:
PHP
echo zestoi('webcams', 'status=!offline')
SMARTY
{webcams status=!offline}
EXAMPLE 2
Explictly specify rows, cols, template to use and only select female models between 18 and 30 who are in free chat or member chat:
PHP
echo zestoi('webcams', 'rows=6&cols=5&template=grid.tpl&age=18..30&status=free_chat|members_only')
SMARTY
{webcams rows=6 cols=5 template=grid.tpl age=18..30 status=free_chat|members_only}
EXAMPLE 3
Select data, but don't display. Instead display the data by looping round each element:
PHP
zestoi('webcams', 'hair_color=brown&age=..30');
$models = zestoi_results('webcams');
foreach ($models as $model)
{
echo "name=" . $model['name'] . "<br>";
}
SMARTY
{webcam hair_color=brown age=..30 var=models}
{foreach from=$models item=model}
name={$model.name}<br>
{foreach}
EXAMPLE 4
As for example 3 above but using some different API functions:
PHP
zestoi('webcams', 'hair_color=brown&age=..30');
$max = zestoi_val('matches');
for ($i=0; $i<$max; $i++)
{
$model = zestoi_select_result('webcams', $i);
echo "name=" . $model['name'] . "<br>";
echo "name=" . zestoi_val('name') . "<br>";
}
EXAMPLE 5
You can also choose for zestoi to render each profile in the grid but not display - then you can display it after:
PHP
zestoi('webcams', 'template=grid.php&rows=6&cols=6&kw=dildo');
$max = zestoi_val('matches');
for ($i=0; $i<$max; $i++)
{
$model = zestoi_select_result('webcams', $i);
echo($model['_html']);
}
AVAILABLE FIELDS
Tis table lists the data that is avaialble for each webcam model. The values for fields are normalized where possible to a standard value. For example a hair color of 'brown' or 'brunette' are both converted to 'brown' for storing within zestoi to enable models with brown/brunette hair to be filtered.
The units for measurements are also standardised.
Not all data (or range of values) is available from all webcam sponsors.
NORMALIZED VALUES
| ethnicity | nativeamerican middleeastern pacificislander caucasian mediterranean ebony european hispanic roma asian eastindian multiracial (not livebucks or privatecamz) |
| nationality | african american australian british colombian czech east_european european filipino french german hungarian north_american polish canadian mexican spanish dutch belgian portuguese finish bulgarian italian swiss austrian norwegian malasian brazilian columbian romanian russian slovak south_american ukrainian (only livebucks + privatecamz) |
| hair_color | dyed brown white gray silver saltnpepper blonde orange firered
|
| hair_length | bald crewcut long short medium shoulder verylong |
| build | curvaceous petite average littleguy athletic slender slim muscular fewextralbs bbw fewextralbs aboveaverage large obese |
| eye_color | blue green brown grey hazel black |
| status | offline online members_only private_show free_chat |
| gender | female male female/female male/make male/famale transexual shemale hermaphrodite transexual unknown |
| pubic_hair | hairy trimmed bald |
| smoker | yes no by_request |
| sexual_pref | bisexual gay lesbian straight transgender |
| cupsize | A B C D DD DDD HUGE |
| waist | <integer> (inches) |
| breasts | <integer> (inches) |
| hips | <integer> (inches) |
| height | <integer> (inches) |
| weight | <integer> (pounds) |
| age | <integer> (years!) |
| category | girls young_girls transgender fetish mature lesbian bbw gay couples making_friends groups dating (not streamate or webcams.com) |
| hd_video | <integer>, 1 or 0 |
| audio | <integer>, 1 or 0 |
| phone | <integer>, 1 or 0, currently unused |
OTHER FIELDS
| photo | <text>, the url to the models bio photo |
| photos | an array of any additional photos for the model |
| publishedon | <integer>, when the model was added to the database, feed into the PHP function date() or use time_format in Smarty |
| modifiedon | <integer>, when the model was last seen online in the feeds, same format as publishedon |
| name | the name of the profile |
| seoname | the same as name but made web-safe by converting non alpha characters to a dash - |
| performerid | if an additional value is provided which is required to be used when linking to a sponsors profile for a model (e.g: imlive) then performerid will contain that value, else it will default back to name |
| nickname | if an additional nickname is provided for the model then will be set here, else will default back to the name of the profile |
| about | text |
| expertise | text |
| fantasies | text |
| turn_ons | text |
| turn_offs | text |
| fav_position | text |
| kinky_attribs | comma separated list |
| theme | comma separated list, used by streamate and webcams.com |
| fetishes | comma separated list |
| toys_or_props | comma separated list |
| birthday | text |
| rating | <floating point number> |
| show_rating | <floating point number> |
| appearance_rating | <floating point number> |
| come_back_rating | <floating point number> |
| num_ratings | <integer> |
| join_date | text form text |
| zodiac | text |
| favourite | <integer>, a custom field to allow favourite models to be selected |
| views | <integer>, incremented each time a profile is viewed automatically |
| clicks | <integer>, to store the number of clicks out to the sponsors profile for that model, not automatically updated |
| site | <string>, the name of the sponsors site you enter when adding the feed |
| custom | a spare custom field, that gets unserialized when viewing a full profile |
| body_hairr | text |
| facial_hair | text |
| circumcised | text |
| penis_size | text |
| awards | text, not currently used |
RELATED