Video Secrets - Premiere Affiliate Program for Live Video Chat

Tutorials > PHP Includes

Our PHP include tool is designed for more intermediate webmasters. It requires a working knowledge of PHP and CSS to be implemented successfully. That being said, we'll do our best to explain the tool in this tutorial.

The premise is simple, dynamically include a list of live performers into your web page(s). To accomplish this we use the remote file include functionality native to PHP. One simple line of PHP will pull a list of live models from our servers.

<?php
include("http://ads.vs.com/_special/banners/LiveWebCams.php?style=blog_nav&service=girls
&mp_code=XXXX&&num_models=15");
?>
NOTE: This should appear on one line, it's split here for display purposes only.

When you load your page it will be replaced with output similar to the following:
<a id="videosecrets_BlogLink" target="_top" href="http://www.flirt4free.com/login/?
model_id=5797&mp_code=XXXX&service=girls&a=guestLogin">Diane</a>

<a id="videosecrets_BlogLink" target="_top" href="http://www.flirt4free.com/login/?
model_id=16134&mp_code=XXXX&service=girls&a=guestLogin">Kaela</a>

<a id="videosecrets_BlogLink" target="_top" href="http://www.flirt4free.com/login/?
model_id=22294&mp_code=XXXX&service=girls&a=guestLogin">Nevina</a>

Notice how each of the text links has a CSS ID attribute named videosecrets_BlogLink? You can use this to customize the display of each link to match your site!

The CSS code below is an example of how you might customize it:

<style type="text/css">
#videosecrets_BlogLink { color: #ff0000; } #videosecrets_BlogLink:hover { color: #ff0000; text-decoration: none; }
</style>

This CSS code would customize the links to be red with an underline that disappears when you hover over the links (see below). Obviously you can customize the links however you wish! Below is an example of how the links would appear:

Diane
Kaela
Nevina


Please contact us if you have any question about how to use this tool on your site. You should login to your account to further customize the PHP include to meet your specific requirements, look for it on the promo materials page.

18 U.S.C. 2257 Record-Keeping Requirements Compliance Statement © 1996 - 2010 VS Media, Inc. All Rights Reserved.