GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Webmaster Q & Fuckin' A (https://gfy.com/forumdisplay.php?f=27)
-   -   cam api (https://gfy.com/showthread.php?t=1125238)

CPA-Rush 11-04-2013 11:25 AM

cam api
 
Hey looking for bongacams api script to list the cams on my page .. help?

what u think of 1:37 ratio ..is okay ?

arena18 11-04-2013 03:03 PM

Here is simple code should be working if you get JSON from bcams

Code:

<style>
body { background:#F2F2F2; margin:0; padding:0}
a { text-decoration:none}
.div { float:left;width:180px;height:auto;position:relative; margin:0; padding:0}
.div img { width:100%; display:block; height:auto}
.div span { padding:2px; text-decoration:none;position:absolute; bottom:0; left:0; right:0; height:22px; line-height:22px; font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#FFF; background:rgba(0,0,0,0.6)}
</style>

<?php
$data = file_get_contents('JSON_URL');
$decode = json_decode($data, true);
        foreach($decode as $d) {
                if($d['status'] == true){
                        echo '<div class="div">';
                                echo '<a href="'.$d['chat_url'].'">';
                                echo '<img src="'.$d['profile_images']['thumbnail_image_big_live'].'" />';
                                echo '<span>'.$d['username'].'</span>';
                                echo '</a>';
                        echo '</div>';
                }
        }
?>

Here is demo of this code http://wptuber.biz/test.php

CPA-Rush 11-04-2013 04:34 PM

looks great thank u i appreciated ..is it possible to integrated this with pagination?
for example total 25 cams and like 5 every row

u saved my day :)

CPA-Rush 11-05-2013 02:32 AM

http://webcamschicks.twomini.com/

i think i'm done with most parts :)

Jimbo 11-05-2013 06:44 AM

you shouldn't call such an api on evey page load ... this is just retarded programming right there. You think they will ejoy all the requests once you get a million page views a day?

just my 2 cents

CPA-Rush 11-05-2013 10:01 AM

hello jimbo , arena18 helped me with that code ... like u see its simple but very helpful :) i think is a good start . million page views a day? :1orglaugh

arena18 11-05-2013 02:23 PM

Quote:

Originally Posted by Jimbo (Post 19861060)
you shouldn't call such an api on evey page load ... this is just retarded programming right there. You think they will ejoy all the requests once you get a million page views a day?

just my 2 cents

Im posted simple example there how to call and display json, this is not cam script..
and about milion pageviews, with 1 milion pageviews i will open my own cam studio ...

CPA-Rush 11-05-2013 10:00 PM

tnxxx that exactly what i was looking for , arena18 i tried and search web but its really hard to find pagination for this , can u help me with a bit of code ?

Jimbo 11-06-2013 07:01 AM

Quote:

Originally Posted by arena18 (Post 19861673)
Im posted simple example there how to call and display json, this is not cam script..
and about milion pageviews, with 1 milion pageviews i will open my own cam studio ...

1million is a big exageration that would probably hog their server so bad they would block your ip. if you calculate a little bit starting at 1441 visits a day it's more efficient to set it up to update every minute or something along those lines. I think you could do it only every 5min which becomes more efficient at 289 visits/day.

not only you wont hog the api server but you will also give faster response to your users. noone wants to wait 10 seconds for your page to load.

So much for trying to give advice to people. They throw knifes at you... instead of setting up a cronjob.

its so simple an Indian would probably do this for you for 1$.

arena18 11-06-2013 01:54 PM

Quote:

Originally Posted by rosx (Post 19862192)
tnxxx that exactly what i was looking for , arena18 i tried and search web but its really hard to find pagination for this , can u help me with a bit of code ?

I will make simple script for you tonight, with pagination and caching...

arena18 11-06-2013 04:17 PM

Im make something for you, now you have jQuery pagination with lazy load images, and also with caching
Here is demo
http://wptuber.biz/cams/

Download:
http://www.4shared.com/zip/Mpy69lJc/cams.html


Open a config.php and edit this
Code:

$api_url = 'http://bongacash.com/tools/promo.php?c=xxx&type=api&api_type=json';// You JSON Version - api
$cams = '25';// number of cams per page
$cache_time = '600';// define how long you want to keep the file in seconds.
$title = 'Free Cams'; // Add meta decription for your page
$description = 'Live Cam sex'; // Add meta decription for your page
$site_url = 'http://wptuber.biz/cams/'; // URL of your site


CPA-Rush 11-06-2013 05:41 PM

Quote:

Originally Posted by arena18 (Post 19863257)
I will make simple script for you tonight, with pagination and caching...

Tnx buddy...

Quote:

Originally Posted by arena18 (Post 19863540)
Im make something for you, now you have jQuery pagination with lazy load images, and also with caching
Here is demo
http://wptuber.biz/cams/

Download:
http://www.4shared.com/zip/Mpy69lJc/cams.html


Open a config.php and edit this
Code:

$api_url = 'http://bongacash.com/tools/promo.php?c=xxx&type=api&api_type=json';// You JSON Version - api
$cams = '25';// number of cams per page
$cache_time = '600';// define how long you want to keep the file in seconds.
$title = 'Free Cams'; // Add meta decription for your page
$description = 'Live Cam sex'; // Add meta decription for your page
$site_url = 'http://wptuber.biz/cams/'; // URL of your site



Woohoo arena18 i didn't expect it will look as good :thumbsup your work is 10/10

i'm going to try this out :pimp

arena18 11-06-2013 05:54 PM

Make sure that cached folder have read/write permission

CPA-Rush 11-06-2013 06:18 PM

arena18 i dont know how to thank u are Good programmer and also helpful ..

funnytimecpl 10-04-2014 01:05 PM

hey, how can i get a script like this ? i searched a lot , for a script to show embed cams from bongacams and chaturbate , can anybody point me in some direction ?

saimonyz 04-24-2016 05:08 AM

arena18

please reuplod script

plienine 05-20-2016 03:53 AM

Can someone re-upload the scrip with pagination? Link is not working anymore.

Thanks!

Andreweb 05-20-2016 04:56 AM

You can use adulttemps's version is way better full responsive and you can customize it ! The link to the dowload page is here : https://github.com/hillipino/BongaCash-API

saimonyz 05-20-2016 02:24 PM

@Andreweb

I am interested to take a look at this script on JSON

adn in hillipino is XML script

Andreweb 05-21-2016 01:28 AM

Quote:

Originally Posted by saimonyz (Post 20909087)
@Andreweb

I am interested to take a look at this script on JSON

adn in hillipino is XML script

Ok I got it ! Unfortunately I never had that script , but the code is above , starting from that is not hard to make a simple page I will try build a simple example starting from that and I'll post it here !

Andreweb 05-21-2016 01:58 AM

Ok as I promise here is a simple sample of page without pagination starting from arena18's code ! It took me 5 minutes to make it ! Is just a test page to see how it works ! Bonga JSON SITE SAMPLE !


All times are GMT -7. The time now is 05:00 PM.

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