![]() |
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 |
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.
|
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? . |
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. . |
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. . |
the master has spoken :)
|
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! |
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"; } . |
Thank you soooo much Sarettah.My website loads in 3-4 seconds now :thumbsup I've added a cache time and it works perfectly now.Thanks a lot!!!
|
Quote:
|
Quote:
. |
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 :(
|
Quote:
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. . |
Quote:
|
could you make your white label easier to use?
Ours is super simple |
Quote:
If me, well, I am not a rep for anyone but me and I don't have a whitelabel. . |
I encourage everyone to try out our new White Label .. see sig
|
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
|
Quote:
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> Code:
<div class=sb_pager>...<div> |
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
|
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?
|
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 ?
|
Seems to work fine on iphone
Quote:
|
cams.sexcamly.com is a whitelabel hosted at chaturbate. The sexcamly.com site is just styled to look similar to the whitelabel.
Quote:
|
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:
|
Quote:
2) Chaturbate Customer support said: "We have deployed a fix for this issue, embedded videos will not be redirected to m.chaturbate" |
All times are GMT -7. The time now is 05:18 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123