GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   chaturbate api/whitleabel (https://gfy.com/showthread.php?t=1058883)

DVTimes 02-24-2012 05:35 PM

chaturbate api/whitleabel
 
I thoght is was suposed to be % but stats seem to be recording $1 instead.

Not happy.

porno jew 02-24-2012 05:37 PM

Quote:

Originally Posted by DVTimes (Post 18779758)
I thoght is was suposed to be % but stats seem to be recording $1 instead.

Not happy.

look on the bright side. you made a dollar.

anexsia 02-24-2012 05:38 PM

Quote:

Originally Posted by porno jew (Post 18779760)
look on the bright side. you made a dollar.

:1orglaugh:1orglaugh:1orglaugh

VenusBlogger 02-24-2012 05:41 PM

why are there so many threads and people talking about chaturbate? What's so special about them? just wondering...

is it not better a niche paysite with revshare? really wondering...

or are they perfect to do money with e-whoring/cookie stuffing and thus so many webmasters use that trick?

EddyTheDog 02-24-2012 06:05 PM

Use the "iframe_embed" instead of "iframe_embed_revshare".

They are both in the API results.

DVTimes 02-24-2012 06:17 PM

Quote:

Originally Posted by EddyTheDog (Post 18779784)
Use the "iframe_embed" instead of "iframe_embed_revshare".

They are both in the API results.

Quote:

<?php
function site_vars(){
///////////////////Change affiliate id below to yours and trackingid to whatever you would like to show in stats////////////////
$affiliateid="HNwJw"; //
$trackingid="hr8m"; //
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
$sitevar['affid']=$affiliateid;
$sitevar['track']=$trackingid;
return $sitevar;
}
function get_current_dir(){
$base=str_replace($_SERVER[DOCUMENT_ROOT], "", $_SERVER[SCRIPT_FILENAME]);
$base2=str_replace(basename($_SERVER[PHP_SELF]), "" ,$base);
$directory=str_replace("/admin/", "", $base2);
$directory=str_replace("/", "", $directory);
if ($directory){
$url="http://".$_SERVER[SERVER_NAME]."/".$directory."/";
}else{
$url="http://".$_SERVER[SERVER_NAME]."/";
}
return $url;
}
function get_cams($affiliateid, $trackingid){
$cams = new SimpleXMLElement('http://chaturbate.com/affiliates/api/onlinerooms/?format=xml&wm='.$affiliateid.'', null, true);
foreach($cams as $cam){
if($cam->gender=="f"){
//if(@GetImageSize($cam->image_url)){
$FemaleCamArr['username'][]=$cam->username;
$cam->chat_room_url=str_replace('?track=default', "?track=$trackingid", $cam->chat_room_url);
$FemaleCamArr['chaturl'][]=$cam->chat_room_url;
$FemaleCamArr['imageurl'][]=$cam->image_url;
//}
}elseif($cam->gender=="m"){
//if(@GetImageSize($cam->image_url)){
$MaleCamArr['username'][]=$cam->username;
$cam->chat_room_url=str_replace('?track=default', "?track=$trackingid", $cam->chat_room_url);
$MaleCamArr['chaturl'][]=$cam->chat_room_url;
$MaleCamArr['imageurl'][]=$cam->image_url;
//}
}elseif($cam->gender=="c"){
//if(@GetImageSize($cam->image_url)){
$CoupleCamArr['username'][]=$cam->username;
$cam->chat_room_url=str_replace('?track=default', "?track=$trackingid", $cam->chat_room_url);
$CoupleCamArr['chaturl'][]=$cam->chat_room_url;
$CoupleCamArr['imageurl'][]=$cam->image_url;
//}
}else{
//if(@GetImageSize($cam->image_url)){
$MiscCamArr['username'][]=$cam->username;
$cam->chat_room_url=str_replace('?track=default', "?track=$trackingid", $cam->chat_room_url);
$MiscCamArr['chaturl'][]=$cam->chat_room_url;
$MiscCamArr['imageurl'][]=$cam->image_url;
//}
}
}
$NewCams['Female']=$FemaleCamArr;
$NewCams['Male']=$MaleCamArr;
$NewCams['Couple']=$CoupleCamArr;
$NewCams['Misc']=$MiscCamArr;
return $NewCams;
}
function cams_count($carr, $gender){
if($gender=="f"){
$Count=count($carr['Female']['username']);
}elseif($gender=="m"){
$Count=count($carr['Male']['username']);
}elseif($gender=="c"){
$Count=count($carr['Couple']['username']);
}else{
$Count=count($carr['Misc']['username']);
}
return $Count;
}
function Show_Cams($CamArray, $gender, $rows, $maxnum, $rand, $showusername, $linkusername, $linkimage, $tablewidth, $imgborder, $imgheight, $imgwidth){

if(!$rows){
$rows=5;
}
if($imagewidth && !$imgheight){
$imgheight='';

}
if(!$imgwidth){
$imgwidth='180';
}
if($gender=="f"){
$FemaleCamCount=cams_count($CamArray, $gender="f");
$arrcount=$FemaleCamCount;
$gentype="Female";
}elseif($gender=="m"){
$MaleCamCount=cams_count($CamArray, $gender="m");
$arrcount=$MaleCamCount;
$gentype="Male";
}elseif($gender=="c"){
$CoupleCamCount=cams_count($CamArray, $gender="c");
$arrcount=$CoupleCamCount;
$gentype="Couple";
}else{
$MiscCamCount=cams_count($CamArray, $gender="misc");
$arrcount=$MiscCamCount;
$gentype="Misc";
}
if($maxnum){

if($maxnum > $arrcount){
$maxnum=$arrcount;
}
}
if (!$maxnum){
$maxnum=$arrcount;
}

$i=0;
$returnhtml='<table width="'.$tablewidth.'%">';
$position = 1;
while($i <= $maxnum ){
if($position == 1){$returnhtml.= "<tr>";}


if ($rand==true){
if ($usedrand==false){
//populate array with 0-maxnum
$var = range(0, $maxnum);
shuffle($var);
$usedrand=true;
}
$rn = array_rand($var);
$username= $CamArray[''.$gentype.'']['username'][$rn];
$chaturl= "viewcam.php?id=$username";
$imageurl= $CamArray[''.$gentype.'']['imageurl'][$rn];
unset($var[$rn]);

}else{
$username= $CamArray[''.$gentype.'']['username'][$i];
$chaturl= "viewcam.php?id=$username";
$imageurl= $CamArray[''.$gentype.'']['imageurl'][$i];
}
if($showusername==true && $linkusername==false){
$linknamecode=$username."<br>";
}
if($showusername==true && $linkusername==true){
$linknamecode='<a href="'.$chaturl.'">'.$username.'</a><br>';
}
if($linkimage==true){
$linkimagecode='<a href="'.$chaturl.'">';
}else{
$linkimagecode='';
}
if($imgborder==true){
$bordercode='border="1"';
}else{
$bordercode='';
}
if($imageurl && $username){
$returnhtml.='<td align="center">'.$linknamecode.''.$linkimagecode.' <img src="'.$imageurl.'" width="'.$imgwidth.'" height="'.$imgheight.'" '.$bordercode.' ></a></td>'.$tblinfo;

if($position == $rows){$returnhtml.= "</tr> "; $position = 1;}else{ $position++;}

}
$i++;
$end = "";
if($position != 1){
for($z=($rows-$position); $z>0 ; $z--){
$end .= "<td></td>";
}
$end .= "</tr>";
}


}//if
////////////end function
$returnhtml.= $end."</table> ";
return $returnhtml;
}
function show_camview($hostname){
$hostname = strip_tags($hostname);
$sitevars=site_vars();
$affiliateid=$sitevars['affid'];
$trackingid=$sitevars['track'];
$books = new SimpleXMLElement('http://chaturbate.com/affiliates/api/onlinerooms/?format=xml&wm='.$affiliateid.'', null, true);
foreach($books as $book) // loop through our books
{
$name=$book->username;
if($book->gender=="f"){
$fhosts[]=$book->username;
}
$mostpopularhost=$fhosts[0];
if($name == $hostname){
$online="yes";
$imageurl=$book->image_url;
$imgembed='<img src="'.$book->image_url.'" width="1" height="1" />';
}
}
if ($online=="yes"){
$iframe="$imgembed<br><iframe src='http://chaturbate.com/affiliates/in/Jrvi/$affiliateid/?track=$trackingid&room=$hostname&bgcolor=white' height=528 width=850 style='border: none;'></iframe>";
}else{

$iframe="<b>$hostname Is Currently Offline!</b><br><br><b>You Are Now Viewing The Most Popular Live Cam <br><br>
<iframe src='http://chaturbate.com/affiliates/in/NxHf/$affiliateid/?track=$trackingid&bgcolor=white' height=528 width=850 style='border: none;'></iframe>";

}
return $iframe;
}
?>
i am using the white label thing.

this is the cams file.

lucas131 02-24-2012 06:23 PM

mucho dinero :) have luck everyone :)

EddyTheDog 02-24-2012 06:33 PM

Quote:

Originally Posted by DVTimes (Post 18779789)
i am using the white label thing.

this is the cams file.

Oh - I thought it was something you had written yourself from the API - I have never seen that file before.

DVTimes 02-24-2012 06:34 PM

this is rev share for best converting tour.

http://chaturbate.com/affiliates/in/...?track=default

I presime my affiliate id is: HNwJw

I used hr8m as tracking id.

so i presumed it would record rev share (%).

yet all stats record as $1 sign up, except a small few.

DVTimes 02-24-2012 06:37 PM

Quote:

Originally Posted by EddyTheDog (Post 18779798)
Oh - I thought it was something you had written yourself from the API - I have never seen that file before.

no

i have no idea how to wtite code.

it was somone on this forum posted the code for a whitelabel.

EddyTheDog 02-24-2012 06:39 PM

Quote:

Originally Posted by DVTimes (Post 18779799)
this is rev share for best converting tour.

http://chaturbate.com/affiliates/in/...?track=default

I presime my affiliate id is: HNwJw

I used hr8m as tracking id.

so i presumed it would record rev share (%).

yet all stats record as $1 sign up, except a small few.

Your affiliate id is HNwJw thats correct but the tracking ID thing is strange.

The way they have set up their (chaturbate) links in general is strange.

DVTimes 02-24-2012 06:39 PM

I just wish I could turn off the $1 thing and change it all to rev share.

I do not want the $1 thing at all.

DVTimes 02-24-2012 06:41 PM

?By the way I did email them a day or so ago.

No reply as yet.

Though I did get an email saying email read.

DVTimes 02-24-2012 06:45 PM

Quote:

Originally Posted by EddyTheDog (Post 18779804)
Your affiliate id is HNwJw thats correct but the tracking ID thing is strange.

The way they have set up their (chaturbate) links in general is strange.

I know.

I just wish rather than having three things, they would do away with $1 and have it all rev share.

Also I wish they would reduce the adverts on the site. It spoils it. And to me this thing is the best thing since slice bread.

keysync 02-24-2012 06:45 PM

if ($online=="yes"){
$iframe="$imgembed<br><iframe src='http://chaturbate.com/affiliates/in/Jrvi/$affiliateid/?track=$trackingid&room=$hostname&bgcolor=white' height=528 width=850 style='border: none;'></iframe>";
}else{

Towards the bottom needs to be

if ($online=="yes"){
$iframe="$imgembed<br><iframe src='http://chaturbate.com/affiliates/in/9oGW/$affiliateid/?track=$trackingid&room=$hostname&bgcolor=white' height=528 width=850 style='border: none;'></iframe>";
}else{

EddyTheDog 02-24-2012 06:50 PM

Quote:

Originally Posted by keysync (Post 18779815)
if ($online=="yes"){
$iframe="$imgembed<br><iframe src='http://chaturbate.com/affiliates/in/Jrvi/$affiliateid/?track=$trackingid&room=$hostname&bgcolor=white' height=528 width=850 style='border: none;'></iframe>";
}else{

Towards the bottom needs to be

if ($online=="yes"){
$iframe="$imgembed<br><iframe src='http://chaturbate.com/affiliates/in/9oGW/$affiliateid/?track=$trackingid&room=$hostname&bgcolor=white' height=528 width=850 style='border: none;'></iframe>";
}else{

You beat me to it - I was just looking at that.

DVTimes - You can use anything as the tracking ID BTW.

DVTimes 02-24-2012 07:01 PM

Quote:

Originally Posted by keysync (Post 18779815)
if ($online=="yes"){
$iframe="$imgembed<br><iframe src='http://chaturbate.com/affiliates/in/Jrvi/$affiliateid/?track=$trackingid&room=$hostname&bgcolor=white' height=528 width=850 style='border: none;'></iframe>";
}else{

Towards the bottom needs to be

if ($online=="yes"){
$iframe="$imgembed<br><iframe src='http://chaturbate.com/affiliates/in/9oGW/$affiliateid/?track=$trackingid&room=$hostname&bgcolor=white' height=528 width=850 style='border: none;'></iframe>";
}else{

hi

great stuff.

i have no idea what any of the code means, it could be chinese for all i would know.

DVTimes 02-24-2012 07:02 PM

<?php
function site_vars(){
///////////////////Change affiliate id below to

yours and trackingid to whatever you would like to show in

stats////////////////
$affiliateid="HNwJw";

//
$trackingid="hr8m";

//
//////////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////
$sitevar['affid']

=$affiliateid;
$sitevar['track']=$trackingid;
return $sitevar;
}
function

get_current_dir(){
$base=str_replace($_SERVER[DOCUMENT_ROOT], "", $_SERVER

[SCRIPT_FILENAME]);
$base2=str_replace(basename($_SERVER[PHP_SELF]), ""

,$base);
$directory=str_replace("/admin/", "", $base2);
$directory=str_replace

("/", "", $directory);
if ($directory){
$url="http://".$_SERVER

[SERVER_NAME]."/".$directory."/";
}else{
$url="http://".$_SERVER

[SERVER_NAME]."/";
}
return $url;
}
function get_cams($affiliateid, $trackingid){
$cams = new SimpleXMLElement

('http://chaturbate.com/affiliates/api/onlinerooms/?

format=xml&wm='.$affiliateid.'', null, true);
foreach($cams as $cam){
if($cam-

>gender=="f"){
//if(@GetImageSize($cam->image_url)){
$FemaleCamArr['username']

[]=$cam->username;
$cam->chat_room_url=str_replace('?track=default', "?

track=$trackingid", $cam->chat_room_url);
$FemaleCamArr['chaturl'][]=$cam-

>chat_room_url;
$FemaleCamArr['imageurl'][]=$cam->image_url;
//}
}elseif($cam-

>gender=="m"){
//if(@GetImageSize($cam->image_url)){
$MaleCamArr['username'][]

=$cam->username;
$cam->chat_room_url=str_replace('?track=default', "?

track=$trackingid", $cam->chat_room_url);
$MaleCamArr['chaturl'][]=$cam-

>chat_room_url;
$MaleCamArr['imageurl'][]=$cam->image_url;
//}
}elseif($cam-

>gender=="c"){
//if(@GetImageSize($cam->image_url)){
$CoupleCamArr['username']

[]=$cam->username;
$cam->chat_room_url=str_replace('?track=default', "?

track=$trackingid", $cam->chat_room_url);
$CoupleCamArr['chaturl'][]=$cam-

>chat_room_url;
$CoupleCamArr['imageurl'][]=$cam->image_url;
//}
}else{
//if

(@GetImageSize($cam->image_url)){
$MiscCamArr['username'][]=$cam->username;
$cam->chat_room_url=str_replace('?track=default', "?track=$trackingid", $cam-

>chat_room_url);
$MiscCamArr['chaturl'][]=$cam->chat_room_url;
$MiscCamArr

['imageurl'][]=$cam->image_url;
//}
}
}
$NewCams['Female']=$FemaleCamArr;
$NewCams

['Male']=$MaleCamArr;
$NewCams['Couple']=$CoupleCamArr;
$NewCams['Misc']

=$MiscCamArr;
return $NewCams;
}
function cams_count($carr, $gender){
if

($gender=="f"){
$Count=count($carr['Female']['username']);
}elseif

($gender=="m"){
$Count=count($carr['Male']['username']);
}elseif($gender=="c"){
$Count=count($carr['Couple']['username']);
}else{
$Count=count($carr['Misc']

['username']);
}
return $Count;
}
function Show_Cams($CamArray, $gender, $rows,

$maxnum, $rand, $showusername, $linkusername, $linkimage, $tablewidth,

$imgborder, $imgheight, $imgwidth){

if(!$rows){
$rows=5;
}
if($imagewidth && !

$imgheight){
$imgheight='';

}
if(!$imgwidth){
$imgwidth='180';
}
if($gender=="f"){
$FemaleCamCount=cams_count($CamArray, $gender="f");
$arrcount=$FemaleCamCount;
$gentype="Female";
}elseif($gender=="m"){
$MaleCamCount=cams_count($CamArray,

$gender="m");
$arrcount=$MaleCamCount;
$gentype="Male";
}elseif($gender=="c"){
$CoupleCamCount=cams_count($CamArray, $gender="c");
$arrcount=$CoupleCamCount;
$gentype="Couple";
}else{
$MiscCamCount=cams_count($CamArray, $gender="misc");
$arrcount=$MiscCamCount;
$gentype="Misc";
}
if($maxnum){

if($maxnum > $arrcount){
$maxnum=$arrcount;
}
}
if (!$maxnum){
$maxnum=$arrcount;
}

$i=0;
$returnhtml='<table

width="'.$tablewidth.'%">';
$position = 1;
while($i <= $maxnum ){
if($position ==

1){$returnhtml.= "<tr>";}


if ($rand==true){
if ($usedrand==false){
//populate

array with 0-maxnum
$var = range(0, $maxnum);
shuffle($var);
$usedrand=true;
}
$rn

= array_rand($var);
$username= $CamArray[''.$gentype.'']['username'][$rn];
$chaturl= "viewcam.php?id=$username";
$imageurl= $CamArray[''.$gentype.'']

['imageurl'][$rn];
unset($var[$rn]);

}else{
$username= $CamArray

[''.$gentype.'']['username'][$i];
$chaturl= "viewcam.php?id=$username";
$imageurl= $CamArray[''.$gentype.'']['imageurl'][$i];
}
if($showusername==true

&& $linkusername==false){
$linknamecode=$username."<br>";
}
if

($showusername==true && $linkusername==true){
$linknamecode='<a

href="'.$chaturl.'">'.$username.'</a><br>';
}
if($linkimage==true){
$linkimagecode='<a href="'.$chaturl.'">';
}else{
$linkimagecode='';
}
if

($imgborder==true){
$bordercode='border="1"';
}else{
$bordercode='';
}
if($imageurl

&& $username){
$returnhtml.='<td

align="center">'.$linknamecode.''.$linkimagecode.' <img src="'.$imageurl.'"

width="'.$imgwidth.'" height="'.$imgheight.'" '.$bordercode.'

></a></td>'.$tblinfo;

if($position == $rows){$returnhtml.= "</tr> "; $position

= 1;}else{ $position++;}

}
$i++;
$end = "";
if($position != 1){
for($z=($rows-

$position); $z>0 ; $z--){
$end .= "<td></td>";
}
$end .= "</tr>";
}


}//if
////////////end function
$returnhtml.= $end."</table> ";
return $returnhtml;
}
function show_camview($hostname){
$hostname = strip_tags($hostname);
$sitevars=site_vars();
$affiliateid=$sitevars['affid'];
$trackingid=$sitevars

['track'];
$books = new SimpleXMLElement

('http://chaturbate.com/affiliates/api/onlinerooms/?

format=xml&wm='.$affiliateid.'', null, true);
foreach($books as $book) // loop

through our books
{
$name=$book->username;
if($book->gender=="f"){
$fhosts[]

=$book->username;
}
$mostpopularhost=$fhosts[0];
if($name == $hostname){
$online="yes";
$imageurl=$book->image_url;
$imgembed='<img src="'.$book-

>image_url.'" width="1" height="1" />';
}
}
if ($online=="yes"){
$iframe="$imgembed<br><iframe src='http://chaturbate.com/affiliates/in/9oGW/

$affiliateid/?track=$trackingid&room=$hostname&bgcolor=white' height=528

width=850 style='border: none;'></iframe>";
}else{

$iframe="<b>$hostname Is Currently Offline!</b><br><br><b>You Are Now

Viewing The Most Popular Live Cam <br><br>
<iframe

src='http://chaturbate.com/affiliates/in/NxHf/$affiliateid/?

track=$trackingid&bgcolor=white' height=528 width=850 style='border:

none;'></iframe>";

}
return $iframe;
}
?>

ArsewithClass 02-24-2012 07:03 PM

Quote:

Originally Posted by DVTimes (Post 18779831)
hi

great stuff.

i have no idea what any of the code means, it could be chinese for all i would know.

But it's not... it's code :pimp

signupdamnit 02-24-2012 07:14 PM

Quote:

Originally Posted by DVTimes (Post 18779814)
I know.

I just wish rather than having three things, they would do away with $1 and have it all rev share.

Also I wish they would reduce the adverts on the site. It spoils it. And to me this thing is the best thing since slice bread.

I strongly disagree about doing away with the PPF. I enjoy having the choice and would reduce the traffic I send and my future plans significantly if the PPF option as it is now went away. It's what makes them different from others. I agree about some of the ads. I have no issue with whatever they want to do AFTER the surfer signs up on the PPF program but before that I think the focus needs to be kept on getting the surfer to register. For the revshare program ideally there shouldn't be any other ads as that is what revshare is all about.

TheSwed 02-26-2012 05:54 AM

Quote:

Originally Posted by DVTimes (Post 18779802)
no

i have no idea how to wtite code.

it was somone on this forum posted the code for a whitelabel.

Do you have a link to that post?
Because cant get it to work for me


All times are GMT -7. The time now is 10:27 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123