Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 1
 
 
Reply with quote Download Post 
Post 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);

 



 
Gianni PBSend private messageVisit poster's website  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post 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
 




____________
? Zuker - EDDB - LPM - Sharefields
 
ZukerSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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!
 



 
raphael10Send private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Create Pages NOT In Root 
 
You are right  
 




____________
? Zuker - EDDB - LPM - Sharefields
 
ZukerSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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

 



 
Gianni PBSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Create Pages NOT In Root 
 
I think the linear login mod does it...
how can I solve?
 



 
Gianni PBSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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 
Gianni PBSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Create Pages NOT In Root 
 
You need to add absolute path to images to make them pop-up.
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Post new topic  Reply to topic  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
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


  

 

  cron