vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Latest threads on my website (https://vborg.vbsupport.ru/showthread.php?t=146365)

PET 05-03-2007 08:53 AM

Latest threads on my website
 
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/showp...66&postcount=2

http://www.vbulletin.com/docs/html/m...r_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:

Quote:

[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

[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

Code:

[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:
PHP Code:

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

Replace it with:
PHP Code:

fopen('/usr/local/websites/chadestrat/www_webmasters_org/forum/external.php?type=xml'


PET 05-21-2007 04:17 PM

1 Attachment(s)
I tried that now I get this errors:

Quote:

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]: 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:

Quote:

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?


All times are GMT. The time now is 09:13 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.01017 seconds
  • Memory Usage 1,732KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete