vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Basic thread/news export script from vB to non-vB page (https://vborg.vbsupport.ru/showthread.php?t=77056)

Dave Rosteck 02-26-2005 04:03 AM

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.

Johnny 02-26-2005 12:15 PM

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?

radigan 02-27-2005 01:50 AM

I asked for something similar yesterday, nobody even replied.

Thanks for all the help everyone, great community.

cinq 02-27-2005 02:20 AM

1 Attachment(s)
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.

Dave Rosteck 02-27-2005 06:36 PM

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?

Johnny 02-28-2005 01:48 AM

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.

Dave Rosteck 02-28-2005 05:25 AM

1 Attachment(s)
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.

Johnny 02-28-2005 04:49 PM

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.

eva01_ 02-28-2005 04:52 PM

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

Dave Rosteck 02-28-2005 07:45 PM

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.


All times are GMT. The time now is 03:08 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.00983 seconds
  • Memory Usage 1,741KB
  • 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_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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