Log in

View Full Version : Latest threads on my website


PET
05-03-2007, 08:53 AM
Hello,

I'm wondering if there is any plugin that can display the latest threads. My website is not a vBulletin addon, so I have to have a PHP file that I will include(). Any sugestions?

tobybird
05-03-2007, 01:09 PM
You can use your External Data Provider to accomplish this.

(Admin CP - vBulletin Options - External Data Provider)

Take a look at these:

http://www.vbulletin.com/forum/showpost.php?p=1198366&postcount=2

http://www.vbulletin.com/docs/html/main/vboptions_externaldataprovider_implementing

PET
05-03-2007, 04:08 PM
Thanks. Now i'm "researching" :)

PET
05-18-2007, 09:42 PM
Hello again,

I have made a PHP page wich includes another php file that contains the code from one of the examples. I tried RSS and XML.

http://www.webmasters.org/forum/external.php?type=xml

this link works fine. Also the RSS works fine. However if I try to acces my PHP code that supose to "extract" the XML, the script simply ... slows. It does not load.

http://www.webmasters.org/vb_threads.php

try it.

EDIT: I have puted the file on my localhost and it works. It seems this is a server problem.

PET
05-20-2007, 10:19 PM
This is what the error is:

[Sat May 19 14:43:19 2007] [error] PHP Warning: fopen(http://www.webmasters.org/forum/external.php?type=xml (http://www.webmasters.org/forum/external.php?type=xml)) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Operation timed out in /usr/local/websites/chadestrat/www_webmasters_org/vb_threads.php on line 77

[Sat May 19 14:43:19 2007] [error] PHP Warning: fread(): supplied argument is not a valid stream resource in /usr/local/websites/chadestrat/www_webmasters_org/vb_threads.php on line 79

[Sat May 19 14:43:19 2007] [error] PHP Warning: fclose(): supplied argument is not a valid stream resource in /usr/local/websites/chadestrat/www_webmasters_org/vb_threads.php on line 84

Any sugestions why?

Dismounted
05-21-2007, 06:21 AM
[Sat May 19 14:43:19 2007] [error] PHP Warning: fopen(http://www.webmasters.org/forum/external.php?type=xml) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Operation timed out in /usr/local/websites/chadestrat/www_webmasters_org/vb_threads.php on line 77
This is the error to concentrate on, as the other two are caused by this one. Instead of:
fopen('http://www.webmasters.org/forum/external.php?type=xml')
Replace it with:
fopen('/usr/local/websites/chadestrat/www_webmasters_org/forum/external.php?type=xml')

PET
05-21-2007, 04:17 PM
I tried that now I get this errors:


Array ( [path] => af/usr/local/websites/chadestrat/www_webmasters_org/forum/external.php [query] => type=xml )
Notice: Undefined index: scheme in /usr/local/websites/chadestrat/www_webmasters_org/vb_threads.php on line 18

Notice: Undefined index: host in /usr/local/websites/chadestrat/www_webmasters_org/vb_threads.php on line 18

Warning: fopen(af/usr/local/websites/chadestrat/www_webmasters_org/forum/external.php?type=xml) [function.fopen (http://www.webmasters.org/function.fopen)]: failed to open stream: No such file or directory in /usr/local/websites/chadestrat/www_webmasters_org/vb_threads.php on line 81

Warning: fread(): supplied argument is not a valid stream resource in /usr/local/websites/chadestrat/www_webmasters_org/vb_threads.php on line 83

Warning: fclose(): supplied argument is not a valid stream resource in /usr/local/websites/chadestrat/www_webmasters_org/vb_threads.php on line 88


and this error when I try to echo:

Notice: Undefined variable: xml_output in /usr/local/websites/chadestrat/www_webmasters_org/index.php on line 39


This is the script i'm using:



P.S. Could this happen if I'm using vBSEO?