Code:
()
Code:
Implementation of the template page used for profile page
How does it work: the $_REQUEST['model_id'] gets the numeric ID and uses the parser to get the model details by calling the feed of the requested model. So we've prepared the templates last week and now we will insert the RSS PHP parsed variables from the FEED inside them.
Go to the "affiliate area -> Promo Tools -> RSS Feeds -> RSS Parser: PHP
based -> and search for PHP Tags and Available "Variables".
Here we will find some technical info regarding the parser's functionality and some other necessary info, such as the name of all the variables that display the info in your templates.
So let's start with the "Implementation of the template page used for profile page".
Open the profile.php file, and change the path of the parser from "../WebcamsRSSParser.php" to "feeds/WebcamsRSSParser.php"
Copy the first part into the template file of the profile page. We will insert it exactly in the same spot as it was copied from, at the top that is.
As you may see, there are a lot of variables on this page. All of them are adjustable and begin with
http://www.webcams.com/affiliate/new..._10_07/1_1.gif
Code:
$model-> (this is were the called parameter is situated). For example: $model->sex_pref;
$model->measurements; $model->eye_color; $model->about_me;
Complete the rest of the template with the variables you want and your done with the profile display.
Below you can see that there is a foreach that indicates other suggestions (online models). This can also be adapted.
http://www.webcams.com/affiliate/new..._10_07/1_2.gif
We will use the same method as we did for pagination, or we can simply create a style for the existing structure and adapt it. And it seems we are done with this part of tutorial also.
Hope to be helpful!