![]() |
Need help...
I'm trying to get a copy of my vbhome page to load from a sub directly.
aka vbhome installed in www.URLcom/root but then make a copy of the vbhome index.php put it in a sub directory example: URL/dir/index.php or sub.url.com/dir/index.php and have it load from the vbhome global in the www.url.com/root. I've tried everything I can think of just about, but I'm still new to php so wondering if you guys can make a suggestion, I've been stumpt by this for 3 days now. basically vbhome has a way to do multi home pages, which is cool if your pages.php are in the same directy as the vbhome root. I can get that to work fine, but the min I tried to do the same in a sub directory nothing works and I get lots of errors. Does this make sence? I've tried, require_once( "../../global.php" ); require_once( "./global.php" ); require_once( "url/global.php" ); etc nothing worked... I'm guessing I'm just missing something simple, but need help ... |
wil they not help over at http://www.teckwizards.com ? try a serch there for subdomain im sure ive seen it
|
I've tried for the last week at techwizards, but Teck is closing that site august 1st, and the place seems to be a bit of ghost town, with people waiting for vb3.0...
:( |
:( vb2 is dying here aswell :( the majority are stayng on 2 i think i know i am ! my site has got too many small hacks that i cant even remember so i woodnt upgrade risking a loss of things :(
|
it will be interesting to see how many hacks and how fast they come out once vb3.0 comes out, however, I could really use some help to figour the above out ;)
|
Try using the absolute path...
"/home/sitename/public_html/dir/include_file.php" |
If you only want one copy of the file and are using Linux create a symbolic link to it:
Code:
cd /path/to/page.php |
ntlr how would I write that?
Code:
|
You need to do that on the Linux command line via SSH.
Just change the path to global.php to match where it is on your server :) |
NTLDR I tried the SSH above, nice, I need to learn SSH better :), however
When I tried it it gave me this error Warning: main(./forum/admin/config.php) [function.main]: failed to create stream: No such file or directory in /home/sku/public_html/global.php on line 744 Fatal error: main() [function.main]: Failed opening required './forum/admin/config.php' (include_path='.:/usr/local/lib/php') in /home/sku/public_html/global.php on line 744 below line 744 Code:
any ideas? thank you |
Ah yes, I forgot that global.php included some other files.
If you set $adminpath to the full path to the admin directory and then change the require lines to: PHP Code:
This should allow it to work on all the pages. |
WOOT!!!! thank you got it..
I had to change the requred path in the vbhome global.php for a few other $adminpaths to get it to work. since it would chance my vbhome home to work... next to getting art to link up and style .. I had to change Code:
require_once($adminpath . '/db_' . $dbservertype . '.php' ); Code:
require_once($adminpath . '/functions.php' ); the ssh really helps.. thank you :) demo: http://games.shukenja.com/ac/index.php I had a bit of an issue with the images but got that sorted out next fun is adding styles. |
All times are GMT. The time now is 03:20 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|