vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   VBSyndicate Hack V1 (https://vborg.vbsupport.ru/showthread.php?t=28872)

Dave# 09-24-2001 10:00 PM

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.

Dave# 09-25-2001 01:29 PM

don't use the txt file

use this

Steve Machol 09-25-2001 02:45 PM

This looks really interesting Dave. I'm looking forward to trying this out. Good job! :)

Steve Machol 09-25-2001 04:13 PM

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");'


Dave# 09-25-2001 05:21 PM

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

Scott MacVicar 09-25-2001 07:28 PM

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

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

chrispadfield 09-25-2001 10:59 PM

Dave this is very cool. Looking forward to play with it.

DarkReaper 09-26-2001 12:06 AM

Schleet :)

Steve Machol 09-26-2001 02:33 AM

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);

mcncyo 09-26-2001 07:00 AM

you might need to add

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


All times are GMT. The time now is 08:39 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01146 seconds
  • Memory Usage 1,728KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete