Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 08-23-2014, 12:16 PM   #1
k33n
Confirmed User
 
Join Date: Feb 2009
Posts: 201
Chaturbate API - Need Help

Hello GFY members

I am using a script found on internet (nomoneyinporn) for my chaturbate xml based WL.I did some modifications to it,mostly visual,but i can't figure out how to speed it up.I did all i could find on the web,changed hosts,tried a VPS but didn't do the trick.My website speed is between 6 to 20 seconds to load,which is very bad.Visitors won't stay and BIG G gets very angry.From what i could see,80% of loading time is "waiting".I guess waiting in line to download resources from chaturbate.I found a couple of sites that are using the same API,not sure if the same script too,and they don't seem to have speed issues.I am thinking they somehow downloaded resources in the backend and are serving pages from their own server,avoiding long waiting time for the user.So please,if you know how,help me improve my website's speed.Many Thanks!

My website: Secsy dot net
k33n is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-23-2014, 01:16 PM   #2
gnawledge
confirmed loser
 
gnawledge's Avatar
 
Industry Role:
Join Date: Jul 2012
Location: Florida
Posts: 1,092
I feel your pain man. I'm using it on a few domains and they are super slow like you said. I hope you searched high and low in the coding and stuff because they put their affiliate code in a lot of places where you may not see them.
gnawledge is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-23-2014, 01:50 PM   #3
sarettah
l8r
 
Industry Role:
Join Date: Oct 2002
Posts: 13,488
Hmm. the main reason for the speed issue is because the script is probably grabbing the xml file every time you navigate anywhere.

So, when the page initially loads..load the xml.
then when they click femals. load the xml.
then when they hit page 2. load the xml.

etc etc etc

Each time the xml loads, the script goes out to chaturbate, gets the file, pulls it across.

That page hit is probably the longest operation in any script doing this and sometimes chaturbate can time out while delivering the file. The entire time this is going on your site looks like it is doing nothing.

So, the best way to speed up something pulling this way is to pull the xml file once every so many minutes and store the info and then pull from the info store instead of from chaturbate.

that make sense?

.
sarettah is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-23-2014, 02:25 PM   #4
sarettah
l8r
 
Industry Role:
Join Date: Oct 2002
Posts: 13,488
I looked at the script that is on nomoneyinporn, the one labeled CHATURBATE WHITELABEL SCRIPT.

What I would probably do with this.

1. Make a folder on the server to store a file in.
2. Put together a script to pull the xml file from chaturbate and write it to my folder.
3. Set up a cron to run that script every 5 minutes or so.
4. Everywhere in the script that calls the xml file, change the reference to call the file I wrote.

That will stop the site from having to go out to chaturbate on every nav change and should produce a significant improvement in performance.

.
sarettah is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-23-2014, 03:38 PM   #5
sarettah
l8r
 
Industry Role:
Join Date: Oct 2002
Posts: 13,488
no money in porn script original version pulling xml from chaturbate each page change http://madspiders.com/nmip/indexv1.php

no money in porn script pulling xml locally each page change http://madspiders.com/nmip/indexv2.php

Difference is about 9 seconds.

.
sarettah is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-23-2014, 05:13 PM   #6
Panty Snatcher
eat a peach for Hours
 
Industry Role:
Join Date: Aug 2013
Posts: 540
the master has spoken
Panty Snatcher is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-24-2014, 02:38 AM   #7
k33n
Confirmed User
 
Join Date: Feb 2009
Posts: 201
Hi and thanks for joining this thread,

You are absolutely right Sarettah,i need to store info on my server,especially images.Here is how i think it should be:

1.call the original xml file from chaturbate
2.save images on local folder or db
3.create new xml with the data from original xml but updated image locations to local folder
4.change the xml file to call in the script
5.set a cronjob to update every 2-5 minutes

First of all,you should know that my programming skills are limited to html and css.In php i can only deal with echo and simple variables.But i can follow a tutorial,so right now im stuck at how to save images.After that i'll be stuck at how to create the new xml with updated image location.I saw your examples,and indeed,you took care of that waiting time.But to be honest i have no idea what you did or how you did it.So please,can you explain a little more?Thanks!
k33n is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-24-2014, 05:41 AM   #8
sarettah
l8r
 
Industry Role:
Join Date: Oct 2002
Posts: 13,488
You are overthinking it imho.

I would not do the images if I were you.

In my camfoxes.com I am letting chaturbate serve up the images. The only thing I am pulling serverside is the data and it appears to do fine.

just imho.

Pulling the xml file is pretty easy. use file_get_contents() to open the remote file. Use file_put_contents to write the local copy to disk.

$flname="/server file path/filename";
$url="xml url";
$data=file_get_contents($url);
if(!empty($data))
{
file_put_contents($flname,$data);
}
else
{
echo "Did not get a file back<br>\n";
}


.

Last edited by sarettah; 08-24-2014 at 05:45 AM..
sarettah is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-24-2014, 07:56 AM   #9
k33n
Confirmed User
 
Join Date: Feb 2009
Posts: 201
Thank you soooo much Sarettah.My website loads in 3-4 seconds now I've added a cache time and it works perfectly now.Thanks a lot!!!
k33n is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-24-2014, 08:00 AM   #10
k33n
Confirmed User
 
Join Date: Feb 2009
Posts: 201
Quote:
Originally Posted by Panty Snatcher View Post
the master has spoken
INDEED!
k33n is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-24-2014, 09:34 AM   #11
sarettah
l8r
 
Industry Role:
Join Date: Oct 2002
Posts: 13,488
Quote:
Originally Posted by k33n View Post
Thank you soooo much Sarettah.My website loads in 3-4 seconds now I've added a cache time and it works perfectly now.Thanks a lot!!!
Glad it worked for you.

.
sarettah is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-24-2014, 11:18 AM   #12
Andreweb
Confirmed User
 
Andreweb's Avatar
 
Industry Role:
Join Date: Mar 2013
Location: Internet
Posts: 2,422
Wow your site is loading very fast now ! I tried to build a site using CB APIs but I didn't succed , and those free scripts are real slow
__________________
Make Money With: Chaturbate
Andreweb is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-24-2014, 11:40 AM   #13
sarettah
l8r
 
Industry Role:
Join Date: Oct 2002
Posts: 13,488
Quote:
Originally Posted by Andreweb View Post
Wow your site is loading very fast now ! I tried to build a site using CB APIs but I didn't succed , and those free scripts are real slow
Many things that are free are worth every cent you paid for them

On the nomoneyinporn script, looked at it and it is not bad for a freebie at all. There are some minor warning messages to be handled but other than that, it worked right out of the box.

The modification to put the file local and pull from it took less than 15 minutes to put together.

So, if you wanted to try again I am sure there are some people that would help you on it.

.
sarettah is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-24-2014, 09:16 PM   #14
CPA-Rush
small trip to underworld
 
Industry Role:
Join Date: Mar 2012
Location: first gen intel 80386/nintendo-gb/arcade/ps1/internet person
Posts: 4,927
Quote:
Originally Posted by Andreweb View Post
Wow your site is loading very fast now ! I tried to build a site using CB APIs but I didn't succed , and those free scripts are real slow
they are super slow bc they need pagination plus the caching
__________________

automatic exchange - paxum , bitcoin,pm, payza

. daizzzy signbucks caution will black-hat black-hat your traffic

ignored forever :zuzana designs
CPA-Rush is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-25-2014, 11:25 AM   #15
MTCCash
Registered User
 
Industry Role:
Join Date: Jun 2014
Posts: 53
could you make your white label easier to use?

Ours is super simple
__________________
MyTubeCams Cash
Live Video Chat Affiliate Program

25% LFTM RevShare, 10% Affiliate Referral, 5% Performer/Studio Referral
http://cash.mytubecams.com
White Labels / Iframes / Flash Banners
Skype: tim.chirillo
ICQ: 431555157
[email protected]
MTCCash is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-25-2014, 01:03 PM   #16
sarettah
l8r
 
Industry Role:
Join Date: Oct 2002
Posts: 13,488
Quote:
Originally Posted by MTCCash View Post
could you make your white label easier to use?

Ours is super simple
Who are you asking?

If me, well, I am not a rep for anyone but me and I don't have a whitelabel.

.
sarettah is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-26-2014, 05:15 AM   #17
MTCCash
Registered User
 
Industry Role:
Join Date: Jun 2014
Posts: 53
I encourage everyone to try out our new White Label .. see sig
__________________
MyTubeCams Cash
Live Video Chat Affiliate Program

25% LFTM RevShare, 10% Affiliate Referral, 5% Performer/Studio Referral
http://cash.mytubecams.com
White Labels / Iframes / Flash Banners
Skype: tim.chirillo
ICQ: 431555157
[email protected]
MTCCash is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-18-2016, 11:12 PM   #18
adulttemps
Confirmed User
 
Industry Role:
Join Date: May 2002
Location: Brentwood,TN Heredia, Costa Rica
Posts: 320
Just a quick update for anyone using this script, I have added some updates and it is now responsive. You can get the updated script here https://github.com/hillipino/Chaturbate-API
__________________
Hillipino Money with Cams
adulttemps is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-17-2016, 12:49 PM   #19
Firestarter30
Confirmed User
 
Industry Role:
Join Date: Sep 2010
Location: The Land Of Gods
Posts: 167
Quote:
Originally Posted by adulttemps View Post
Just a quick update for anyone using this script, I have added some updates and it is now responsive. You can get the updated script here https://github.com/hillipino/Chaturbate-API
Its a nice script i tested it today locally.
Any tips on integrating live cams on a bootstrap site?
Im actually interested in integrating specifically those 2 divs
Code:
<div class=row uniform>...<div>
and
Code:
<div class=sb_pager>...<div>
Thanks in advance
Firestarter30 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-21-2016, 04:42 PM   #20
phman79
Confirmed User
 
Industry Role:
Join Date: Sep 2014
Posts: 227
Hey

Thanks for the awesome script! I'm used to wordpress though and I don't know how to add a description for each page, its not pulling it when I check it out on analyzer
phman79 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-25-2016, 12:20 PM   #21
TitanWM
Confirmed User
 
TitanWM's Avatar
 
Industry Role:
Join Date: Dec 2015
Posts: 111
Can anyone tell me how to do that: sexcamlyDOTcom use the chaturbate api (an updated script I have seen here on GFY to download), but the iframes pointed to the same IP adress (sexcamlyDOTcom <--> cams.sexcamlyDOT.com have the same IP adresse). The subdomain looks like a whitelabel from chaturbate. Is the site hosted by chaturbate?
__________________
CamSoda invite link - promote an unsatisfied cam site!
TitanWM is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-31-2017, 02:48 PM   #22
Nick Tosser
Confirmed User
 
Nick Tosser's Avatar
 
Industry Role:
Join Date: Jun 2008
Location: Worldwide
Posts: 168
I have some troubles with my white label website www.hotcam4you.com only on smartphone i've this error message "HTTP 404 - Page Not Found" the video streaming no longer appear, what can i do ?
Nick Tosser is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-01-2017, 10:12 PM   #23
adulttemps
Confirmed User
 
Industry Role:
Join Date: May 2002
Location: Brentwood,TN Heredia, Costa Rica
Posts: 320
Seems to work fine on iphone

Quote:
Originally Posted by Nick Tosser View Post
I have some troubles with my white label website www.hotcam4you.com only on smartphone i've this error message "HTTP 404 - Page Not Found" the video streaming no longer appear, what can i do ?
__________________
Hillipino Money with Cams
adulttemps is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-01-2017, 10:14 PM   #24
adulttemps
Confirmed User
 
Industry Role:
Join Date: May 2002
Location: Brentwood,TN Heredia, Costa Rica
Posts: 320
cams.sexcamly.com is a whitelabel hosted at chaturbate. The sexcamly.com site is just styled to look similar to the whitelabel.


Quote:
Originally Posted by TitanWM View Post
Can anyone tell me how to do that: sexcamlyDOTcom use the chaturbate api (an updated script I have seen here on GFY to download), but the iframes pointed to the same IP adress (sexcamlyDOTcom <--> cams.sexcamlyDOT.com have the same IP adresse). The subdomain looks like a whitelabel from chaturbate. Is the site hosted by chaturbate?
__________________
Hillipino Money with Cams
adulttemps is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-01-2017, 10:17 PM   #25
adulttemps
Confirmed User
 
Industry Role:
Join Date: May 2002
Location: Brentwood,TN Heredia, Costa Rica
Posts: 320
In index.php you can set the page descriptions for the cams, just add the description where it says description.

$core->addCommand('cam', 'tpl_view_cams', SITENAME . ' - ' . $arg1 . '\'s Live Web Cam', 'Description','Keywords');

$arg1 is the username








Quote:
Originally Posted by TitanWM View Post
Can anyone tell me how to do that: sexcamlyDOTcom use the chaturbate api (an updated script I have seen here on GFY to download), but the iframes pointed to the same IP adress (sexcamlyDOTcom <--> cams.sexcamlyDOT.com have the same IP adresse). The subdomain looks like a whitelabel from chaturbate. Is the site hosted by chaturbate?
__________________
Hillipino Money with Cams
adulttemps is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-02-2017, 02:21 AM   #26
Nick Tosser
Confirmed User
 
Nick Tosser's Avatar
 
Industry Role:
Join Date: Jun 2008
Location: Worldwide
Posts: 168
Quote:
Originally Posted by adulttemps View Post
In index.php you can set the page descriptions for the cams, just add the description where it says description.

$core->addCommand('cam', 'tpl_view_cams', SITENAME . ' - ' . $arg1 . '\'s Live Web Cam', 'Description','Keywords');

$arg1 is the username
1) On index.php i don't see anything like description ?


2) Chaturbate Customer support said: "We have deployed a fix for this issue, embedded videos will not be redirected to m.chaturbate"
Nick Tosser is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.