Page 1 of 1

Modded Install Help!

Posted: 13. October 2008 20:23
by emoruffino
Your Portal Version: 1.0.2
Your phpBB Type: other phpBB Distribution
MODs installed: No
Your knowledge: Advanced Knowledge
Boardlink: http://fireforumz.com

PHP Version: 5

What have you done before the problem was there?
came here.... this is the source

What have you already tryed to solve the problem?
really bad coding errors

Description and Message
I run a mutli-forum host and im needing some help.

The install folder works fine, but i have to keep it in the root for other forums to install it. Can i either get the MYSQL for the install so i can enter it in the install.sql.

Or could i get a modded install folder so only a admin can install it and that the portal.php doesnt check for the installation folder?

Re: Modded Install Help!

Posted: 14. October 2008 06:39
by Kevin
You may just disable / remove the check for the install directory, which can be found in portal.php:

Code: Select all

if ( is_dir( $phpbb_root_path . 'install_portal/' ) === TRUE )
{
    if ( is_file( $phpbb_root_path . 'install_portal/install.'.$phpEx ) === TRUE )
    {
        include $phpbb_root_path . 'install_portal/install.'.$phpEx;

        if ( version_compare( $current_version, $portal_config['portal_version'], '<=' ) === TRUE )
        {
            $template->assign_vars(array(
                'S_DISPLAY_GENERAL'    => true,
                'GEN_TITLE'                => $user->lang['PORTAL_ERROR'],
                'GEN_MESSAGE'            => sprintf( $user->lang['PORTAL_DELETE_DIR'], $phpbb_root_path . 'install_portal' )
            ));
        }
        else
        {
            $template->assign_vars(array(
                'S_DISPLAY_GENERAL'    => true,
                'GEN_TITLE'                => $user->lang['PORTAL_UPDATE'],
                'GEN_MESSAGE'            => sprintf( $user->lang['PORTAL_UPDATE_TEXT'], $phpbb_root_path . 'install_portal/install.'.$phpEx, $current_version )
            ));
        }

        $load_center = false;
    }
} 
emoruffino wrote:Or could i get a modded install folder so only a admin can install it
The installer already checks for the user context - just admins are allowed to install the portal.

Re: Modded Install Help!

Posted: 14. October 2008 18:59
by emoruffino
thanks! :)

---

also is there a way that there could be like a php eval that could redirect to portal.php or the index.php from a option in the acp?

Re: Modded Install Help!

Posted: 14. October 2008 20:20
by Kevin
Saint_hh http://www.phpbb.com/community/viewtopic.php?p=7270865#p7270865 wrote:
gavpedz wrote:Although you can turn all boxes off you can not actually turn the portal off as you just get the blank portal page i would love to be able to turn the whole portal on/off so that when it is off visitors/users will be directed to the normal board index and when portal is on visitors/users are directed to the portal page. how could i achieve this?
Will be included in the next version.

If you can't wait:
http://board3deportal.svn.sourceforge.n ... vision=394
The language edits should be like this:
http://board3deportal.svn.sourceforge.n ... athrev=402