View Single Post
Old 04-29-2015, 07:20 AM  
k33n
Confirmed User
 
Join Date: Feb 2009
Posts: 201
BongaCams API-Help please

Hello,
i am trying to show cams from bonga with their api xml,but i can't load thumbnail images.I call any tag from xml with ex:$cam->embed_chat_url,except profile images.
Code:
<a href="' . BASEHREF . 'cam/' . $cam->username . '" title=""><img src="' .$cam->profile_images. ' " alt="' . $cam->display_name . '" width="180" height="148" /></a>
This is what i get from this line

Code:
<a href="http://mydomain.com/cam/Kisulka22" title=""><img src=" " alt="Kisulka22" height="148" width="180"></a>
As you can see username and display_name works fine but profile_images doesn't show any url to src.I know it's because profile_images is an element that has 6 sub-elements

profile_images

profile_image
thumbnail_image_big
thumbnail_image_medium
thumbnail_image_small
thumbnail_image_big_live
thumbnail_image_medium_live
thumbnail_image_small_live

and each sub-element have a different url,but i dont know how to call the sub-element that i want.I know it should be something like profile_images(thumbnail_image_small).Can anyone help me please?
k33n is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook