Need help with Chaturbate API coding.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • adulttemps
    Confirmed User
    • May 2002
    • 320

    #31
    @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

    Comment

    • TitanWM
      Confirmed User
      • Dec 2015
      • 111

      #32
      Originally posted by saimonyz
      @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!

      Comment

      • Freedoom
        Confirmed User
        • Feb 2006
        • 2811

        #33
        Originally posted by adulttemps
        @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.
        List Of Sex Cams

        Comment

        • magneto664
          God Bless You
          • Aug 2014
          • 1470

          #34
          Originally posted by Freedoom
          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
          Cams.Zone 💘 Best CDN for Adult Content
          My Fav: 👍 Chaturbate 👍 Stripchat 👍 AdultFriendFinder

          Comment

          • adulttemps
            Confirmed User
            • May 2002
            • 320

            #35
            Set use cron to false or setup a cronjob to update the feed
            Hillipino Money with Cams

            Comment

            • linkhouse
              Registered User
              • Jun 2014
              • 68

              #36
              @adulttemps

              Cron.php in V.2.1 are wrong.

              require('templates.php'); don't exist anymore.

              Comment

              • adulttemps
                Confirmed User
                • May 2002
                • 320

                #37
                Oops forgot to update that, its fixed now. Thanks for the heads up
                Hillipino Money with Cams

                Comment

                • linkhouse
                  Registered User
                  • Jun 2014
                  • 68

                  #38
                  Originally posted by adulttemps
                  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"

                  Comment

                  • linkhouse
                    Registered User
                    • Jun 2014
                    • 68

                    #39
                    Originally posted by linkhouse
                    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!

                    Comment

                    • adulttemps
                      Confirmed User
                      • May 2002
                      • 320

                      #40
                      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

                      Comment

                      • linkhouse
                        Registered User
                        • Jun 2014
                        • 68

                        #41
                        Originally posted by adulttemps
                        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.

                        Comment

                        • linkhouse
                          Registered User
                          • Jun 2014
                          • 68

                          #42
                          Originally posted by linkhouse
                          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!

                          Comment

                          • adulttemps
                            Confirmed User
                            • May 2002
                            • 320

                            #43
                            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

                            Comment

                            • linkhouse
                              Registered User
                              • Jun 2014
                              • 68

                              #44
                              Originally posted by adulttemps
                              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!

                              Comment

                              • Freedoom
                                Confirmed User
                                • Feb 2006
                                • 2811

                                #45
                                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
                                List Of Sex Cams

                                Comment

                                Working...