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)
-   -   Tech Cams - Chaturbate API V2 parsing via JavaScript (https://gfy.com/showthread.php?t=1341908)

brassmonkey 02-18-2022 05:17 PM

Quote:

Originally Posted by Clown (Post 22966650)
juicysluts.com - My newest touch on the Chaturbate API. Any feedback is appreciated.

Also is there still good money to be made with Chaturbate?

pagination is 404... looks good!!! :thumbsup:thumbsup

sarettah 02-18-2022 05:17 PM

Quote:

Originally Posted by Clown (Post 22966650)
juicysluts.com - My newest touch on the Chaturbate API. Any feedback is appreciated.

Also is there still good money to be made with Chaturbate?

Looks pretty good.

.

Clown 02-18-2022 05:19 PM

Quote:

Originally Posted by brassmonkey (Post 22966655)
pagination is 404... looks good!!! :thumbsup:thumbsup

Thanks guys, and that's odd. It's working correctly for me.

brassmonkey 02-18-2022 05:23 PM

Quote:

Originally Posted by Clown (Post 22966657)
Thanks guys, and that's odd. It's working correctly for me.

i will send it on pm its a .htaccess issue i get /2 for page 2 it need to be /index.php?page=2

Clown 02-18-2022 06:09 PM

Quote:

Originally Posted by brassmonkey (Post 22966659)
i will send it on pm its a .htaccess issue i get /2 for page 2 it need to be /index.php?page=2

Thank you for pointing that out sir. I verified with a friend that it indeed was putting out a 404 error. We discovered it was due to ad blockers blocking the javascript I was using the change pages. I am now reverting back to links hoping that will fix the issue.

brassmonkey 03-07-2022 01:27 PM

how do you embed the chat in this?

sarettah 03-07-2022 04:54 PM

Quote:

Originally Posted by brassmonkey (Post 22974877)
how do you embed the chat in this?

You could use the iframe_embed_revshare field wherever you want the embed.

.

brassmonkey 03-07-2022 05:49 PM

Quote:

Originally Posted by sarettah (Post 22974963)
You could use the iframe_embed_revshare field wherever you want the embed.

.

example please :)

sarettah 12-30-2022 04:22 PM

Quote:

Originally Posted by brassmonkey (Post 22974977)
example please :)

hey, i guess that i had missed you asking this

not sure what you are wanting as an example, i use the version 2 api and embeds on https://camgirlbinge.com

.

modulles 06-28-2023 07:35 AM

Hello teacher!
 
Hello sarettah
If you could please make a mobile responsive code for this wonderful fourth code you made?
I have been following you for a long time and for me you are the best teacher.
All my respect! Thank you on behalf of all those who learned from you!

fuzebox 06-28-2023 10:58 AM

Quote:

Originally Posted by modulles (Post 23149462)
Hello sarettah
If you could please make a mobile responsive code for this wonderful fourth code you made?
I have been following you for a long time and for me you are the best teacher.
All my respect! Thank you on behalf of all those who learned from you!

You can't just come up with your own responsive grid in css? :error

Any other beginner html designs you need sarettah to do for you?

sarettah 06-29-2023 09:55 AM

Quote:

Originally Posted by fuzebox (Post 23149555)
You can't just come up with your own responsive grid in css? :error

Any other beginner html designs you need sarettah to do for you?

well i guess i can't help then

.

fuzebox 06-29-2023 10:30 AM

Quote:

Originally Posted by sarettah (Post 23149918)
well i guess i can't help then

Far too many people trying to make money online without the most basic of technical skills.

brassmonkey 06-29-2023 11:03 AM

Quote:

Originally Posted by modulles (Post 23149462)
Hello sarettah
If you could please make a mobile responsive code for this wonderful fourth code you made?
I have been following you for a long time and for me you are the best teacher.
All my respect! Thank you on behalf of all those who learned from you!

just buy a plugin or script. end of story...

emmasexytime 06-29-2023 05:46 PM

Quote:

Originally Posted by brassmonkey (Post 23149929)
just buy a plugin or script. end of story...

:2 cents:
https://nichepornsites.com/how-to-ma...ive-cams-site/ :2 cents:

dUbster 06-29-2023 07:23 PM

Quote:

Originally Posted by modulles (Post 23149462)
Hello sarettah
If you could please make a mobile responsive code for this wonderful fourth code you made?
I have been following you for a long time and for me you are the best teacher.
All my respect! Thank you on behalf of all those who learned from you!

Here you go, I didn't test but you can try it

Code:

<?php
  // edit area
  $wmid='JkjyU';
  $tag='18';   
  $gender='f';
  $limit=32; 
  $camsdiv='camsdiv';
  // end of edit area

  // pulling client ip
  $client_ip='';
  if (isset($_SERVER['HTTP_CLIENT_IP']) && $_SERVER['HTTP_CLIENT_IP'] != "")
  {
    $clientip = addslashes($_SERVER['HTTP_CLIENT_IP']);
  }
  else if (isset($_SERVER['HTTP_X_FORWARDED_FOR']) && $_SERVER['HTTP_X_FORWARDED_FOR'] != "")
  {
    $clientip = addslashes($_SERVER['HTTP_X_FORWARDED_FOR']);
  }
  else
  {
    $clientip = addslashes($_SERVER['REMOTE_ADDR']);
  }

  // construct the api url
  $api_url="https://chaturbate.com/api/public/affiliates/onlinerooms/?wm=" . $wmid . "&format=xml&client_ip=" . $clientip;
 
  if($limit>0)
  {
    $api_url .="&limit=" . $limit;
  }
  if($tag>'')
  {
    $api_url .="&tag=" . $tag;
  }
  if($gender>'')
  {
    $api_url .="&gender=" . $gender;
  }
?>
<html>
<head>
<base href="https://gfy.com/" /><!--[if IE]></base><![endif]-->
<meta http-equiv="content-type" content="text/html; charset=windows-1250">       
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Example of pulling CB API Version 2</title>

<style>
.cams-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.cams-item {
  width: 100%;
  max-width: 300px;
  margin-bottom: 20px;
  text-align: center;
}

.cams-item a {
  color: #000000;
  font-weight: bold;
}

.cams-item img {
  max-width: 90%;
}
</style>

<script>
function parse_data(data, camsdiv)
{
  parser = new DOMParser();
  xmlDoc = parser.parseFromString(data,"text/xml");
  x=xmlDoc.getElementsByTagName("username");
  txt='';
 
  for (i = 0; i < x.length ;i++)
  {
    txt +='<div class="cams-item">';
    txt +='<a rel=nofollow href=' + xmlDoc.getElementsByTagName("chat_room_url_revshare")[i].childNodes[0].nodeValue + '>';
    txt +=xmlDoc.getElementsByTagName("username")[i].childNodes[0].nodeValue + '<br>';
    txt +='<img src=' + xmlDoc.getElementsByTagName("image_url")[i].childNodes[0].nodeValue + '><br>';
    txt +='</a>';
    txt +='</div>';
 
    document.getElementById(camsdiv).innerHTML +=txt;
    txt='';
  }
}
</script>
</head>
<body>
<div style="width:100%;text-align:center;">
<h1>Example of pulling Chaturbate API Version 2 using pure JavaScript</h1>
<br>
<div class="cams-container" name="camsdiv" id="camsdiv"></div>
</div>
<script>
pathin="<?php echo $api_url; ?>";

if (window.XMLHttpRequest)
{
  dirpage=new XMLHttpRequest();
}
else
{
  dirpage=new ActiveXObject("Microsoft.XMLHTTP");
}
dirpage.onreadystatechange=function()
{
  if (dirpage.readyState==4 && dirpage.status==200)
  {
    parse_data(dirpage.responseText, "<?php echo $camsdiv; ?>");
  }
}
dirpage.open("GET",pathin,true);
dirpage.send();

</script>

</body>
</html>


modulles 07-02-2023 01:25 PM

Quote:

Originally Posted by fuzebox (Post 23149555)
You can't just come up with your own responsive grid in css? :error

Any other beginner html designs you need sarettah to do for you?


Being a bad man is easy, it's harder to be a good man! And I didn't even ask you anything...
I asked Sarettah personally!
When I ask you personally, then react. OK?

sarettah 07-03-2023 07:04 AM

Quote:

Originally Posted by modulles (Post 23150826)
Being a bad man is easy, it's harder to be a good man! And I didn't even ask you anything...
I asked Sarettah personally!
When I ask you personally, then react. OK?

and you did ask very nicely.

i will see what i can do.

.

modulles 07-04-2023 10:50 AM

Quote:

Originally Posted by sarettah (Post 23151005)
and you did ask very nicely.

i will see what i can do.

.

I'm waiting for your answer Sarettah !
All my respect for what you do...:thumbsup

emmasexytime 07-07-2023 02:20 PM

Quote:

Originally Posted by modulles (Post 23151404)
I'm waiting for your answer Sarettah !
All my respect for what you do...:thumbsup

May i ask how you made xcamadult.com ? I like it. :thumbsup

Feel free to dm me if needed

fuzebox 07-07-2023 02:50 PM

Quote:

Originally Posted by modulles (Post 23150826)
Being a bad man is easy, it's harder to be a good man! And I didn't even ask you anything...
I asked Sarettah personally!
When I ask you personally, then react. OK?

Taking a weekend to learn the basics of css and responsive design will not only help you for years down the road with your online ventures, it will also help develop your problem solving skills.

If anything, I am the good one encouraging growth and personal development, and sarretah is the bad one for spoonfeeding newbies and encouraging laziness and dependence :thumbsup

sarettah 07-07-2023 08:24 PM

Quote:

Originally Posted by fuzebox (Post 23152273)
If anything, I am the good one encouraging growth and personal development, and sarretah is the bad one for spoonfeeding newbies and encouraging laziness and dependence :thumbsup


yep, i suck

JesseQuinn 07-07-2023 08:58 PM

the thing about a forum is that anyone can read what's posted. so something posted for one person can benefit a bunch of others who are intent on learning. posting code can help those learning via a concrete example...everyone has a different learning style but I personally find examples super helpful, as a jumping off point beyond the basics of a topic, be it learning code or anything. like with my first uni paper...I had no idea how to format the cover page. a friend showed me one of hers and I was like, awesome, gotcha, gracias

I remember eons ago S you helped me change a page background color on my site that color plugins wouldn't fix. then, next time I updated my old theme your fix disappeared and I could not figure out how to fix it. google was of NO help

so my annoying azz hit you up again, you explained exactly what you did and I learned something new, that I had no idea about before

I remember it was changing the page background border using a pixel, not a hex code. had you explained that to me without me being able to see what went where based on your work, I would have not had a fucking clue what you were talking about I was so much of a newb

I guess I see posting a snippet of code here the same way?

anyway, you rock. or no, you suck cuz you don't like dancehall

I try to be tolerant though as no one is perfect


dUbster is an enabler as well but I'll reserve judgement until I learn more about his tastes in music

modulles 07-08-2023 04:28 AM

Don't jump in without being asked!
 
Quote:

Originally Posted by fuzebox (Post 23152273)
Taking a weekend to learn the basics of css and responsive design will not only help you for years down the road with your online ventures, it will also help develop your problem solving skills.

If anything, I am the good one encouraging growth and personal development, and sarretah is the bad one for spoonfeeding newbies and encouraging laziness and dependence :thumbsup

Listen.. man, if you are a man!
From what I can see, it seems that you are the one who, rather than helping, offends the members of this forum.
Show how you have helped this forum and I can show the admin of this forum through printscreens that you are not doing anything good other than offending the world!
And in terms of basic knowledge, it seems that you are the most novice in this field

modulles 07-08-2023 05:20 AM

Quote:

Originally Posted by emmasexytime (Post 23152267)
May i ask how you made xcamadult.com ? I like it. :thumbsup

Feel free to dm me if needed

It is based on the code posted by Sarettah, I just added codes for responsive menu and banner
This code belongs to Sarettah, whom I want to congratulate once again for the humanity he shows!
You can see and download the code from Sarettah's post #45

JesseQuinn 07-08-2023 09:03 AM

Quote:

Originally Posted by modulles (Post 23152449)
...

you might want to ease up on Fuze. he's successful in adult and has been for years, navigating through all the twists and turns the biz has thrown at us from way before I even got into it myself

far as I'm concerned he's earned the right to be acerbic without being considered an asshole, which he is not

either way, this is gfy, not hug therapy. you've been here since 2014 and this offends you? 7 posts so I guess kinda new in that regard. you're in for a fun ride and also I bet you burned a bridge or two with that post. not wise

I wish you the best with your project

emmasexytime 07-14-2023 01:50 AM

Quote:

Originally Posted by modulles (Post 23152461)
It is based on the code posted by Sarettah, I just added codes for responsive menu and banner
This code belongs to Sarettah, whom I want to congratulate once again for the humanity he shows!
You can see and download the code from Sarettah's post #45

thank you, i agree sarettah is great, so much help <3

modulles 08-14-2023 01:00 PM

I want help!
 
Quote:

Originally Posted by sarettah (Post 22822552)
Nope.

I could tell you what I am doing but then I would have to kill you. Seriously.

.

Hello sarettah ! Could you still explain the redirection of the "miracle folder" - webcams? This, of course, if you want to help me or maybe others who did not understand the same as me how you proceeded step by step! Thank you on behalf of all those who want to know how you did it!

modulles 08-18-2023 05:31 AM

Quote:

Originally Posted by modulles (Post 23165561)
Hello sarettah ! Could you still explain the redirection of the "miracle folder" - webcams? This, of course, if you want to help me or maybe others who did not understand the same as me how you proceeded step by step! Thank you on behalf of all those who want to know how you did it!


Update! I want to say that I solved it myself. You can see the site from my signature "xcamadult" If you want you can explain it to others. Anyway, I still congratulate you for all your explanations...!

sarettah 08-21-2023 02:14 PM

Quote:

Originally Posted by modulles (Post 23165561)
Hello sarettah ! Could you still explain the redirection of the "miracle folder" - webcams? This, of course, if you want to help me or maybe others who did not understand the same as me how you proceeded step by step! Thank you on behalf of all those who want to know how you did it!

It's a secret?

j/k. I use a php program in there to do a redirect to the actual cam page. That allows me to capture the hit in a database and also make decisions regarding the hit.

In that folder I have an htaccess fiole that redirects everything to the /webcams/index.php file. That file is the program that decides where to redirect to.

RewriteEngine On
RewriteRule ^(.*)$ index.php

For example, this is from the script I have in the webcams folder on milffoxes.

<?php
// hookitup is a function in my functions library that creates the database connection
$db=hookitup();

$tag="";
$redir="";

// pull in the requested address
$work=$_SERVER['REQUEST_URI'];

// split address at / to get at tag
if(substr_count($work,"/")>0)
{
$tag=strtolower(substr($work,strrpos($work,"/")+1));
$tag=trim(str_replace(".htm","",str_replace(".php" ,"",strtolower($tag))));
}

// if tag is webmaster signup redirect to webmaster sign up page
if($tag=='webmaster_signup')
{
$redir="https://chaturbate.com/in/?track=xxxxxx&tour=xxxxx&campaign=xxxxxx";
header('Location: ' . $redir);
exit;
}
// if tag is webcam model signup redirect to webcam model sign up page
if($tag=='webcam_model_signup')
{
$redir="https://chaturbate.com/in/?track=xxxxxx&tour=xxxxx&campaign=xxxxx";
header('Location: ' . $redir);
exit;
}

// do cookie read/set here.
$cookiename='unq';
if(!isset($_COOKIE['unq']))
{
$isuniq=1;
}
setcookie('unq',1,time()+2592000,'/');

if(isset($_COOKIE['camviews']))
{
$camviews=intval($_COOKIE['camviews']);
}
$camviews++;
setcookie('camviews',$camviews,time()+2592000,'/');

// 11012014 - do not count googlebot as unique
$gbot=0;
if(substr_count(strtolower($_SERVER['HTTP_USER_AGENT']),'googlebot')>0)
{
$isuniq=0;
$gbot=1;
}

$redir="https://milffoxes.com";
if(!empty($tag))
{
$redir="https://chaturbate.com/in/?tour=xxxxx&campaign=xxxxx&track=xxxxx&disable_sou nd=1&room=" . $tag;
}

if(!empty($tag))
{
$sql_str="insert into mf_hitcount(date, count, uniq, gbot) ";
$sql_str .="values('" . date("Y-m-d", time()-7200) . "', 1," . $isuniq . "," . $gbot .") ";
$sql_str .="on duplicate key update count=count+1, uniq=uniq+" . $isuniq . ", gbot=gbot+" . $gbot;
$db->query($sql_str);
}

header('Location: ' . $redir);

?>

modulles 08-22-2023 06:30 AM

I used "wildcard" redirection from the server for that folder, which as you can see in the source of my site from the signature "xcamadult" which I named "models" with reference to my witelabel from chaturbate.
It works perfectly !
Anyway, thank you in my name and in the name of everyone who received teachings from you and did not thank you!

Mr Pheer 12-15-2023 11:20 AM

Quote:

Originally Posted by modulles (Post 23168354)
I used "wildcard" redirection from the server for that folder, which as you can see in the source of my site from the signature "xcamadult" which I named "models" with reference to my witelabel from chaturbate.
It works perfectly !
Anyway, thank you in my name and in the name of everyone who received teachings from you and did not thank you!

You copied his code, but you left "MILF Foxes" in the text on your entry page.

https://i.imgur.com/e3lyPhm.png

Mr Pheer 12-15-2023 11:51 AM

I set one up but I did it differently, I used wordpress with cyberseo.

It just pulls online cams every few minutes and updates the images and the links. All links clicked go to whitelabel. It's not finished as I was just testing with this one and I don't really push anything with this domain.

I'm sure it drives googlebot nuts with adding and deleting new blog posts every 5 minutes

https://videocamfriends.com

I'd love to get sarettah's code working inside wordpress.

NoWhErE 12-15-2023 11:59 AM

Quote:

Originally Posted by Mr Pheer (Post 23209794)
I'd love to get sarettah's code working inside wordpress.

Should only be a few hours work depending on if you want it as a plugin or directly integrated into your theme.

NoWhErE 12-15-2023 12:02 PM

Sarettah, maybe you should push your code to a cloud function solution like firebase and sell it as a service.

Even if you don’t sell it, at least you’d be able to use your solution in any website without having to worry about your server specs or overloading the client’s browser

Mr Pheer 12-15-2023 12:30 PM

Quote:

Originally Posted by NoWhErE (Post 23209797)
Should only be a few hours work depending on if you want it as a plugin or directly integrated into your theme.

I've never made a plugin before but it's a good idea. I'll start learning it after lunch.

sarettah 12-15-2023 01:45 PM

Quote:

Originally Posted by NoWhErE (Post 23209799)
Sarettah, maybe you should push your code to a cloud function solution like firebase and sell it as a service.

Even if you don’t sell it, at least you’d be able to use your solution in any website without having to worry about your server specs or overloading the client’s browser

I will talk to you about this privately, thanks

NoWhErE 12-15-2023 06:25 PM

Quote:

Originally Posted by Mr Pheer (Post 23209814)
I've never made a plugin before but it's a good idea. I'll start learning it after lunch.

Dunno how good you are with coding, but if you use IDE's like PHPstorm, there are Wordpress features that make it super easy to code anything for WP.

Just start with a basic plugin template and code out a few functions to ping APIs and interpret the data given back. Easy-peasy

emmasexytime 12-16-2023 01:13 AM

Quote:

Originally Posted by Mr Pheer (Post 23209794)
I set one up but I did it differently, I used wordpress with cyberseo.

It just pulls online cams every few minutes and updates the images and the links. All links clicked go to whitelabel. It's not finished as I was just testing with this one and I don't really push anything with this domain.

I'm sure it drives googlebot nuts with adding and deleting new blog posts every 5 minutes

https://videocamfriends.com

I'd love to get sarettah's code working inside wordpress.

Can't you just use the chaturbate cam listing promo tool for that ? like this way?

Code:

<iframe src="https://cam.xrateduniversity.com/in/?tour=x1Rd&campaign=6qw7X&track=default&c=15&p=1&gender=x"></iframe>
Can you adjust your site to create new pages for each model ? and have each model's image go to that created page? So time on site improves a lot too and number of pages indexed :thumbsup

Andreweb 12-17-2023 09:16 AM

Quote:

Originally Posted by Mr Pheer (Post 23209794)
I'd love to get sarettah's code working inside wordpress.

I already use Sarettah's code integrated into WordPress and it works just fine!

Mr Pheer 12-18-2023 02:34 PM

Quote:

Originally Posted by emmasexytime (Post 23210017)
Can't you just use the chaturbate cam listing promo tool for that ? like this way?

Code:

<iframe src="https://cam.xrateduniversity.com/in/?tour=x1Rd&campaign=6qw7X&track=default&c=15&p=1&gender=x"></iframe>
Can you adjust your site to create new pages for each model ? and have each model's image go to that created page? So time on site improves a lot too and number of pages indexed :thumbsup

I could, and it's a great idea and easy to do with cyberseo already. But it's not really what I'm wanting to do with a different site I'm working on. Not the site that I showed earlier.

Mr Pheer 12-18-2023 02:35 PM

Quote:

Originally Posted by Andreweb (Post 23210465)
I already use Sarettah's code integrated into WordPress and it works just fine!

Could you PM me with a link? I'd like to take a look. Thanks.


All times are GMT -7. The time now is 06:25 AM.

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