Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Need help... Details »»
Need help...
Version: , by PixelFx PixelFx is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 07-22-2003 Last Update: Never Installs: 0
 
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 07-22-2003, 06:53 AM
corsacrazy's Avatar
corsacrazy corsacrazy is offline
 
Join Date: May 2002
Location: london
Posts: 854
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

wil they not help over at http://www.teckwizards.com ? try a serch there for subdomain im sure ive seen it
Reply With Quote
  #3  
Old 07-22-2003, 07:04 AM
PixelFx PixelFx is offline
 
Join Date: Dec 2002
Posts: 1,117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Reply With Quote
  #4  
Old 07-22-2003, 07:26 AM
corsacrazy's Avatar
corsacrazy corsacrazy is offline
 
Join Date: May 2002
Location: london
Posts: 854
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #5  
Old 07-22-2003, 08:19 AM
PixelFx PixelFx is offline
 
Join Date: Dec 2002
Posts: 1,117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #6  
Old 07-22-2003, 12:55 PM
noppid noppid is offline
 
Join Date: Mar 2003
Location: Florida
Posts: 1,875
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try using the absolute path...

"/home/sitename/public_html/dir/include_file.php"
Reply With Quote
  #7  
Old 07-22-2003, 01:07 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #8  
Old 07-22-2003, 06:45 PM
PixelFx PixelFx is offline
 
Join Date: Dec 2002
Posts: 1,117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ntlr how would I write that?

Code:
require_once( "ln -s /path/to/global.php ./global.php" );  ?
thank you for your help
Reply With Quote
  #9  
Old 07-22-2003, 06:58 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #10  
Old 07-22-2003, 07:12 PM
PixelFx PixelFx is offline
 
Join Date: Dec 2002
Posts: 1,117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:00 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.04450 seconds
  • Memory Usage 2,288KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete