## EasyMod 0.0.7 compliant
##############################################################
## MOD Title: Intro + Portal - MOD
## MOD Author: AWSW <>
http://www.awsw.de
##
## MOD Description: Adds an Intro and Portal to your phpBB2, that can be managed over the Administration Panel. All knwon addons of the MOD in before released versions, are included in this new MOD and can be enabled or disabled in the Administration Panel. Funktions for the Birthday MOD, Last Visit MOD, Chat Box MOD and the Global Announcement MOD are also installed, and can be activated in the ACP. You´ll find more notes there.
##
## MOD Version: 1.25
##
## Installation Level: moderate
## Installation Time: 15 Minutes
##
## Generator: phpBB2 Mod Maker 0.1.67
##############################################################
## This MOD is released under the GPL License. Intellectual Property is retained by the MOD Author(s) listed above.
http://www.gnu.org
##############################################################
## For Security Purposes, Please Check:
http://www.awsw.de/ for the latest version of this MOD. Downloading this MOD from other sites could cause malicious code to enter into your phpBB Forum. You´ll find support to this MOD at
http://www.phpbb.de/
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up Your Complete Database And All Files Related To This MOD !
##############################################################
## INSTALLATION OF THE INTRO + PORTAL - MOD:
##############################################################
#
#-----[ COPY TO FOLDER ]------------------------------------------
#
# german: Dateien in vorgesehene Verzeichnisse kopieren
#
copy IntroPortalMOD_root/admin/admin_introportalmod.php to admin/admin_introportalmod.php
copy IntroPortalMOD_root/admin/admin_introportalmodnav.php to admin/admin_introportalmodnav.php
copy IntroPortalMOD_root/language/lang_english/lang_introportal.php to language/lang_english/lang_introportal.php
copy IntroPortalMOD_root/language/lang_german/lang_introportal.php to language/lang_german/lang_introportal.php
copy IntroPortalMOD_root/templates/subSilver/intro_body.tpl to templates/subSilver/intro_body.tpl
copy IntroPortalMOD_root/templates/subSilver/portal_body.tpl to templates/subSilver/portal_body.tpl
copy IntroPortalMOD_root/templates/subSilver/admin/introportalmod_body.tpl to templates/subSilver/admin/introportalmod_body.tpl
copy IntroPortalMOD_root/templates/subSilver/admin/introportalmodnav_body.tpl to templates/subSilver/admin/introportalmodnav_body.tpl
copy IntroPortalMOD_root/.htaccess to .htaccess
copy IntroPortalMOD_root/escalendar.php to escalendar.php
copy IntroPortalMOD_root/intro.php to intro.php
copy IntroPortalMOD_root/intro_portal_mod_db_install.php to intro_portal_mod_db_install.php
copy IntroPortalMOD_root/portal.php to portal.php
copy IntroPortalMOD_root/portal_heise_ticker.php to portal_heise_ticker.php
copy IntroPortalMOD_root/portal_poll.php to portal_poll.php
#
#-----[ SQL ]------------------------------------------
#
# german: SQL Datenbankänderungen ausführen
#
RUN THE FILE intro_portal_mod_db_install.php AND DELETE IT AFTER THAT !!!
FÜHRE DIE DATEI intro_portal_mod_db_install.php AUS UND LÖSCHE SIE DANACH !!!
#
#-----[ OPEN ]------------------------------------------
#
# german: Öffne
#
common.php
#
#-----[ FIND ]------------------------------------------
#
# german: Finde
#
while ( $row = $db->sql_fetchrow($result) )
{
$board_config[$row['config_name']] = $row['config_value'];
}
#
#-----[ AFTER, ADD ]------------------------------------------
#
# german: Danach einfügen
#
// Intro + Portal MOD START
$sql = "SELECT * FROM " . INTROPORTALMOD_TABLE;
if( ($result = $db->sql_query($sql)) )
while ( $row = $db->sql_fetchrow($result) )
{
$introportalmod_config[$row['config_name']] = $row['config_value'];
}
// Intro + Portal MOD END
#
#-----[ OPEN ]------------------------------------------
#
# german: Öffne
#
language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
# german: Finde
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
# german: Davor einfügen
#
// Intro + Portal MOD START
$lang['Viewing_Intro'] = "Viewing the Intro";
$lang['Viewing_Portal'] = "Viewing the Portal";
$lang['IntroPortalMOD1'] = "Intro";
$lang['IntroPortalMOD2'] = "Portal";
$lang['IntroPortalMOD3'] = "Index";
// Intro + Portal MOD END
#
#-----[ OPEN ]------------------------------------------
#
# german: Öffne
#
language/lang_german/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
# german: Finde
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
# german: Danvor einfügen
#
// Intro + Portal MOD START
$lang['Viewing_Intro'] = "Betrachtet das Intro";
$lang['Viewing_Portal'] = "Betrachtet das Portal";
$lang['IntroPortalMOD1'] = "Intro";
$lang['IntroPortalMOD2'] = "Portal";
$lang['IntroPortalMOD3'] = "Index";
// Intro + Portal MOD END
#
#-----[ OPEN ]------------------------------------------
#
# german: Öffne
#
includes/constants.php
#
#-----[ FIND ]------------------------------------------
#
# german: Finde
#
define('PAGE_GROUPCP', -11);
#
#-----[ AFTER, ADD ]------------------------------------------
#
# german: Danach einfügen
#
// Intro + Portal MOD START
define('PAGE_INTRO', -12);
define('PAGE_PORTAL', -13);
// Intro + Portal MOD END
#
#-----[ FIND ]------------------------------------------
#
# german: Finde
#
define('VOTE_USERS_TABLE', $table_prefix.'vote_voters');
#
#-----[ AFTER, ADD ]------------------------------------------
#
# german: Danach einfügen
#
// Intro + Portal MOD START
define('INTROPORTALMOD_TABLE', $table_prefix.'introportalmod');
// Intro + Portal MOD END
#
#-----[ OPEN ]------------------------------------------
#
# german: Öffne
#
includes/page_header.php
#
#-----[ FIND ]------------------------------------------
#
# german: Finde
#
//
// Parse and show the overall header.
//
$template->set_filenames(array(
#
#-----[ BEFORE, ADD ]------------------------------------------
#
# german: Davor einfügen
#
// Intro + Portal MOD START
if( $introportalmod_config['introportalmod_disable'] == "0" )
{
$template->assign_block_vars('switch_introportalmod_disable', array());
}
// Intro + Portal MOD END
#
#-----[ FIND ]------------------------------------------
#
# german: Finde
#
'L_WHOSONLINE_MOD' => sprintf($lang['Mod_online_color'], '<span style="color:#' . $theme['fontcolor2'] . '">', '</span>'),
#
#-----[ AFTER, ADD ]------------------------------------------
#
# german: Danach einfügen
#
// Intro + Portal MOD START
'L_IntroPortalMOD1' => $lang['IntroPortalMOD1'],
'L_IntroPortalMOD2' => $lang['IntroPortalMOD2'],
'L_IntroPortalMOD3' => $lang['IntroPortalMOD3'],
'U_IntroPortalMOD1' => append_sid('intro.'.$phpEx),
'U_IntroPortalMOD2' => append_sid('portal.'.$phpEx),
'U_IntroPortalMOD3' => append_sid('index.'.$phpEx),
// Intro + Portal MOD END
#
#-----[ OPEN ]------------------------------------------
#
# german: Öffne
#
viewonline.php
#
#-----[ FIND ]------------------------------------------
#
# german: Finde
#
case PAGE_FAQ:
$location = $lang['Viewing_FAQ'];
$location_url = "faq.$phpEx";
break;
#
#-----[ AFTER, ADD ]------------------------------------------
#
# german: Danach einfügen
#
// Intro + Portal MOD START
case PAGE_INTRO:
$location = $lang['Viewing_Intro'];
$location_url = "intro.$phpEx";
break;
case PAGE_PORTAL:
$location = $lang['Viewing_Portal'];
$location_url = "portal.$phpEx";
break;
// Intro + Portal MOD END
#
#-----[ OPEN ]------------------------------------------
#
# german: Öffne
#
admin/index.php
#
#-----[ FIND ]------------------------------------------
#
# german: Finde
#
case PAGE_FAQ:
$location = $lang['Viewing_FAQ'];
$location_url = "index.$phpEx?pane=right";
break;
#
#-----[ AFTER, ADD ]------------------------------------------
#
# german: Danach einfügen
#
// Intro + Portal MOD START
case PAGE_INTRO:
$location = $lang['Viewing_Intro'];
$location_url = "intro.$phpEx?pane=right";
break;
case PAGE_PORTAL:
$location = $lang['Viewing_Portal'];
$location_url = "portal.$phpEx?pane=right";
break;
// Intro + Portal MOD END
#
#-----[ FIND ]------------------------------------------
#
# german: Finde
#
case PAGE_FAQ:
$location = $lang['Viewing_FAQ'];
$location_url = "index.$phpEx?pane=right";
break;
#
#-----[ AFTER, ADD ]------------------------------------------
#
# german: Danach einfügen
#
// Intro + Portal MOD START
case PAGE_INTRO:
$location = $lang['Viewing_Intro'];
$location_url = "intro.$phpEx?pane=right";
break;
case PAGE_PORTAL:
$location = $lang['Viewing_Portal'];
$location_url = "portal.$phpEx?pane=right";
break;
// Intro + Portal MOD END
#
#-----[ OPEN ]------------------------------------------
#
# german: Öffne
#
templates/subSilver/overall_header.tpl
#
#-----[ FIND ]------------------------------------------
#
# german: Finde
#
<tr>
<td height="25" align="center" valign="top" nowrap="nowrap"><span class="mainmenu"> <a href="{U_PROFILE}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_profile.gif" width="12" height="13" border="0" alt="{L_PROFILE}" hspace="3" />{L_PROFILE}</a> <a href="{U_PRIVATEMSGS}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_message.gif" width="12" height="13" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="3" />{PRIVATE_MESSAGE_INFO}</a> <a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_login.gif" width="12" height="13" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" />{L_LOGIN_LOGOUT}</a> </span></td>
</tr>
#
#-----[ AFTER, ADD ]------------------------------------------
#
# german: Danach einfügen
#
<!-- Intro + Portal MOD START -->
<!-- BEGIN switch_introportalmod_disable -->
<tr>
<td height="25" align="center" valign="top" nowrap="nowrap"><span class="mainmenu"><b> <a href="{U_IntroPortalMOD1}">{L_IntroPortalMOD1}</a> <a href="{U_IntroPortalMOD2}">{L_IntroPortalMOD2}</a> <a href="{U_IntroPortalMOD3}">{L_IntroPortalMOD3}</a> </b></span></td>
</tr>
<!-- END switch_introportalmod_disable -->
<!-- Intro + Portal MOD END -->
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# german: Speichere/Schließe alle Dateien
#
# The Intro and the Portal should work now !
#
# german: Das Intro und das Portal sollte nun funktionieren !
#
# HTH AWSW
#
http://www.awsw.de
#
# EoM