Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 04-27-2016, 05:44 AM   #1
linkhouse
Registered User
 
linkhouse's Avatar
 
Industry Role:
Join Date: Jun 2014
Posts: 68
Need help with Chaturbate API coding.

Hello. Im building a custom Chaturbate API script site.
I having some trubble figuring out some of the php code.

I want to get specific data from the chaturbate XML feed. Now to the problem. I dont know how to code to recieive information for a specific model.

Lets say i want to get data from modelxxx , age, from, language, root topic etc.
And then display it on the page.

Maybe someone here have a small finish php code for that.

Thank you
linkhouse is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-27-2016, 07:48 AM   #2
sarettah
l8r
 
Industry Role:
Join Date: Oct 2002
Posts: 13,488
There are several ways to do what you are trying to do.

1. When you read the xml feed load it to a database then whenever you need info about a particular record just read it from the database.

2. If you don't want to use a db for some reason then each time you want the info on a particular record read through the xml feed to get the info.

3. When putting the info for the thumbs up, put each thumb in a form and include the info needed for the individual model as form variables and then use the form data to make the individual page.

Hope that helps.

.
sarettah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-27-2016, 05:05 PM   #3
Jazzjazzy
Registered User
 
Industry Role:
Join Date: Jan 2016
Posts: 8
Quote:
Originally Posted by linkhouse View Post
Hello. Im building a custom Chaturbate API script site.
I having some trubble figuring out some of the php code.

I want to get specific data from the chaturbate XML feed. Now to the problem. I dont know how to code to recieive information for a specific model.

Lets say i want to get data from modelxxx , age, from, language, root topic etc.
And then display it on the page.

Maybe someone here have a small finish php code for that.

Thank you
Contact me on skype "ragequit-noob". I already have this script coded.
Jazzjazzy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-28-2016, 10:30 AM   #4
linkhouse
Registered User
 
linkhouse's Avatar
 
Industry Role:
Join Date: Jun 2014
Posts: 68
I figured it out my self

thank you anyway.
linkhouse is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-29-2016, 08:40 PM   #5
adulttemps
Confirmed User
 
Industry Role:
Join Date: May 2002
Location: Brentwood,TN Heredia, Costa Rica
Posts: 320
https://github.com/hillipino/Chaturbate-API can rip the code or any other code from this.
__________________
Hillipino Money with Cams
adulttemps is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-30-2016, 03:11 AM   #6
linkhouse
Registered User
 
linkhouse's Avatar
 
Industry Role:
Join Date: Jun 2014
Posts: 68
Quote:
Originally Posted by adulttemps View Post
can rip the code or any other code from this.
I love that CB script. Is it yours?
linkhouse is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-30-2016, 03:27 AM   #7
saimonyz
Registered User
 
saimonyz's Avatar
 
Industry Role:
Join Date: Apr 2016
Location: Europe
Posts: 14
need bongacams api script does anyone have?
saimonyz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-30-2016, 07:40 AM   #8
k33n
Confirmed User
 
Join Date: Feb 2009
Posts: 201
soft 404

@adulttemps your Cb script is great.Any ideas how to solve soft 404 pages generated if username is not online?For example if a visitor comes from a SE link like domain.com/cam/username but the username is offline,page has no content because there is no info to extract from xml.Soft 404 in google eyes and bad website experience for visitor.Thanks
k33n is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-30-2016, 01:40 PM   #9
magneto664
God Bless You
 
magneto664's Avatar
 
Industry Role:
Join Date: Aug 2014
Location: Glasgow, $cotland
Posts: 1,467
Quote:
Originally Posted by k33n View Post
@adulttemps your Cb script is great.Any ideas how to solve soft 404 pages generated if username is not online?For example if a visitor comes from a SE link like domain.com/cam/username but the username is offline,page has no content because there is no info to extract from xml.Soft 404 in google eyes and bad website experience for visitor.Thanks
your idea is send to googlebot information about fu**know how many 404 errory every day? for each login / log off for any user even if login for only 10 minutes and get disconnection? I don't know how many 404 error it will be in google webmaster tools daily but this is stupid idea.

tnx.
__________________
magneto664 📧 gmail.com
Adult Backlinks 💘Best Website Stats 💘 Best CDN for Adult Content
My Fav: 👍Chaturbate 👍 Stripchat 👍 Dateprofits 👍 AdultFriendFinder
magneto664 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-30-2016, 01:44 PM   #10
sarettah
l8r
 
Industry Role:
Join Date: Oct 2002
Posts: 13,488
Quote:
Originally Posted by k33n View Post
@adulttemps your Cb script is great.Any ideas how to solve soft 404 pages generated if username is not online?For example if a visitor comes from a SE link like domain.com/cam/username but the username is offline,page has no content because there is no info to extract from xml.Soft 404 in google eyes and bad website experience for visitor.Thanks
The script started as the NMIP standalone that we have discussed before. The function for the individual cam is in the functions.php file and is called solo_cams().

I took a look and right now because some of the display stuff is in the functions there are actually 2 different solo_cams() functions, one for adulttemps Version 1 (v1) and one for version 2 (v2). The differences between the 2 are because of the display stuff inside the functions.

The problem of nobody on line can be solved by modifying the solo_cams function.

1. Near the beginning define a variable to use as a switch as to whether the cam was found or not ($found_cam=0;)

2. Then if the cam is found change the value of the switch ($found_cam=1;)

3. Then check to see if the cam was found and if it wasn't then put something else up. (if(!$found_cam){do something here;})

It would end up looking something like this:

Code:
// Print Solo Cams
		
function solo_cams( $affid, $track, $user ) {
      
        // add found cam switch and initialize it to 0
        $found_cam=0;
        .
	.
	foreach( $cams as $cam ){ 
        .
        .
   	   if ( $cam->username == $user ) {
            
              // cam was found set found cam switch to 1
              $found_cam=1;
             .
             .
	   }
        }

        // check to see if cam was found
       if(!$found_cam)
       {
          // if cam was not found then   
          echo "Put the alternate display stuff for if the cam user is not on line here.";
       } 			
				
       if ( RELATED_SHOW ) {
            .
            .
      }					
}
I think ;p
sarettah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-30-2016, 02:34 PM   #11
adulttemps
Confirmed User
 
Industry Role:
Join Date: May 2002
Location: Brentwood,TN Heredia, Costa Rica
Posts: 320
Good Idea, Illl try to implement something like that soon. Also there is a bongacams version at my github page for whoever asked above.https://github.com/hillipino
__________________
Hillipino Money with Cams
adulttemps is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-01-2016, 12:07 AM   #12
adulttemps
Confirmed User
 
Industry Role:
Join Date: May 2002
Location: Brentwood,TN Heredia, Costa Rica
Posts: 320
updated the script to use sarettah's suggestion for the offline cams.
__________________
Hillipino Money with Cams
adulttemps is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-01-2016, 07:27 AM   #13
linkhouse
Registered User
 
linkhouse's Avatar
 
Industry Role:
Join Date: Jun 2014
Posts: 68
Quote:
Originally Posted by adulttemps View Post
updated the script to use sarettah's suggestion for the offline cams.
Thank You
linkhouse is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-01-2016, 08:04 AM   #14
k33n
Confirmed User
 
Join Date: Feb 2009
Posts: 201
Quote:
Originally Posted by magneto664 View Post
your idea is send to googlebot information about fu**know how many 404 errory every day? for each login / log off for any user even if login for only 10 minutes and get disconnection? I don't know how many 404 error it will be in google webmaster tools daily but this is stupid idea.

tnx.
You got it so wrong.It is not about sending 404 to google,it is about sending 200 OK for a page that has no content.I don't think header and footer counts as content.Pages with no content should not be indexed,therefore,if a page sends HTTP response 200,googlebot expects something,otherwise you mislead it.Having a few thousands pages like that...you figure

@sarettah
You never let down
Thanks a lot guys.It's working great now.
k33n is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-02-2016, 08:36 AM   #15
saimonyz
Registered User
 
saimonyz's Avatar
 
Industry Role:
Join Date: Apr 2016
Location: Europe
Posts: 14
@adulttemps

category not working for script bongacams

Female Cams - not working
Male Cams - not working
Couple Cams - not working
Lesbian Cams - not working
Tranny Cams - working

how to fix?
saimonyz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-02-2016, 08:41 AM   #16
sarettah
l8r
 
Industry Role:
Join Date: Oct 2002
Posts: 13,488
Quote:
Originally Posted by saimonyz View Post
@adulttemps

category not working for script bongacams

Female Cams - not working
Male Cams - not working
Couple Cams - not working
Lesbian Cams - not working
Tranny Cams - working

how to fix?
Make it a Tranny Cam site? ;p

.
sarettah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-02-2016, 11:19 AM   #17
adulttemps
Confirmed User
 
Industry Role:
Join Date: May 2002
Location: Brentwood,TN Heredia, Costa Rica
Posts: 320
can you show the links section of your settings.php
__________________
Hillipino Money with Cams
adulttemps is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-02-2016, 11:33 AM   #18
adulttemps
Confirmed User
 
Industry Role:
Join Date: May 2002
Location: Brentwood,TN Heredia, Costa Rica
Posts: 320
if you want just female set CATEGORY to female

define ( 'CATEGORY', 'all' ); // What category do you want to show ( all , male, female, tranny)

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Links
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

switch ( CATEGORY ) {

case 'all':
$category_string = '&categories[]=female&categories[]=male&categories[]=transsexual';
break;
case 'female':
$category_string = '&categories[]=female';
break;

case 'male':
$category_string = '&categories[]=male';
break;
case 'tranny':
$category_string = '&categories[]=transsexual';
break;
}

define ( 'XML_FILE', 'http://tools.bongacams.com/promo.php?c=226355&type=api&api_type=xml' . $category_string );
__________________
Hillipino Money with Cams
adulttemps is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-02-2016, 12:26 PM   #19
saimonyz
Registered User
 
saimonyz's Avatar
 
Industry Role:
Join Date: Apr 2016
Location: Europe
Posts: 14
@adulttemps

screenshot
rghost(dot)ru/8P9rj9bpq/image.png
saimonyz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-02-2016, 01:27 PM   #20
sarettah
l8r
 
Industry Role:
Join Date: Oct 2002
Posts: 13,488
Quote:
Originally Posted by saimonyz View Post
@adulttemps

screenshot
rghost(dot)ru/8P9rj9bpq/image.png


There you go.

.
sarettah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-02-2016, 08:58 PM   #21
adulttemps
Confirmed User
 
Industry Role:
Join Date: May 2002
Location: Brentwood,TN Heredia, Costa Rica
Posts: 320
Are you sure the feed is being fetched? If so, make sure that your server can write to the includes/data/feed.xml file
__________________
Hillipino Money with Cams
adulttemps is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-03-2016, 01:11 AM   #22
saimonyz
Registered User
 
saimonyz's Avatar
 
Industry Role:
Join Date: Apr 2016
Location: Europe
Posts: 14
@adulttemps

yes its work includes/data/feed.xml file

working
cams/tranny

not working
cams/male
cams/female
cams/couple
cams/lesbian

you working all category? please test and tell me
saimonyz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-03-2016, 01:57 AM   #23
saimonyz
Registered User
 
saimonyz's Avatar
 
Industry Role:
Join Date: Apr 2016
Location: Europe
Posts: 14
define ( 'CATEGORY', 'all' ); // What category do you want to show ( all , male, female, tranny)

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Links
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

switch ( CATEGORY ) {

case 'all':
$category_string = '&categories[]=female&categories[]=male&categories[]=transsexual';
break;
case 'female':
$category_string = '&categories[]=female';
break;

case 'male':
$category_string = '&categories[]=male';
break;
case 'tranny':
$category_string = '&categories[]=transsexual';
break;
}

define ( 'XML_FILE', 'You are only allowed to post URLs to other sites after you have made 30 posts or more.' . $category_string );
saimonyz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-03-2016, 04:43 AM   #24
k33n
Confirmed User
 
Join Date: Feb 2009
Posts: 201
Did anyone notice that there are no males and shemales cams in bonga xml??I just checked and only females and couples are included.Anyway,back to CB api.

I tried to get cams by category,so i defined categories

Code:
if( $cam->age <= "21" ) {
	
  $age= "teen";

} elseif ($cam->age > "21" && $age <= "30" ){

  $age= "women";

} elseif ($cam->age > "30" && $age <= "40" ) {

  $age = "milf";

} elseif ($cam->age > "40" ) {

  $age = "mature";

} else {

 $age = "";
}
From what i can understand,existing functions,print cams by gender,so i copied get_related function,modified name and changed every $gender with $age.My new function :

Code:
function cams_by_category( $affid, $track, $age, $limit ){

if( $cam->age <= "21" ) {
	
  $age= "teen";

} elseif ($cam->age > "21" && $age <= "30" ){

  $age= "women";

} elseif ($cam->age > "30" && $age <= "40" ) {

  $age = "milf";

} elseif ($cam->age > "40" ) {

  $age = "mature";

} else {

 $age = "";
}

				if ( $_GET['arg1'] ) {

					if ( is_numeric( $_GET['arg1'] ) ) {

						$page = $_GET['arg1'];

						$targetpage = 'live/';

					} else {

						$targetpage = 'live/' . $_GET['arg1'] . '/';

						if ( $_GET['arg2']  ) {

							if ( is_numeric( $_GET['arg2'] ) ) {

								$page = $_GET['arg2'];

							} 

						} else {

							$page = 1;
						}
					} 

				} else {

					$targetpage = 'live/';

					$page = 1;

				}

				$end 	= $page * $limit;

				$start	= $end - $limit;

				$xml = '../cache/cams.xml';

				$cams = new SimpleXMLElement($xml, null, true);

				// Count the total cams

				if ( $age != '' ) {

					$doc = new DOMDocument();

					$doc->load($xml);

					$totalCams = 0;

					foreach( $doc->getElementsByTagName('age') as $tag ) 

					{

						// to iterate the children

						foreach( $tag->childNodes as $child ) 

						{

							// outputs the xml of the child nodes. Of course, there are any number of

							// things that you could do instead!

							$i = $doc->saveXML($child);

							

							if ($i == $age )

								$totalCams++;

						}

					}

				} else {

					$totalCams = count($cams);

				}

				echo '
						<div class="row">

							<div class="12u">

								<ul class="cb_thumbs">

				';

				$count = 0;

				foreach( $cams as $cam ){ 

					if ( $cam->age == $age ) {

						if ( $count >= $start && $count < $end ) {

							print_cams($cam);							
						}

						$count++;

					} 

					if ( $age == '' ) {

						if ( $count >= $start && $count < $end ) {

								print_cams($cam);

						}

						$count++;

					}				

				}

				echo '
								</ul>

							</div>

						</div>
				';
		
			}
Call function in template file :
Code:
function tpl_category_cams() {

  $age = $_GET['arg1'];

		cams_by_category( AFFID, TRACK, $age, 60 );
Added in new page in index.php :

Code:
	$core->addCommand('live', 'tpl_category_cams', 'title','', 'Keywords');
Result: ALL CAMS,All ages At least i get something
k33n is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-03-2016, 05:45 AM   #25
saimonyz
Registered User
 
saimonyz's Avatar
 
Industry Role:
Join Date: Apr 2016
Location: Europe
Posts: 14
@k33n
please upload modified files
saimonyz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-03-2016, 08:59 AM   #26
adulttemps
Confirmed User
 
Industry Role:
Join Date: May 2002
Location: Brentwood,TN Heredia, Costa Rica
Posts: 320
keen, I will work on an age based query this evening. It shouldnt't be that hard
__________________
Hillipino Money with Cams
adulttemps is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-03-2016, 03:05 PM   #27
TitanWM
Confirmed User
 
TitanWM's Avatar
 
Industry Role:
Join Date: Dec 2015
Posts: 111
Quote:
Originally Posted by saimonyz View Post
@adulttemps

yes its work includes/data/feed.xml file

working
cams/tranny

not working
cams/male
cams/female
cams/couple
cams/lesbian

you working all category? please test and tell me
I think you are trying to load the XML file from outside the US ? Look in your XML file and you will see, that the gender of each cam ist not declared like in the template.php.

I don't see any code for multi languages in the template.php

The simple 2 ways to fix that is:

A) Change the XML url in settings.php - You have to ad the "&lang=en" likte that:
define ( 'XML_FILE', 'http://tools.bongacams.com/promo.php?c=123456&lang=en&type=api&api_type=xml' . $category_string );

B) Define/update gender for each language in template.php.
__________________
CamSoda invite link - promote an unsatisfied cam site!
TitanWM is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-03-2016, 03:16 PM   #28
bns666
Confirmed Fetishist
 
bns666's Avatar
 
Industry Role:
Join Date: Mar 2005
Location: Fetishland
Posts: 11,472
finally some useful threads here
__________________
CAM SODASTRIPCHAT
CHATURBATESKYPE SEX CAMS
bns666 is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-03-2016, 03:19 PM   #29
k33n
Confirmed User
 
Join Date: Feb 2009
Posts: 201
Thanks man,really appreciated

@saimonyz
I dont have the option to upload files.But you can take a look here https://github.com/hillipino/Chaturbate-API.It's the same script, i use the outdated version,the one from NMIP. Functions are the same.
k33n is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-04-2016, 12:28 AM   #30
saimonyz
Registered User
 
saimonyz's Avatar
 
Industry Role:
Join Date: Apr 2016
Location: Europe
Posts: 14
@k33n ok

@TitanWM
thanks It works category not working Male, one does not understand what needs to be changed in template.php and why in my lang=en&type=api&api_type=xml no <gender>Male</gender>

[HIDE=1]
can anyone be able to realize what site is JSON script
bonga-cams(dot)ru
bonga-cams(dot)ru/temp/
bonga-cams(dot)ru/footer_seo.js
bonga-cams(dot)ru/footer-links.js
bonga-cams(dot)ru/header-links.js
bonga-cams(dot)ru/top_model.js
bonga-cams(dot)ru/top-menu.js
[/HIDE]
saimonyz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-05-2016, 01:49 AM   #31
adulttemps
Confirmed User
 
Industry Role:
Join Date: May 2002
Location: Brentwood,TN Heredia, Costa Rica
Posts: 320
@keen - checkout v2.1 I changed up the directory structure a bit but the functions are pretty much the same.

Just keep in mind some of the models put fake ages so the categories wont be 100% accurate.

https://github.com/hillipino/Chaturbate-API
__________________
Hillipino Money with Cams
adulttemps is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-05-2016, 04:11 AM   #32
TitanWM
Confirmed User
 
TitanWM's Avatar
 
Industry Role:
Join Date: Dec 2015
Posts: 111
Quote:
Originally Posted by saimonyz View Post
@k33n ok

@TitanWM
thanks It works category not working Male, one does not understand what needs to be changed in template.php and why in my lang=en&type=api&api_type=xml no <gender>Male</gender>
Try to change in templates.php about line 196, 'Male' to 'Males':

change
$gender = 'Male';"
to
$gender = 'Males';
__________________
CamSoda invite link - promote an unsatisfied cam site!
TitanWM is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-05-2016, 12:26 PM   #33
Freedoom
Confirmed User
 
Industry Role:
Join Date: Feb 2006
Posts: 2,739
Quote:
Originally Posted by adulttemps View Post
@keen - checkout v2.1 I changed up the directory structure a bit but the functions are pretty much the same.

Just keep in mind some of the models put fake ages so the categories wont be 100% accurate.

https://github.com/hillipino/Chaturbate-API
All the rooms are offline with this version. Also no thumbs are shown.
__________________
Get $10 In Crypto VISA card
Freedoom is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-05-2016, 12:31 PM   #34
magneto664
God Bless You
 
magneto664's Avatar
 
Industry Role:
Join Date: Aug 2014
Location: Glasgow, $cotland
Posts: 1,467
Quote:
Originally Posted by Freedoom View Post
All the rooms are offline with this version. Also no thumbs are shown.
All rooms working with this version an thumbs are shown ok.
__________________
magneto664 📧 gmail.com
Adult Backlinks 💘Best Website Stats 💘 Best CDN for Adult Content
My Fav: 👍Chaturbate 👍 Stripchat 👍 Dateprofits 👍 AdultFriendFinder
magneto664 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-05-2016, 12:33 PM   #35
adulttemps
Confirmed User
 
Industry Role:
Join Date: May 2002
Location: Brentwood,TN Heredia, Costa Rica
Posts: 320
Set use cron to false or setup a cronjob to update the feed
__________________
Hillipino Money with Cams
adulttemps is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-05-2016, 03:11 PM   #36
linkhouse
Registered User
 
linkhouse's Avatar
 
Industry Role:
Join Date: Jun 2014
Posts: 68
@adulttemps

Cron.php in V.2.1 are wrong.

require('templates.php'); don't exist anymore.
linkhouse is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-05-2016, 04:47 PM   #37
adulttemps
Confirmed User
 
Industry Role:
Join Date: May 2002
Location: Brentwood,TN Heredia, Costa Rica
Posts: 320
Oops forgot to update that, its fixed now. Thanks for the heads up
__________________
Hillipino Money with Cams
adulttemps is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-06-2016, 08:29 AM   #38
linkhouse
Registered User
 
linkhouse's Avatar
 
Industry Role:
Join Date: Jun 2014
Posts: 68
Quote:
Originally Posted by adulttemps View Post
Oops forgot to update that, its fixed now. Thanks for the heads up
Can it still be an error in the cron.php file? When I try to run it, it says "Error 500"
linkhouse is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-06-2016, 08:33 AM   #39
linkhouse
Registered User
 
linkhouse's Avatar
 
Industry Role:
Join Date: Jun 2014
Posts: 68
Quote:
Originally Posted by linkhouse View Post
Can it still be an error in the cron.php file? When I try to run it, it says "Error 500"


I found the error, you need to remove the "includes/" in every line!
linkhouse is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-06-2016, 10:06 AM   #40
adulttemps
Confirmed User
 
Industry Role:
Join Date: May 2002
Location: Brentwood,TN Heredia, Costa Rica
Posts: 320
yep updated the git repo as well

<?php

// Include Settings

require('settings.php');
require('functions.php');


get_xml();

echo 'nothing here to see';

?>
__________________
Hillipino Money with Cams
adulttemps is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-06-2016, 12:05 PM   #41
linkhouse
Registered User
 
linkhouse's Avatar
 
Industry Role:
Join Date: Jun 2014
Posts: 68
Quote:
Originally Posted by adulttemps View Post
yep updated the git repo as well

<?php

// Include Settings

require('settings.php');
require('functions.php');


get_xml();

echo 'nothing here to see';

?>
I must have something wrong in the code, error list:

failed to open stream: No such file or directory in

/includes/includes/data/feed.xml

one /includes to much.
linkhouse is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-06-2016, 12:07 PM   #42
linkhouse
Registered User
 
linkhouse's Avatar
 
Industry Role:
Join Date: Jun 2014
Posts: 68

Quote:
Originally Posted by linkhouse View Post
I must have something wrong in the code, error list:

failed to open stream: No such file or directory in

/includes/includes/data/feed.xml

one /includes to much.
I found the error. settings.php says:

"define ( 'FLATFILE', BASEPATH . '/includes/data/feed.xml'); // Name of file to store xml feed into"

includes/ must be deleted.

But then the website is not working hmmmm...


Update:
I edit some of the path in functions:

define ( 'BASEPATH', '/home/xxx/public_html/xxx .com/' );
define ( 'FLATFILE', BASEPATH . '/includes/data/feed.xml');

Now it works good!
linkhouse is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-06-2016, 12:28 PM   #43
adulttemps
Confirmed User
 
Industry Role:
Join Date: May 2002
Location: Brentwood,TN Heredia, Costa Rica
Posts: 320
define ( 'BASEPATH', '/home/xxx/public_html/xxx .com/' );
define ( 'FLATFILE', BASEPATH . '/includes/data/feed.xml');

should be

define ( 'BASEPATH', '/home/xxx/public_html/xxx .com' );
define ( 'FLATFILE', BASEPATH . '/includes/data/feed.xml');

removing the '/' from the end of the basepath
__________________
Hillipino Money with Cams
adulttemps is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-06-2016, 02:21 PM   #44
linkhouse
Registered User
 
linkhouse's Avatar
 
Industry Role:
Join Date: Jun 2014
Posts: 68
Quote:
Originally Posted by adulttemps View Post
define ( 'BASEPATH', '/home/xxx/public_html/xxx .com/' );
define ( 'FLATFILE', BASEPATH . '/includes/data/feed.xml');

should be

define ( 'BASEPATH', '/home/xxx/public_html/xxx .com' );
define ( 'FLATFILE', BASEPATH . '/includes/data/feed.xml');

removing the '/' from the end of the basepath
Thank you! You are the best!
linkhouse is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-07-2016, 04:52 AM   #45
Freedoom
Confirmed User
 
Industry Role:
Join Date: Feb 2006
Posts: 2,739
Anyone manage to fix the problem with the cron? I've updated to the new cron.php and I run the cron but the site doesn't get update. The site only gets updated when I turn the cron to false
__________________
Get $10 In Crypto VISA card
Freedoom is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-07-2016, 06:34 AM   #46
linkhouse
Registered User
 
linkhouse's Avatar
 
Industry Role:
Join Date: Jun 2014
Posts: 68
Version 2.1, is there a way to change the _banner display to a Male or Shemale? Now it only shows top viewer.
linkhouse is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-07-2016, 06:44 AM   #47
linkhouse
Registered User
 
linkhouse's Avatar
 
Industry Role:
Join Date: Jun 2014
Posts: 68
Quote:
Originally Posted by linkhouse View Post
Version 2.1, is there a way to change the _banner display to a Male or Shemale? Now it only shows top viewer.
I think I solved the problem, I put in: if ( $cam->gender == s )

code:

function tpl_banner() {

$cams = new SimpleXMLElement(FLATFILE, null, true);
$count = 0;


foreach( $cams as $cam ){

if ( $cam->gender == s ) {
if ( $count == 0 )

{
linkhouse is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-07-2016, 06:52 AM   #48
Freedoom
Confirmed User
 
Industry Role:
Join Date: Feb 2006
Posts: 2,739
Quote:
Originally Posted by linkhouse View Post
Version 2.1, is there a way to change the _banner display to a Male or Shemale? Now it only shows top viewer.
you fix the problem with the cron in 2.1?
__________________
Get $10 In Crypto VISA card
Freedoom is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-07-2016, 12:55 PM   #49
linkhouse
Registered User
 
linkhouse's Avatar
 
Industry Role:
Join Date: Jun 2014
Posts: 68
Quote:
Originally Posted by Freedoom View Post
you fix the problem with the cron in 2.1?
Yes. Download the latest cron.php file from the v2.1

And check that settings.php have the right paths

For exempel:

define ( 'BASEPATH', '/home/xxx/public_html/xxx .com' );
define ( 'FLATFILE', BASEPATH . '/includes/data/feed.xml');
linkhouse is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-07-2016, 01:26 PM   #50
Freedoom
Confirmed User
 
Industry Role:
Join Date: Feb 2006
Posts: 2,739
Quote:
Originally Posted by linkhouse View Post
Yes. Download the latest cron.php file from the v2.1

And check that settings.php have the right paths

For exempel:

define ( 'BASEPATH', '/home/xxx/public_html/xxx .com' );
define ( 'FLATFILE', BASEPATH . '/includes/data/feed.xml');
Yes I did.
But the new settings.php in V2.1 doesn't have that base path.

define ( 'BASEPATH', getcwd() );
define ( 'FLATFILE', BASEPATH . '/includes/data/feed.xml');
If I removed the includes/ it doesn't work.
The only way the site is updated is only if I turn the cron to false
__________________
Get $10 In Crypto VISA card
Freedoom is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks

Tags
code, chaturbate, data, api, php, specific, topic, modelxxx, age, language, root, finish, display, page, model, custom, script, site, building, coding, trubble, figuring, recieive, xml, feed



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.