vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Need help... (https://vborg.vbsupport.ru/showthread.php?t=55502)

PixelFx 07-22-2003 06:31 AM

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 ...

corsacrazy 07-22-2003 06:53 AM

wil they not help over at http://www.teckwizards.com ? try a serch there for subdomain im sure ive seen it

PixelFx 07-22-2003 07:04 AM

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...

:(

corsacrazy 07-22-2003 07:26 AM

:( 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 :(

PixelFx 07-22-2003 08:19 AM

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 ;)

noppid 07-22-2003 12:55 PM

Try using the absolute path...

"/home/sitename/public_html/dir/include_file.php"

NTLDR 07-22-2003 01:07 PM

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
ln -s /path/to/global.php ./global.php


PixelFx 07-22-2003 06:45 PM

ntlr how would I write that?

Code:


require_once( "ln -s /path/to/global.php ./global.php" );  ?

thank you for your help

NTLDR 07-22-2003 06:58 PM

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 :)

PixelFx 07-22-2003 07:12 PM

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:


// +--------------------------------------------------------------
// | Initialize script
// +--------------------------------------------------------------
require_once( './' . $adminpath . '/config.php' );

I can't change the global as it would effect the rest of my site.

any ideas?

thank you


All times are GMT. The time now is 02:42 PM.

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.01023 seconds
  • Memory Usage 1,729KB
  • 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
  • (3)bbcode_code_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