The Arcive of vBulletin Modifications Site. |
|
Details »»
|
|||||||||||||||||||||||||
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. Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
don't use the txt file
use this |
|
#3
|
||||
|
||||
|
This looks really interesting Dave. I'm looking forward to trying this out. Good job!
|
|
#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");'
|
|
#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 |
|
#6
|
|||
|
|||
|
if you can't get that to work you can do the following
/usr/bin/lynx -dump http://url.com/to/script.php |
|
#7
|
||||
|
||||
|
Dave this is very cool. Looking forward to play with it.
|
|
#8
|
|||
|
|||
|
Schleet
|
|
#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> mysql_select_db($dbname); |
|
#10
|
||||
|
||||
|
you might need to add
#!/usr/local/bin/php at the top of your file. If you are running php as cgi mode. |
![]() |
|
|