Mikhailtech
06-21-2007, 12:37 PM
I'm trying to get "latest threads" to show up on my main site (external location from the forums) but I'm having trouble. I've done some research and it seems there are 2 ways to do this: either via hard coding, or a plugin (VBExternal seems to be the popular choice). I'm trying to get VBExternal to run and I posted in the mod thread but haven't gotten a response. I think my problem is simple, but I can't figure it out due to my lack of coding knowledge. Here's what is says I need to do to make it work:
How To Use vBExternal:
First the webpage you use it on must be php, if it is .htm/.html just re-name the extension to .php Next step is to call the file, in this example we assume that your site is: http://hello.com, and your forum is located at: http://hello.com/forums, so insert this code at the very top of our php file:
<?php
chdir('./forums');
require_once('./vBExternal.php');
?>
However, although my forum is located 1 folder deep in the root directory (public_html/forum), it's located in a sub-domain, http://forum.mikhailtech.com. I'm not sure if this has anything to do with anything, but typing ./forum doesn't seem to work. Can anyone help me out?
How To Use vBExternal:
First the webpage you use it on must be php, if it is .htm/.html just re-name the extension to .php Next step is to call the file, in this example we assume that your site is: http://hello.com, and your forum is located at: http://hello.com/forums, so insert this code at the very top of our php file:
<?php
chdir('./forums');
require_once('./vBExternal.php');
?>
However, although my forum is located 1 folder deep in the root directory (public_html/forum), it's located in a sub-domain, http://forum.mikhailtech.com. I'm not sure if this has anything to do with anything, but typing ./forum doesn't seem to work. Can anyone help me out?