Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-26-2005, 04:03 AM
Dave Rosteck's Avatar
Dave Rosteck Dave Rosteck is offline
 
Join Date: Jul 2002
Location: Corvallis, OR
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Basic thread/news export script from vB to non-vB page

Can someone please direct me to a decent "thread/news export script from vB to non-vB page" for vB3 that actually works unlike this one? This hack is exactly what I'm looking for but unfortunately 98% of us could not get it to work, not to mention there's no longer support for this hack. The scripts works fine only it refuses to include on my non-vB pages.

No, I won't settle for any portals, I just need a single functional news script that will pull the threads in my desired forum into my main site as news for users to comment on.

Is this so much to ask? I apologize for sounding so demanding but I've been searching for days now and with no luck.

Thanks in advance for the help.
Reply With Quote
  #2  
Old 02-26-2005, 12:15 PM
Johnny's Avatar
Johnny Johnny is offline
 
Join Date: Jun 2002
Posts: 290
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i use that same exact hack and it works fine for me without a problem.
Have you done everything they told you to do on the thread?
Reply With Quote
  #3  
Old 02-27-2005, 01:50 AM
radigan radigan is offline
 
Join Date: Jan 2005
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I asked for something similar yesterday, nobody even replied.

Thanks for all the help everyone, great community.
Reply With Quote
  #4  
Old 02-27-2005, 02:20 AM
cinq's Avatar
cinq cinq is offline
 
Join Date: Oct 2002
Posts: 1,398
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Amended the file in the link slightly you provided ( https://vborg.vbsupport.ru/showthread.php?t=65114 ),
to use vb's db connection etc.

Should work how you want it to, if you put in the proper chdir.

But the code is not efficient, queries in loops.

Edit: Untested, use at own risk. That said, I believe there are other threads out there which does the same thing as well.
Attached Files
File Type: php newsout.php (4.0 KB, 25 views)
Reply With Quote
  #5  
Old 02-27-2005, 06:36 PM
Dave Rosteck's Avatar
Dave Rosteck Dave Rosteck is offline
 
Join Date: Jul 2002
Location: Corvallis, OR
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Johnny
i use that same exact hack and it works fine for me without a problem.
Have you done everything they told you to do on the thread?
I followed the directions completely, even looking it over numerous times. The strange thing is, the newsout.php works fine on my server:

http://forums.davesmk.com/newsout.php

The only problem I'm having is that I simply can't include the damn file on my non-VB page. I get the following error:

Warning: main(/forums/newsout.php): failed to open stream: No such file or directory in /home/davesmk/public_html/test.php on line 411

Warning: main(): Failed opening '/forums/newsout.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/davesmk/public_html/test.php on line 411


I've tried altering the paths in every way possible with no success. What the hell could I be doing wrong here?
Reply With Quote
  #6  
Old 02-28-2005, 01:48 AM
Johnny's Avatar
Johnny Johnny is offline
 
Join Date: Jun 2002
Posts: 290
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dave Rosteck
I followed the directions completely, even looking it over numerous times. The strange thing is, the newsout.php works fine on my server:

http://forums.davesmk.com/newsout.php

The only problem I'm having is that I simply can't include the damn file on my non-VB page. I get the following error:

Warning: main(/forums/newsout.php): failed to open stream: No such file or directory in /home/davesmk/public_html/test.php on line 411

Warning: main(): Failed opening '/forums/newsout.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/davesmk/public_html/test.php on line 411


I've tried altering the paths in every way possible with no success. What the hell could I be doing wrong here?
sorry it took so long...
Can you send me your file or post it on here so i can take a look what you might be doing wrong. I just tested it on my server putting the file outside of the forums directory and it seemed like its working fine without a problem. I just cant figure out by editing my files by getting the warnings you got.
Reply With Quote
  #7  
Old 02-28-2005, 05:25 AM
Dave Rosteck's Avatar
Dave Rosteck Dave Rosteck is offline
 
Join Date: Jul 2002
Location: Corvallis, OR
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Johnny
sorry it took so long...
Can you send me your file or post it on here so i can take a look what you might be doing wrong. I just tested it on my server putting the file outside of the forums directory and it seemed like its working fine without a problem. I just cant figure out by editing my files by getting the warnings you got.
I attached the file and I included the newsout.php towards the bottom.
Attached Files
File Type: php test.php (20.2 KB, 17 views)
Reply With Quote
  #8  
Old 02-28-2005, 04:49 PM
Johnny's Avatar
Johnny Johnny is offline
 
Join Date: Jun 2002
Posts: 290
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

have you tried adding at the top of test.php
PHP Code:
<?php
chdir
("/home/***/public_html/forums"); 

require_once(
"./global.php"); 

?>
it worked for me by adding that but im not really sure if it is going to effect other php includes that is already on the page.
Reply With Quote
  #9  
Old 02-28-2005, 04:52 PM
eva01_'s Avatar
eva01_ eva01_ is offline
 
Join Date: Aug 2004
Location: Plymouth
Posts: 255
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i take it all that you want something like this?

www.animetunes.com/john

that the news is like that on the main page?

this is a custom job and you can PM for details
Reply With Quote
  #10  
Old 02-28-2005, 07:45 PM
Dave Rosteck's Avatar
Dave Rosteck Dave Rosteck is offline
 
Join Date: Jul 2002
Location: Corvallis, OR
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Johnny
have you tried adding at the top of test.php
PHP Code:
<?php
chdir
("/home/***/public_html/forums"); 

require_once(
"./global.php"); 

?>
it worked for me by adding that but im not really sure if it is going to effect other php includes that is already on the page.
All it did was include my forum's header, no permission message and footer. Thanks for the help man but I'm afraid I'm screwed.
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 12:11 PM.


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.09099 seconds
  • Memory Usage 2,286KB
  • Queries Executed 12 (?)
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
  • (2)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete