VBSyndicate Hack V1

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Dave#
    Senior Member
    • Jul 2000
    • 1845

    VBSyndicate Hack V1

    Synopsis

    This hack allows webmaster to provide syndicated VB content to other webmasters such as Latest topics, Latest Polls or calendar entries to other webmasters for inclusion on their websites. The webmasters using the feeds do NOT need PHP, PERL, MYSQL, ASP just a javascript enabled browser.

    Requirements

    * Crontab
    * The ability to run PHP via the command line

    Example



    Please note the documentation is sketchy and if your aren't savvy with hacking code yourself then maybe you should wait until the documentation is up to speed.
    http://forums.cpfc.org/
  • Dave#
    Senior Member
    • Jul 2000
    • 1845

    #2
    don't use the txt file

    use this
    http://forums.cpfc.org/

    Comment

    • Steve Machol
      Former Customer Support Manager
      • Jul 2000
      • 154488

      #3
      This looks really interesting Dave. I'm looking forward to trying this out. Good job!
      Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
      Change CKEditor Colors to Match Style (for 4.1.4 and above)

      Steve Machol Photography


      Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


      Comment

      • Steve Machol
        Former Customer Support Manager
        • Jul 2000
        • 154488

        #4
        I'm doing something wrong. I get these errors when trying to run activefeed.php from the command line:

        Code:
        ./activefeed.php: ?: No such file or directory
        ./activefeed.php: line 2: syntax error near unexpected token `require("/home/smachol/www/forums/admin/config.php")'
        ./activefeed.php: line 2: `require("/home/smachol/www/forums/admin/config.php");'
        Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
        Change CKEditor Colors to Match Style (for 4.1.4 and above)

        Steve Machol Photography


        Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


        Comment

        • Dave#
          Senior Member
          • Jul 2000
          • 1845

          #5
          Steve when executing your php file from the command line (telnet/SSH) you must specify the location of php binary

          Ie for me

          /usr/local/php/bin/php -q /path/to/php/file
          http://forums.cpfc.org/

          Comment

          • Scott MacVicar
            Former vBulletin Developer
            • Dec 2000
            • 13286

            #6
            if you can't get that to work you can do the following

            /usr/bin/lynx -dump http://url.com/to/script.php
            Scott MacVicar

            My Blog | Twitter

            Comment

            • chrispadfield
              Senior Member
              • Aug 2000
              • 5366

              #7
              Dave this is very cool. Looking forward to play with it.
              Christopher Padfield
              Web Based Helpdesk
              DeskPRO v3.0.3 Released - Download Demo Now!

              Comment

              • DarkReaper
                Senior Member
                • May 2001
                • 731

                #8
                Schleet
                Seriously! - The Definitive Home of All Things Serious
                Seriously! Forums

                To recieve support on these forums, enter your username here.

                Comment

                • Steve Machol
                  Former Customer Support Manager
                  • Jul 2000
                  • 154488

                  #9
                  Invoking it with the path to php gives me this error now:

                  Code:
                  bash:~/www/forums$ /usr/bin/php -q activefeed.php
                  <br>
                  <b>Fatal error</b>:  Call to undefined function:  mysql_connect() in <b>activefeed.php</b> on line <
                  b>7</b><br>
                  Line 7 contains:

                  mysql_select_db($dbname);
                  Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
                  Change CKEditor Colors to Match Style (for 4.1.4 and above)

                  Steve Machol Photography


                  Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


                  Comment

                  • cyo
                    Senior Member
                    • Jul 2000
                    • 451
                    • 3.0.7

                    #10
                    you might need to add

                    #!/usr/local/bin/php at the top of your file. If you are running php as cgi mode.

                    Comment

                    • Steve Machol
                      Former Customer Support Manager
                      • Jul 2000
                      • 154488

                      #11
                      Nope, I'm not running PHP in cgi-mode. Any other ideas? I really want to get this one working.
                      Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
                      Change CKEditor Colors to Match Style (for 4.1.4 and above)

                      Steve Machol Photography


                      Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


                      Comment

                      • Dave#
                        Senior Member
                        • Jul 2000
                        • 1845

                        #12
                        Originally posted by smachol
                        Nope, I'm not running PHP in cgi-mode. Any other ideas? I really want to get this one working.

                        your on linux?

                        try

                        locate php|more

                        search through until you find a binary rather than a directory
                        http://forums.cpfc.org/

                        Comment

                        • Steve Machol
                          Former Customer Support Manager
                          • Jul 2000
                          • 154488

                          #13
                          Dave,

                          /usr/bin/php is the binary.

                          bash:/usr/bin$ ls -al ph*
                          -rwxr-xr-x 1 root root 1066892 Mar 3 2001 php
                          Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
                          Change CKEditor Colors to Match Style (for 4.1.4 and above)

                          Steve Machol Photography


                          Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


                          Comment

                          • Dave#
                            Senior Member
                            • Jul 2000
                            • 1845

                            #14
                            Steve:

                            1) Can you run any php scripts via the command line?
                            2) Is your path to config.php correct?
                            http://forums.cpfc.org/

                            Comment

                            • Steve Machol
                              Former Customer Support Manager
                              • Jul 2000
                              • 154488

                              #15
                              1. Apparently not. I tried with a couple of other scripts and got the same error. How do I get around this?

                              2. Yes, otherwise my forums would cease to function.

                              Thanks!
                              Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
                              Change CKEditor Colors to Match Style (for 4.1.4 and above)

                              Steve Machol Photography


                              Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


                              Comment

                              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                              Working...