View Single Post
Old 06-14-2021, 10:41 PM  
sarettah
I'll make you famous
 
Industry Role:
Join Date: Oct 2002
Posts: 13,951
Quote:
Originally Posted by harpreetxi View Post
Hi,

thank you for replying. Can you tell me an example whitelable name, how to add it in this code ? When I added my alias name & domain name, its still not working properly.


<a href="<? echo str_replace('track=default', 'track='.$track.'', $rr[$first_cam]->chat_room_url_revshare); ?>" target="_blank">
<? if($rr[$first_cam]->is_hd===true){ ?><div class="ishd">HD+</div> <? } ?>
<img src="<? echo $rr[$first_cam]->image_url_360x270; ?>">
If I am reading your code correctly and the cam record from the api is in $rr[$first_cam] then this should work:

Instead of this:

<a href="<? echo str_replace('track=default', 'track='.$track.'', $rr[$first_cam]->chat_room_url_revshare); ?>"

You would use this:

<a href="<? echo 'https://mywhitelabel.com/' . $rr[$first_cam]->username . '/?track=' . $track; ?>" target="_blank">

Replace mywhitelabel.com with the domain you are using for your whitelabel. For example, I have a whitelabel at camfoxes.net so I would end up with <a href="<echo 'https://www.camfoxes.net/' . $rr[$first_cam]->username . '/?track=' . $track; ?>"

If we had the model named 'sasha_ursx' then the url coming out of there would be https://www.camfoxes.net/sasha_ursx/.

That make sense?

.
sarettah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote