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)
-   -   I will be sitting in front of the computer coding all afternoon (https://gfy.com/showthread.php?t=1181140)

clickity click 12-18-2015 04:01 PM

Are you still coding? sheesh.

Dammit. 50 dumb questions.

clickity click 12-18-2015 04:05 PM

What's wrong with your eye?

Penny24Seven 12-18-2015 04:15 PM

ever thought about changing your name, I always think you are a girl

sarettah 12-18-2015 04:19 PM

Quote:

Originally Posted by Andreweb (Post 20673189)
Hello sarettah , I saw some of your projects and I appreciate your skills ! Well now my question : first of all I must say that my programing skills are limited for example I am able to make a responsive site in php with text images , iframes etc but I am not able to parse cams from an xml api ... so I wonder if there is some place on internet where to learn how to do that how to build a cam site using apis(a kind of tutorial) or I just need to quit and stay with WLs and my sites were I use iframes ! Thanks !

I will still be getting back to this but I am having trouble typing. My left eye was dilated at the eye doctor and it is giving me fits right now. Might be tomorrow before I get back to this.

Sorry about that.

.

sarettah 12-18-2015 04:22 PM

Quote:

Originally Posted by clickity click (Post 20673448)
Are you still coding? sheesh.

Dammit. 50 dumb questions.

I am always coding. Always behind on everything.

Quote:

Originally Posted by clickity click (Post 20673450)
What's wrong with your eye?

I had a fairly major cataract removed about 3 weeks ago. Was caused by a reaction to a drug we think.

Quote:

Originally Posted by Brian837 (Post 20673455)
ever thought about changing your name, I always think you are a girl

I am not responsible for your misconceptions so no I am not going to change it. If I did I would probably go with something even girlier like Sally, or Debbie or Brian.

,

clickity click 12-18-2015 04:34 PM

Where did your username come from?

sarettah 12-18-2015 04:37 PM

Quote:

Originally Posted by clickity click (Post 20673484)
Where did your username come from?

I lived in Buxton, NC for about 4 years. Buxton is on Cape Hatteras and while there I started my first company which was a graphic arts company called Hatteras Designs.

Sometime in the early 90's when I needed a unique user name for swbell I had one of my business cards in front of me and I proceeded to type Hatteras in backwards which is sarettah. I have used it since then.

.

clickity click 12-18-2015 05:12 PM

Quote:

Originally Posted by sarettah (Post 20673487)
I lived in Buxton, NC for about 4 years. Buxton is on Cape Hatteras and while there I started my first company which was a graphic arts company called Hatteras Designs.

Sometime in the early 90's when I needed a unique user name for swbell I had one of my business cards in front of me and I proceeded to type Hatteras in backwards which is sarettah. I have used it since then.

.

Good stuff :thumbsup

sarettah 12-18-2015 06:03 PM

Off for Friday night fun.

Every Friday several friends and I get together and do this:



I am one of the guys on guitar who is sitting. Not the lead, that's Billy. I am on the left of the screen. Big old ugly sucker.

.

The Porn Nerd 12-18-2015 06:19 PM

Quote:

Originally Posted by sarettah (Post 20673526)
Off for Friday night fun.

Every Friday several friends and I get together and do this:



I am one of the guys on guitar who is sitting. Not the lead, that's Billy. I am on the left of the screen. Big old ugly sucker.

.

Freebiiiiiiiiiiiiiiiiiird!!!! :)

bmwracer41 12-18-2015 06:33 PM

Fucking great
 
I have to admit....Their is great comedy and wit on this forum

After a long day of work, nothing like a good laugh

anyway, I had a jewish Dilemma today

Ham on Sale

But I bought anyway

Peace

Andreweb 12-20-2015 02:55 AM

Quote:

Originally Posted by sarettah (Post 20673461)
I will still be getting back to this but I am having trouble typing. My left eye was dilated at the eye doctor and it is giving me fits right now. Might be tomorrow before I get back to this.

Sorry about that.

.

Ok ! I hope that your eye will be fine ! :thumbsup

sarettah 12-20-2015 07:54 AM

Quote:

Originally Posted by Andreweb (Post 20674433)
Ok ! I hope that your eye will be fine ! :thumbsup

Eye is great :) Sorry I did not make it basck here as planned. My daughter graduated from College (UMKC) yesterday. When I said I would be back I had kind of forgotten that that was going on.

I am back today though and trying to figure out what all to tell you about this stuff.

Camfoxes was originally created as an example of an xml driven site in answer to someone's question.

Simple Chaturbate XML Example is the original incarnation just showing a simple xml parse and display of the chaturbate models.

This is the code that is in there:

Code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  <meta http-equiv="content-type" content="text/html; charset=windows-1250">
  <meta name="generator" content="PSPad editor, www.pspad.com">
  <title>Simple Chaturbate XML Example</title>
  <script type="text/javascript">
  function loadit(urlin, userin, chaturl)
  {
    currshow.innerHTML='Currently Showing: ' + userin + ' <input type=button value=Close onClick="currshow.innerHTML=\'\';currshow.style.display=\'none\';"><br><a onClick="currshow.innerHTML=\'\';currshow.style.display=\'none\';" target=_blank href="' + chaturl + '"><iframe frameborder=0 scrolling="no" src="' + urlin + '" height="440" width="503"></iframe><br>Click Here To Join The Chat!</a>';
    currshow.style.display='block';
    scroll(0,0);
  }
  </script>
  <style>
  body{text-align:center;}
  .main{width:100%;text-align:center;}
  .pushdown {width:800px;float:left;margin:auto;}
  .colhd {width:200px;float:left;}
  .telem {height:250px;}
  .spacer {height:20px;}
  #currshow {float:none;display:none;width:500px;height:540px;text-align:center;margin:auto;}
  </style>
  </head>
  <body>
    <div class="main">
    <h2>Chaturbate XML Example</h2>
<?php
$userlist = simplexml_load_file('https://chaturbate.com/affiliates/api/onlinerooms/?format=xml&wm=XXXXX');
if(empty($userlist))
{
  die('Danger Will Robinson...xml load failed...aborting');
}

$fcnt=0;
foreach ($userlist as $user)
{
  if($user->gender=='f')
  {
      $fcnt++;
  }
}
$itemcnt=intval($fcnt/6);
if($fcnt/6-$itemcnt>0)
{
  $itemcnt++;
}
$colcnt=0;
$itmcnt=0;
foreach ($userlist as $user)
{
  if($user->gender=='f')
  {
      if($itmcnt==0 || $itmcnt==$itemcnt)
      {
        $colcnt++;
        if($itmcnt>0)
        {
        ?>
        </div>
        <?php
        }
        if($colcnt==2)
        {
        ?>   
        <div class="pushdown">
        <div name="currshow" id="currshow" ></div>
        <?php
        }
        if($colcnt==6)
        {
        ?>
        </div>
        <?php
        }
        ?>
        <div name=col' . $colcnt . ' id=col' . $colcnt . ' class="colhd">
        <?php
        $itmcnt=0;
      }
      $itmcnt++;
      $iframe=substr($user->iframe_embed,strpos($user->iframe_embed,'http'));
      $iframe=substr($iframe,0,strpos($iframe,"'"));
      ?>
      <div class="telem">
      Host: <?php echo substr($user->username,0,20); ?><br>
      <img src="<?php echo $user->image_url; ?>" onClick="loadit(<?php echo "'$iframe','$user->username','$user->chat_room_url'"; ?>);"><br> 
      Time on line: <?php echo number_format($user->seconds_online/60,2); ?> minutes<br>
      Language(s) spoken: <?php echo substr(trim($user->spoken_languages),0,18); ?><br>
      <?php
      if(substr_count(strtolower($user->location),'http')==0 && substr_count(strtolower($user->location),'@')==0)
      {
      ?>
        Location: <?php echo substr(trim($user->location),0,18); ?>
      <?php       
      }
      ?>
      </div>
      <div class="spacer"></div>
      <?php
  }
}
?>
</div>
</div>
</body>
</html>

I have to go eat some breakfast. Will be back.

sarettah 12-20-2015 08:34 AM

The load and parse of the xml feed in there is:

Code:

$userlist = simplexml_load_file('https://chaturbate.com/affiliates/api/onlinerooms/?
format=xml&wm=XXXXX');

if(empty($userlist))
{
  die('Danger Will Robinson...xml load failed...aborting');
}

foreach ($userlist as $user)
{
  Do something here
}

This opens the xml feed and loads it into a soimplexml object:
$userlist = simplexml_load_file('https://chaturbate.com/affiliates/api/onlinerooms/?format=xml&wm=JkjyU');

If we don't get anything back then lets just kill the routine
if(empty($userlist))
{
die('Danger Will Robinson...xml load failed...aborting');
}

Otherwise we read through the list of nodes returned and do something with the information:

foreach ($userlist as $user)
{
Do something here
}


So, that is a basic parse. There are other ways to pull this off. I usually use a curl routine to grab the xml feed. I do that because with curl I can control the connection timeout and process timeout. You could also use a file_get_contents to open the file and then load it to a simplexml object.

The main thing is that you want to get the data from the xml feed into the simplexml object to make it easier to read by just being able to loop through it.

.

Penny24Seven 12-20-2015 08:37 AM

Quote:

Originally Posted by sarettah (Post 20673468)
I am always coding. Always behind on everything.



I had a fairly major cataract removed about 3 weeks ago. Was caused by a reaction to a drug we think.



I am not responsible for your misconceptions so no I am not going to change it. If I did I would probably go with something even girlier like Sally, or Debbie or Brian.

,

oh snap that was funny. point you LOL. but come on it has come up. I know you are a dude because it has been mentioned. Just trying to help the others.

Andreweb 12-20-2015 10:54 AM

Thank you for the answer ! You rock :thumbsup ! I will try to play with that and maybe I will succeed to build something !

CaptainHowdy 12-20-2015 11:28 AM

Don't have any questions ...

The Porn Nerd 12-20-2015 11:34 AM

Quote:

Originally Posted by CaptainHowdy (Post 20674624)
Don't have any questions ...

I question your lack of questions...

sarettah 12-20-2015 12:56 PM

Quote:

Originally Posted by Andreweb (Post 20674611)
Thank you for the answer ! You rock :thumbsup ! I will try to play with that and maybe I will succeed to build something !

You're welcome.

Here are a couple of threads with some good discussions regarding accessing the xml feed and caching it in order to speed up a site:

https://gfy.com/webmaster-q-and-fucki...light=camfoxes

https://gfy.com/webmaster-q-and-fucki...light=camfoxes

.

sarettah 12-21-2015 08:57 AM

Coding coding coding.

Listening to some Lou Reed this morning to get started :thumbsup



.

Andreweb 12-21-2015 01:19 PM

Starting from what you gave me I played a bit to see if I can make something and I created this page : http://www.webfreecams.info/Sample/ , ofcourse I'll take it down its just a sample to understand how it works , but starting from that I want to build something custom , I will try to grab cams from more sponsors in a single site , I hope I will succed , I will start after the Hollydays and I will share the results ! Thanks again !


All times are GMT -7. The time now is 03:51 PM.

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