SOLVED Create Pages NOT In Root


Subject: Create Pages NOT In Root
I have some personal pages in IP, but I want to move them from root. How can I change in these files to work?


Code: [Download] [Hide] [Select]
define('IN_PHPBB', true);

$phpbb_root_path = './'; // <--

include($phpbb_root_path . 'extension.inc');

include($phpbb_root_path . 'common.'.$phpEx);

$userdata = session_pagestart($user_ip, PAGE_INDEX);

init_userprefs($userdata);

$page_title = '';

include($phpbb_root_path . 'includes/page_header.'.$phpEx);

Subject: Re: Create Pages NOT In Root
I dunno if this will work, but try to change this

$phpbb_root_path = './'; // <--

into

$phpbb_root_path = '../'; // <--

and put all the pages inside a folder

Subject: Re: Create Pages NOT In Root
If the pages are on an upper level in comparison to the forum I think that you can put (but I have not tested):

Code: [Download] [Hide] [Select]
$phpbb_root_path = './forum_root'; //


For a lower level I have controlled index.php in the "adm" directory. The code for a directory inside the forum is:

Code: [Download] [Hide] [Select]
$phpbb_root_path = './../';




---------------------------

By Google: ./ is a security code against hackering!

Subject: Re: Create Pages NOT In Root
You are right :mrblue:

Subject: Re: Create Pages NOT In Root
I have this error now:

Code: [Download] [Hide] [Select]
Warning: imp_linear_login_func(includes/functions_groups.php) [function.imp-linear-login-func]: failed to open stream: No such file or directory in ***/blocks/blocks_imp_linear_login.php on line 30

Warning: imp_linear_login_func() [function.include]: Failed opening 'includes/functions_groups.php' for inclusion (include_path='.:/php/lib/php/') in ***/blocks/blocks_imp_linear_login.php on line 30

Fatal error: Call to undefined function: colorize_username() in ***/blocks/blocks_imp_linear_login.php on line 50

Subject: Re: Create Pages NOT In Root
I think the linear login mod does it...
how can I solve?

Subject: Re: Create Pages NOT In Root
I tried to apply this to a fresh forum. ($phpbb_root_path = './../';)

It's ok, but no images

Last edited by Gianni PB on Wed 13 May, 2009 12:25; edited 1 time in total
Subject: Re: Create Pages NOT In Root
You need to add absolute path to images to make them pop-up. :wink:


Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.9968s (PHP: 2% SQL: 98%)
SQL queries: 16 - Debug Off - GZIP Enabled