Announcement

Collapse
No announcement yet.

VBSyndicate Hack V1

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

    http://cpfc.org/news/newsfeed.html

    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/

  • #2
    don't use the txt file

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

    Comment


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


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


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


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


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


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

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

                Comment


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


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


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


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


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


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


                            • #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...
                              X