A simple chaturbate embed widget using the chaturbate api

Discussion Of All Legal Topics Is Fine Anything Goes. Be Respectful of Others. No Personal Information or Attacks.
All Traffic, Link, Banner, Push Notification and Advertising, Offers & Requests Here,.
Domains & Websites For Sale and Requests Here.
Keep One thread per person & No More Than 1 Weekly Bump.
User avatar
sarettah
Verified Member
Verified Member
Posts: 125
Joined: January 10th, 2022, 10:39 am

#16

Post by sarettah » March 9th, 2023, 10:03 am

born2bewild wrote: ↑
March 9th, 2023, 5:33 am
What are the main issues implementing this for bonga?
1. the api call when done locally using ajax gets blocked by add blockers.
2. the iframes using bongas code also get blocked by adblockers
3. i do not know if there is a way to pull, like on cb, from the whitelabel instead of from the site bonga has their links pointing to (bngprm.com). This is because I did not want to go through the hassle of doing a white label there as it appears that you must buy a security cert (notice on the front of the whitelabel screen)
After updating the browsers, numerous BongaCams features became unavailable for the White Label pages that operate via http protocol. Limiting paid options on your website can adversely affect its traffic and your overall income.

All BongaCams White Labels should be switched to https to meet our resource standards. Please contact your personal manager to select the most suitable option for purchasing an SSL certificate.
4. On the version 2 api which is what i would use because i can limit the pull to 1 cam, you cannot pull by gender

I might be able to get something working with a server side solution using php but i am trying to keep this whole thing pretty simple

User avatar
BrasSmonkey
Verified Member
Verified Member
Posts: 7892
Joined: February 28th, 2018, 6:31 pm
Title: Smell My Sack
Referrals: 1
Contact:

#17

Post by BrasSmonkey » March 31st, 2023, 2:53 am

this is crazy! both stripcam and this one the cams are private mode...
THE LAKEN RILEY ACT IS NOW LAW!!! TRUMP 2025!!!
DACA HAS ENDED!!! email: brassballz-@-techie.com

User avatar
sarettah
Verified Member
Verified Member
Posts: 125
Joined: January 10th, 2022, 10:39 am

#18

Post by sarettah » March 31st, 2023, 11:35 am

BrasSmonkey wrote: ↑
March 31st, 2023, 2:53 am
this is crazy! both stripcam and this one the cams are private mode...
i just tested this widget and i got a live cam not a private

i forgot a touch of code in here, i usually check to make sure the current status is public and i did not do that, i instead assumed they were only returning live public cams

i will see what i can do about that

however, even if they are public when i parse the api data does not mean they won't go private a second later, ya know?

.

User avatar
sarettah
Verified Member
Verified Member
Posts: 125
Joined: January 10th, 2022, 10:39 am

#19

Post by sarettah » March 31st, 2023, 11:59 am

I have modified the code in order to try to avoid private rooms

i changed code in the sarettah_cb_widget.js file

first i changed the api call to pull in a limit of 50 cams. we will use the first cam that comes in as public for this

then down in the parse_data function i changed it to loop through the returned cams until it finds a public cam (usually will be the first cam)

function parse_data(data)
{
parser = new DOMParser();
xmlDoc = parser.parseFromString(data,"text/xml");
for(i=0;i<xmlDoc.getElementsByTagName("username").length;i++)
{
if(xmlDoc.getElementsByTagName("current_show").childNodes[0].nodeValue=='public')
{
if(wlname>'')
{
document.getElementById('currcam').src='//' + wlname +'/in/?tour=9oGW&campaign=' + wmid + 'JkjyU&track=' + trackcode + '&room=' + xmlDoc.getElementsByTagName("username").childNodes[0].nodeValue + '&bgcolor=black&disable_sound=1&mobileRedirect=auto&embed_video_only=1';
}
else
{
document.getElementById('currcam').src='//chaturbate.com/in/?tour=9oGW&campaign=' + wmid + 'JkjyU&track=' + trackcode + '&room=' + xmlDoc.getElementsByTagName("username").childNodes[0].nodeValue + '&bgcolor=black&disable_sound=1&mobileRedirect=auto&embed_video_only=1';
}
document.getElementById('modellink').href='cams/' + xmlDoc.getElementsByTagName("username").childNodes[0].nodeValue;
i=xmlDoc.getElementsByTagName("username").length;
}
}
}

the new code is zipped up at https://sexycamfoxes.com/sarettah_cb_widget.zip

or you can just grab the .js file and replace the one you are using with it https://sexycamfoxes.com/sarettah_cb_widget.js

hope this helps the issues you are seeing there bm. thanks for calling it to my attention.

.

User avatar
BrasSmonkey
Verified Member
Verified Member
Posts: 7892
Joined: February 28th, 2018, 6:31 pm
Title: Smell My Sack
Referrals: 1
Contact:

#20

Post by BrasSmonkey » March 31st, 2023, 12:22 pm

sarettah wrote: ↑
March 31st, 2023, 11:35 am
BrasSmonkey wrote: ↑
March 31st, 2023, 2:53 am
this is crazy! both stripcam and this one the cams are private mode...
i just tested this widget and i got a live cam not a private

i forgot a touch of code in here, i usually check to make sure the current status is public and i did not do that, i instead assumed they were only returning live public cams

i will see what i can do about that

however, even if they are public when i parse the api data does not mean they won't go private a second later, ya know?

.
kool so you can filter out private?
THE LAKEN RILEY ACT IS NOW LAW!!! TRUMP 2025!!!
DACA HAS ENDED!!! email: brassballz-@-techie.com

User avatar
sarettah
Verified Member
Verified Member
Posts: 125
Joined: January 10th, 2022, 10:39 am

#21

Post by sarettah » March 31st, 2023, 12:39 pm

BrasSmonkey wrote: ↑
March 31st, 2023, 12:22 pm
kool so you can filter out private?
see the post above your last

.

User avatar
BrasSmonkey
Verified Member
Verified Member
Posts: 7892
Joined: February 28th, 2018, 6:31 pm
Title: Smell My Sack
Referrals: 1
Contact:

#22

Post by BrasSmonkey » March 31st, 2023, 4:20 pm

will you be releasing the api 2 with embed video like when they click it stays on site?
THE LAKEN RILEY ACT IS NOW LAW!!! TRUMP 2025!!!
DACA HAS ENDED!!! email: brassballz-@-techie.com

User avatar
sarettah
Verified Member
Verified Member
Posts: 125
Joined: January 10th, 2022, 10:39 am

#23

Post by sarettah » March 31st, 2023, 5:25 pm

BrasSmonkey wrote: ↑
March 31st, 2023, 4:20 pm
will you be releasing the api 2 with embed video like when they click it stays on site?
I don't know what you are asking.

I have this set to send to the room so the user can spend money. This is an embed. Why would i want the user to stay on the site i am on where they can't spend any money?

sorry, i am just lost, again.

So could you please describe a little deeper what you want there.

Thanks

CamLuCy
Verified Member
Verified Member
Posts: 461
Joined: January 14th, 2019, 9:29 am

#24

Post by CamLuCy » March 31st, 2023, 5:44 pm

sarettah wrote: ↑
March 31st, 2023, 5:25 pm
I have this set to send to the room so the user can spend money. This is an embed. Why would i want the user to stay on the site i am on where they can't spend any money?
That is the ultimate goal to make money 34ddww




User avatar
BrasSmonkey
Verified Member
Verified Member
Posts: 7892
Joined: February 28th, 2018, 6:31 pm
Title: Smell My Sack
Referrals: 1
Contact:

#25

Post by BrasSmonkey » March 31st, 2023, 7:16 pm

sarettah wrote: ↑
March 31st, 2023, 5:25 pm
BrasSmonkey wrote: ↑
March 31st, 2023, 4:20 pm
will you be releasing the api 2 with embed video like when they click it stays on site?
I don't know what you are asking.

I have this set to send to the room so the user can spend money. This is an embed. Why would i want the user to stay on the site i am on where they can't spend any money?

sorry, i am just lost, again.

So could you please describe a little deeper what you want there.

Thanks
i see... thanx
THE LAKEN RILEY ACT IS NOW LAW!!! TRUMP 2025!!!
DACA HAS ENDED!!! email: brassballz-@-techie.com

TightAss
Verified Member
Verified Member
Posts: 243
Joined: February 17th, 2020, 8:35 am

#26

Post by TightAss » April 2nd, 2023, 9:18 am

So its okay to use it for free, you not selling this?




User avatar
sarettah
Verified Member
Verified Member
Posts: 125
Joined: January 10th, 2022, 10:39 am

#27

Post by sarettah » April 2nd, 2023, 1:31 pm

TightAss wrote: ↑
April 2nd, 2023, 9:18 am
So its okay to use it for free, you not selling this?
10 bazillion dollars and you can use it

j/k use it as needed, don't sell it and i am cool

.

TightAss
Verified Member
Verified Member
Posts: 243
Joined: February 17th, 2020, 8:35 am

#28

Post by TightAss » April 2nd, 2023, 3:03 pm

sarettah wrote: ↑
April 2nd, 2023, 1:31 pm
TightAss wrote: ↑
April 2nd, 2023, 9:18 am
So its okay to use it for free, you not selling this?
10 bazillion dollars and you can use it

j/k use it as needed, don't sell it and i am cool

.
r6d10k




User avatar
pussyhunter
Verified Member
Verified Member
Posts: 959
Joined: July 13th, 2018, 3:40 am

#29

Post by pussyhunter » April 3rd, 2023, 7:57 pm

sarettah wrote: ↑
April 2nd, 2023, 1:31 pm
TightAss wrote: ↑
April 2nd, 2023, 9:18 am
So its okay to use it for free, you not selling this?
10 bazillion dollars and you can use it

j/k use it as needed, don't sell it and i am cool

.
Will Brazilian dollars do d64bvjh




User avatar
sarettah
Verified Member
Verified Member
Posts: 125
Joined: January 10th, 2022, 10:39 am

#30

Post by sarettah » May 5th, 2023, 1:34 pm

I was reviewing this thread today and found a mistake :( Hate when i do that. My apologies to all.

It is a pretty big mistake that would affect you getting credit for your hits.

In the javascript (sarettah_cb_widget.js) down around line 47 and then again around line 51 I inadvertently left my webmaster id in the string.

So, in the code, I end up concatenating your webmaster id onto my webmaster id and it ends up being a webmaster id that does not exist and therefore nobody gets credit for the hit :(

I have put a new javascript file up on the server in the zip file https://sexycamfoxes.com/sarettah_cb_widget.zip with the lines corrected.

If you want to fix the code yourself then where the code says:

if(wlname>'')
{
document.getElementById('currcam').src='//' + wlname +'/in/?tour=9oGW&campaign=' + wmid + 'JkjyU&track=' + trackcode + '&room=' + xmlDoc.getElementsByTagName("username")[0].childNodes[0].nodeValue + '&bgcolor=black&disable_sound=1&mobileRedirect=auto&embed_video_only=1';
}
else
{
document.getElementById('currcam').src='//chaturbate.com/in/?tour=9oGW&campaign=' + wmid + 'JkjyU&track=' + trackcode + '&room=' + xmlDoc.getElementsByTagName("username")[0].childNodes[0].nodeValue + '&bgcolor=black&disable_sound=1&mobileRedirect=auto&embed_video_only=1';
}
// do next line if you are pulling from whitelabel but sending to main page
document.getElementById('modellink').href='cams/' + xmlDoc.getElementsByTagName("username")[0].childNodes[0].nodeValue;
}

Change that to:

if(wlname>'')
{
document.getElementById('currcam').src='//' + wlname +'/in/?tour=9oGW&campaign=' + wmid + '&track=' + trackcode + '&room=' + xmlDoc.getElementsByTagName("username")[0].childNodes[0].nodeValue + '&bgcolor=black&disable_sound=1&mobileRedirect=auto&embed_video_only=1';
}
else
{
document.getElementById('currcam').src='//chaturbate.com/in/?tour=9oGW&campaign=' + wmid + '&track=' + trackcode + '&room=' + xmlDoc.getElementsByTagName("username")[0].childNodes[0].nodeValue + '&bgcolor=black&disable_sound=1&mobileRedirect=auto&embed_video_only=1';
}
// do next line if you are pulling from whitelabel but sending to main page
document.getElementById('modellink').href='cams/' + xmlDoc.getElementsByTagName("username")[0].childNodes[0].nodeValue;
}

again my apologies, i am sorry for causing anybody anybody any issues :(

edited in: I just realized that the webmaster id error is in the url pulling the video so it is where the cookie would be set. Since we are also doing our webmaster id on url when somebody clicks in then there is a chance you will get credit, depends on if Chaturbate allows an invalid webmaster id in the cookie.

A simple chaturbate embed widget using the chaturbate api

Post Reply