Someone can explain me how to call username and id in this code?
$tk_name = "THE-USER-NAME"; //<-- please set the username here
$tk_user_id = "THE-USER-ID"; //<-- please set the user ID here
$tk_gender = ""; //<-- optional (the gender of the user can be "w" or "m")
$tk_age = ""; //<-- optional (the age of the user e.g. "23")
$tk_single = ""; //<-- optional (is the user single? "Yes", "no", "0" = no information)
$tk_profile_url = ""; //<-- optional (url to the users profile)
$tk_pic = ""; //<-- optional (url of the users picture)
$tk_city = ""; //<-- optional (city where the user is located, e.g. "Berlin")
$tk_zip = ""; //<-- optional (users zip code, e.g. "92553")
$tk_country = ""; //<-- optional (country where the user is located, e.g. "Germany")
$tk_app_id = "xxxxxx";
//------
//Generate the user_data string
$tk_user_data = "name:" . $tk_name . ";gender:" . $tk_gender . ";age:" . $tk_age . ";single:" . $tk_single . ";url:" . $tk_profile_url . ";pic:" . $tk_pic . ";city:" . $tk_city . ";zip:" . $tk_zip . ";country:" . $tk_country;
$tk_hash = md5( $tk_user_id . "xxxxxxxxxxxxx" );
?>
<script type="text/javascript">
var TOKSTA_CONFIG = {
app_id : "<?= $tk_app_id ?>",
user_id: "<?= $tk_user_id ?>",
user_hash: "<?= $tk_hash ?>",
user_data: "<?= $tk_user_data ?>",
generated : "xxxxxxxxxx",
im : {
advancedSearch : ["gender","age","city","country","single"]
},
chatbar : {
showUserData : ["gender","age"]
}
};
</script>
<script src="http://embed.toksta.com/embed/toksta.js" type="text/javascript"></script>
Myfile.tpl code is located in /templates/mytemplate/myfile.tpl.
Has anyone idea how to call username and other data in this code?
I tried {username} etc.. but no go. View Comments & Reply...
It is possible this? View Comments & Reply...






Latest Comments
Status Mod - To Keep them Coming Back
1 day ago
Status Mod - To Keep them Coming Back
1 day ago
Edit to Picture-Zoom
1 day ago