PDA

View Full Version : Basic thread/news export script from vB to non-vB page


Dave Rosteck
02-26-2005, 04:03 AM
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 (https://vborg.vbsupport.ru/showthread.php?t=65114)? 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
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
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
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
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
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
have you tried adding at the top of test.php
<?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.

Kei Kurono
04-05-2005, 03:45 AM
your not the only one whos screwed.
Im having the same problems and i dont get it.
Funny thing is i was doing it by my own coding and the concept as the file attached is the same but both of them give the same warning -_-