Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-03-2007, 08:53 AM
PET's Avatar
PET PET is offline
 
Join Date: Jan 2002
Location: Timisoara/Romania
Posts: 305
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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?
Reply With Quote
  #2  
Old 05-03-2007, 01:09 PM
tobybird's Avatar
tobybird tobybird is offline
 
Join Date: Jul 2006
Posts: 374
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 05-03-2007, 04:08 PM
PET's Avatar
PET PET is offline
 
Join Date: Jan 2002
Location: Timisoara/Romania
Posts: 305
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks. Now i'm "researching"
Reply With Quote
  #4  
Old 05-18-2007, 09:42 PM
PET's Avatar
PET PET is offline
 
Join Date: Jan 2002
Location: Timisoara/Romania
Posts: 305
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 05-20-2007, 10:19 PM
PET's Avatar
PET PET is offline
 
Join Date: Jan 2002
Location: Timisoara/Romania
Posts: 305
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #6  
Old 05-21-2007, 06:21 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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'
Reply With Quote
  #7  
Old 05-21-2007, 04:17 PM
PET's Avatar
PET PET is offline
 
Join Date: Jan 2002
Location: Timisoara/Romania
Posts: 305
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Attached Files
File Type: php vb_threads.php (2.2 KB, 12 views)
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:26 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.10495 seconds
  • Memory Usage 2,246KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (2)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (1)postbit_attachment
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete