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