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)
-   -   Embed Live Cams script (https://gfy.com/showthread.php?t=1151340)

funnytimecpl 10-05-2014 03:14 AM

Embed Live Cams script
 
Hello,
Can anybody help me with some advice or a script?

I'm trying to make a embed live cam site , but can't find a script to call API from chaturbate , bongacams , etc.

What I tryed : Wordpress with detube theme and all import plugin. I got , cams from chaturbate , but thats it , only chaturbate , and when a user enters, most of the time chat girls are offline , setted up cron jobs , but still no luck.

What i'm trying to do : megacams.me ( best example ) , livebitches.net, vetocam.com

only at the end to add personal blog , advices , affiliate links , etc. to make an extra buck beside camming.

Hope I will get some help around here :)

HerPimp 10-05-2014 03:36 AM

He is not using wordpress, looks like bootstrap.

You can keep it simple, make subdomains and point it at their dns.

funnytimecpl 10-05-2014 03:37 AM

I can do that , but the point in making a site like that is so I can make some extra bucks from affiliates :)

funnytimecpl 10-06-2014 01:42 AM

Nobody else?

xxxtubers 10-10-2014 12:23 PM

The script of livebitches.net was around a while ago but couldn't find it anymore in google. I would like to have the script of vetocam.com looks cool.

Andreweb 10-10-2014 10:38 PM

livebitches.net is made with a free script that was on nomoneyinporn.org but now the website is down for weeks ! I saw a wordpress plugin in the past somewhere on internet but I don't remember where !

k33n 10-10-2014 11:11 PM

Hi, i believe i still have a copy of nomoneyinporn script in my pc, but im not home until monday afternoon.I'll check this thread again when i get home and if you still need it i'll mail it to you.

funnytimecpl 10-11-2014 03:02 AM

Quote:

Originally Posted by k33n (Post 20250203)
Hi, i believe i still have a copy of nomoneyinporn script in my pc, but im not home until monday afternoon.I'll check this thread again when i get home and if you still need it i'll mail it to you.

hi,
can you mail it to me too ?:)

[email protected]

xxxtubers 10-11-2014 09:59 AM

k33n can you send me a copy as well, please?

[email protected]

k33n 10-11-2014 02:41 PM

ok...i'll upload it on a server for anyone to download it.

k33n 10-11-2014 03:52 PM

HERE IT IS

I've added a README file too.

funnytimecpl 10-12-2014 12:05 AM

wow, thanks , hope this work for me , if you need a fan sign let me know :)

Presnus 10-12-2014 12:41 PM

Megacams.me is my site. This is custom build and not a easy to setup script.

funnytimecpl 10-12-2014 01:16 PM

You have a nice site, can you share??? :d

Presnus 10-13-2014 04:06 AM

Quote:

Originally Posted by funnytimecpl (Post 20251413)
You have a nice site, can you share??? :d

Should I also give my money ?

funnytimecpl 10-13-2014 04:26 AM

Only if you have a lot :)
Can't blame me for trying. Anyway nice site.

karolinaboy 10-13-2014 02:22 PM

Quote:

Originally Posted by Presnus (Post 20251826)
Should I also give my money ?

Why not? Sharing is caring...

Presnus 10-15-2014 10:33 AM

Quote:

Originally Posted by funnytimecpl (Post 20251839)
Only if you have a lot :)
Can't blame me for trying. Anyway nice site.

True :-) Thanks!

funnytimecpl 10-24-2014 04:22 AM

Quote:

Originally Posted by k33n (Post 20250754)
HERE IT IS

I've added a README file too.


Thank you again k33n , that script did the job !
work in progress demo : fttube.com

MrTrollkien 10-24-2014 05:36 AM

Quote:

Originally Posted by funnytimecpl (Post 20264750)
Thank you again k33n , that script did the job !
work in progress demo : fttube.com

:thumbsup

k33n 10-24-2014 08:34 AM

Glad i could help :thumbsup

karolinaboy 10-24-2014 09:55 PM

Quote:

Originally Posted by k33n (Post 20265038)
Glad i could help :thumbsup

Check your e-mail when you get a chance.

PornDiscounts-V 10-25-2014 01:47 AM

I can make you something like that. But you'd have to pay me $1000.

funnytimecpl 10-25-2014 03:15 AM

Quote:

Originally Posted by vvvvv (Post 20265999)
I can make you something like that. But you'd have to pay me $1000.

Thanks for the offer, but as you can see from demo posted, with help from k33n i was able to do it alone.

karolinaboy 10-25-2014 11:14 AM

Quote:

Originally Posted by funnytimecpl (Post 20266036)
Thanks for the offer, but as you can see from demo posted, with help from k33n i was able to do it alone.

Better than the $1000 offer. Your site looks good.

funnytimecpl 10-25-2014 01:36 PM

Thanks karolinaboy

karolinaboy 10-26-2014 05:01 PM

Quote:

Originally Posted by k33n (Post 20265038)
Glad i could help :thumbsup

I followed the instructions in the read me file. But, my cams aren't showing.

sarettah 10-26-2014 07:00 PM

Quote:

Originally Posted by karolinaboy (Post 20267468)
I followed the instructions in the read me file. But, my cams aren't showing.

Do you have adblocker running by any chance?

That will block them I do believe. Other than that, I don't know.

.

k33n 10-27-2014 08:57 AM

Check the error file

sarettah 10-27-2014 10:27 AM

Quote:

Originally Posted by k33n (Post 20268049)
Check the error file

Lol. yeah that works too. duh on me ;p

.

cybermike 11-02-2014 11:59 AM

Quote:

Originally Posted by Andreweb (Post 20250196)
livebitches.net is made with a free script that was on nomoneyinporn.org but now the website is down for weeks ! I saw a wordpress plugin in the past somewhere on internet but I don't remember where !

I have a blog with his script but it seems to be broken now.. the thumbnails for the chat rooms don't want to load for some reason :(

Anyone figure out how to fix his script? Maybe the cron isn't working anymore.. have to manually import the feed to fix it but it doesn't last very long

funnytimecpl 11-02-2014 04:47 PM

my script works just fine , and I use k33n's "read me " file . see the error log .

funnytimecpl 11-02-2014 04:51 PM

Oh I see now , I have some errors too , but sorted them out with an php.ini file and this:
error_reporting(E_ALL ^ E_NOTICE);

and the errors :

[02-Nov-2014 23:47:55 UTC] PHP Notice: Undefined index: arg1 in /home/DOMAIN/public_html/fttube/index.php on line 30
[02-Nov-2014 23:47:55 UTC] PHP Notice: Undefined index: arg1 in /home/DOMAIN/public_html/fttube/index.php on line 34
[02-Nov-2014 23:47:55 UTC] PHP Notice: Undefined index: arg1 in /home/DOMAIN/public_html/fttube/index.php on line 34
[02-Nov-2014 23:47:55 UTC] PHP Notice: Undefined index: arg1 in /home/DOMAIN/public_html/fttube/includes/templates.php on line 16
[02-Nov-2014 23:47:55 UTC] PHP Notice: Undefined index: arg1 in /home/DOMAIN/public_html/fttube/includes/functions.php on line 89
[02-Nov-2014 23:47:56 UTC] PHP Notice: Undefined index: arg1 in /home/DOMAIN/public_html/fttube/index.php on line 30
[02-Nov-2014 23:47:56 UTC] PHP Notice: Undefined index: arg1 in /home/DOMAIN/public_html/fttube/index.php on line 34
[02-Nov-2014 23:47:56 UTC] PHP Notice: Undefined index: arg1 in /home/DOMAIN/public_html/fttube/index.php on line 34
[02-Nov-2014 23:47:56 UTC] PHP Notice: Undefined index: arg1 in /home/DOMAIN/public_html/fttube/includes/templates.php on line 16
[02-Nov-2014 23:47:56 UTC] PHP Notice: Undefined index: arg1 in /home/DOMAIN/public_html/fttube/includes/functions.php on line 89
[02-Nov-2014 23:47:56 UTC] PHP Notice: Undefined index: arg2 in /home/DOMAIN/public_html/fttube/includes/functions.php on line 609

Andreweb 11-03-2014 12:47 AM

My site is working just fine ! I also use k33n's variant of scrip ! U need to check you error file !

Goethe 11-03-2014 01:17 AM

Looks very interesting.

funnytimecpl 11-03-2014 03:20 PM

i think they updated the code , i cant see cams on my site , not a single cam on any site that i know that uses this script :( anyone here made it work ?

k33n 11-04-2014 05:24 AM

It's Chaturbate's fault.The script works fine,but sometime chaturbate's xml feed doesn't load.If you check their site during that time,you will see they have problems too like cams not loading or site not loading at all.After they recover your site will recover as soon as your local xml gets updated.
The only errors i know of are :
PHP Code:

[04-Nov-2014 11:04:56 UTCPHP Fatal error:  Call to undefined function rand_thumbs() 

PHP Code:

[04-Nov-2014 08:28:38 UTCPHP Warning:  call_user_func() expects parameter 1 to be a valid callback, function 'tpl_404' not found or invalid function name in /home/livesexp/public_html/classes/arix.class.php on line 134 

but since they do not affect the site that much,i decided to postpone solving them until i finish other modifications i want to make.Anyway it's a huge task for me because im a beginner in programming.

And..it's more like Sarettah's version since he was the one that helped me with speeding up the script. :)

sarettah 11-04-2014 07:08 AM

Quote:

It's Chaturbate's fault.The script works fine,but sometime chaturbate's xml feed doesn't load.If you check their site during that time,you will see they have problems too like cams not loading or site not loading at all.After they recover your site will recover as soon as your local xml gets updated.
Quote:

Originally Posted by k33n (Post 20277293)
And..it's more like Sarettah's version since he was the one that helped me with speeding up the script. :)


Hey, just saw this.

If you are using the stuff we worked up in the other thread (https://gfy.com/showthread.php?t=1148389) then the easy fix is to not overwrite the local xml file if you do not get a good page back.

so in the section that we did up earlier we already check to see if we got nothing back, but the problem is that we might get something back but it is not the right something (404 error, 500 error, etc):

$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";
}

So, we need a way to check and see if we got the right something back. If you take a look at the raw cb xml file you will see that they have the data encapsulated in a "resource" tag (<resource>...</resource>):

<resource>
<is_new>False</is_new>
<iframe_embed>
<iframe src='http://chaturbate.com/affiliates/in/Jrvi/JkjyU/?track=embed&room=sexydea&bgcolor=white' height=528 width=850 style='border: none;'></iframe>
</iframe_embed>
<display_name>Dea</display_name>
....................
</resource>

So, we can check to see if we got a valid return by checking to see if there are resource tags in what we got back.

An easy way to do this is to use the substring count function (substr_count(haystack, needle)) and only rewrite the file if the resource tag is there.

if (substr_count($data,'<resource>')>0)
{
file_put_contents($flname,$data);
}

So the effect would be when we get a good file return we write the new file. When we do not get a good file return we keep the old file and show whatever is in there.

Now, this works if just chaturbate goes down but their cdn is still working. It will NOT show images if the cdn is down.

So the code would look like this:

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


One disclaimer. This works fine up until cb changes the xml feed and gets rid of the resource tag ;p

Hope that helps

.

cybermike 11-04-2014 08:02 AM

Are we talking about the same chaturbate plugin?

I have it running on this domain http://www.nncuteteenagers.com/ (yeah I know shitty domain.. was a deadtoplist)

Seems to only have working thumbnails for a little bit after manually importing the thumbnails..

sarettah 11-04-2014 08:07 AM

Quote:

Originally Posted by cybermike (Post 20277446)
Are we talking about the same chaturbate plugin?

I have it running on this domain http://www.nncuteteenagers.com/ (yeah I know shitty domain.. was a deadtoplist)

Seems to only have working thumbnails for a little bit after manually importing the thumbnails..

At nmip there were 2 cb scripts. One was a wp plugin (which I guess u are using) and 1 was a stand alone.

The script k33n is using is the stand alone.

I have never looked at the plugin version so I don't have any input to offer on that.

Sorry about that.

Edited in: took a look at your site and I would guess that your thumbnails are not showing because your feed is not updating.

So the issue would be with cron or however your updates are supposed to occur (as you have already figured out by your manually updating of the feed).

The thumbs are only live in the cdn while the host is online. If they are offline they show the default gray image, or at least that is what my experience has been.

Hope that helps some.

.

cybermike 11-04-2014 08:13 AM

Yeah just need to figure out why the script plugin cron stopped working.. maybe because the nomoneyinporn domain is dead?

sarettah 11-04-2014 08:15 AM

Quote:

Originally Posted by cybermike (Post 20277457)
Yeah just need to figure out why the script plugin cron stopped working.. maybe because the nomoneyinporn domain is dead?

I would have to see the code. In the stand alone I do not remember any calls to nmip.

I might have the plugin code in my dl folder, not sure. If I get a chance I will take a glance.

.

sarettah 11-04-2014 08:45 AM

I do have a copy of the wp plugin from nmip.

In the setup.txt file it states that the update is scheduled to go every 30 minutes. That is probably too long of a wait between updates.

I run camfoxes.com on a 5 minute update and even then I end up with some dead cams at times.

So, you probably want to change that. I am not sure if it is a setting available in the admin dashboard or if it is hardcoded in there.

Right now I have to go make some money, I will try to revisit this later.

Hope that helps

.

sarettah 11-04-2014 09:51 PM

I took a look through the plugin files and there is no call to nomoneyinporn. There are 2 footer links, 1 for the nmip twitter and 1 for the rss feed. there is nmip in the plugin title and then it appears a couple of times in comments.

So, nmip not being operational is not an issue.

Cybermike, have you ever deactivated the plugin? I did see that if it is deactivated that the update will be removed from the schedule.

I am not an expert on wp so I am not sure of how everything in plugins work. i do see the code that adds it to the schedule in the plugins index.php. I assume that code gets run at activation time but if there is an install routine and an activation routine then I am not sure what gets run when.

Someone more well versed in WP than I am might be able to answer that.

That is all I have so far. Sorry it is not a better answer for you.

funnytimecpl 11-05-2014 01:55 PM

Quote:

Originally Posted by sarettah (Post 20277397)
Hey, just saw this.

If you are using the stuff we worked up in the other thread (https://gfy.com/showthread.php?t=1148389) then the easy fix is to not overwrite the local xml file if you do not get a good page back.

so in the section that we did up earlier we already check to see if we got nothing back, but the problem is that we might get something back but it is not the right something (404 error, 500 error, etc):

$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";
}

So, we need a way to check and see if we got the right something back. If you take a look at the raw cb xml file you will see that they have the data encapsulated in a "resource" tag (<resource>...</resource>):

<resource>
<is_new>False</is_new>
<iframe_embed>
<iframe src='http://chaturbate.com/affiliates/in/Jrvi/JkjyU/?track=embed&room=sexydea&bgcolor=white' height=528 width=850 style='border: none;'></iframe>
</iframe_embed>
<display_name>Dea</display_name>
....................
</resource>

So, we can check to see if we got a valid return by checking to see if there are resource tags in what we got back.

An easy way to do this is to use the substring count function (substr_count(haystack, needle)) and only rewrite the file if the resource tag is there.

if (substr_count($data,'<resource>')>0)
{
file_put_contents($flname,$data);
}

So the effect would be when we get a good file return we write the new file. When we do not get a good file return we keep the old file and show whatever is in there.

Now, this works if just chaturbate goes down but their cdn is still working. It will NOT show images if the cdn is down.

So the code would look like this:

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


One disclaimer. This works fine up until cb changes the xml feed and gets rid of the resource tag ;p

Hope that helps

.


Thank you , you guys rock !
by the way what did you mean " This works fine up until cb changes the xml feed and gets rid of the resource tag" cant we use other tag if they change the xml tags ?

one more thing , can you guys share that wordpress plugin ?
Do you have something for bongacams or any othere cams that use affiliates codes ?:)

sarettah 11-06-2014 12:36 AM

Quote:

Originally Posted by funnytimecpl (Post 20279251)
cant we use other tag if they change the xml tags ?

Yes, if they change the feed then you would have to look at something else in the feed to see if it is a valid return. That is whaat I meant

Quote:

one more thing , can you guys share that wordpress plugin ?
http://www.madspiders.com/nmip/nmpChaturbate.zip

That is the original wordpress plugin that was on nomoneyinporn. I have nothing to do with it, just had a copy that I downloaded because someone asked me to take a look at it.

At present I do not have one for bonga or any other sponsors that is any kind of shape to be shared. Sorry about that.

funnytimecpl 11-06-2014 06:23 AM

Yeah. Thanks for sharring this:) do you have knowlodge on building a TGP site?

sarettah 11-06-2014 06:58 AM

Quote:

Originally Posted by funnytimecpl (Post 20279880)
Yeah. Thanks for sharring this:) do you have knowlodge on building a TGP site?

I have all sorts of knowledge on everything. Some good, some bad ;p But there are plenty of folks around here with much more expertise then me in TGP, also Cams for that matter, and traffic and SEO and basic web functionality and and and and............


:helpme

.

funnytimecpl 11-06-2014 08:09 AM

Oh. I'm gonna try my luck in a new post

karolinaboy 11-17-2014 01:09 PM

So, right now I am looking at
www.fttube.com
www.nncuteteenagers.com

Do these two sites have the same script?

Why are all the video thumbnails showing on fttube and not all are showing on nncuteenagers?


All times are GMT -7. The time now is 09:34 AM.

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