Help i'm stuck at common.php

Discussions and support about the different URL Rewriting techniques for phpBB2.

Moderator: Moderators

Help i'm stuck at common.php

Postby hhardware » Wed Jul 23, 2008 7:09 am

Hi,

i'm stuck at this point

common.php

##
#-----[ FIND ]------------------------------------------
#

if (file_exists('install') || file_exists('contrib'))
{
message_die(GENERAL_MESSAGE, 'Please_remove_install_contrib');
}


I need to find this text above in common.php.
I can find common.php in the root of phpbb, but when i edit it i dont see what i need to look for.
Someone have a idea? i need to say that i have used Mixed mod rewrite voor phpbb2
thanks allot
hhardware
 
Posts: 2
Joined: Tue Jul 22, 2008 11:28 am

Advertisement

Postby dcz » Wed Jul 23, 2008 8:38 am

You must be trying to install the phpBB2 version over phpBB3 then.

The phpbb3 install rather looks like :
Code: Select all
#
#-----[ OPEN ]------------------------------------------
#

common.php

#
#-----[ FIND ]------------------------------------------
#
// Grab global variables, re-cache if necessary
$config = $cache->obtain_config();
#
#-----[ AFTER, ADD ]------------------------------------------
#

// www.phpBB-SEO.com SEO TOOLKIT BEGIN
if (empty($phpbb_seo) ) {
   require_once($phpbb_root_path . 'phpbb_seo/phpbb_seo_class.'.$phpEx);
   $phpbb_seo = new phpbb_seo();
}
// www.phpBB-SEO.com SEO TOOLKIT END


for common.php.

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21219
Joined: Fri Apr 28, 2006 9:03 pm

Postby hhardware » Wed Jul 23, 2008 9:17 am

Hi

thanks for the fast response.

But i'm using phpbb2 version with the phpbb rewrite mod for phpbb2
so i think i have the correct rewrite mod for phpbb2.

But still i cant find the "if (file_exists('install') || file_exists('contrib'))" line in common.php.

I also downloaded the phpbb3 and extract it and look in common.php
both common.php for phpbb2 and phpbb3 doesnt contain the "if (file_exists('install') || file_exists('contrib'))" line !!!

so i'm still lost...
hhardware
 
Posts: 2
Joined: Tue Jul 22, 2008 11:28 am

Postby dcz » Wed Jul 23, 2008 9:20 am

It's because you originally posted in a phpBB3 forum.

So, 2.0.23 files do have this piece of code in common.php. If you cannot find it, it's not very important, just put the code to add before :

Code: Select all
//
// Show 'Board is disabled' message if needed.
//
if( $board_config['board_disable'] && !defined("IN_ADMIN") && !defined("IN_LOGIN") )
{
   message_die(GENERAL_MESSAGE, 'Board_disable', 'Information');
}

Or, if you cannot even find this piece, at the very end, before :

Code: Select all
?>


++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21219
Joined: Fri Apr 28, 2006 9:03 pm


Return to phpBB2 mod Rewrite

Who is online

Users browsing this forum: No registered users and 1 guest