demo: demo için tıkla
gerekli dosyalar ektedir.
Kod: Tümünü seç
########################################################
## Mod Title: Easy Events
## Mod Version: 1.0.2
## Author: Richard Fitzgerald
## Email: richardfitzgerald85@hotmail.com
## Site: check www.fitzlabs.com
##
## Events Publishing system with all the info needed for a good night out!
## Door time, flyer, description, location, date...
##
## instalation rated: easy
## instalation time: aprox 2 min
##
## Files to edit: 4
## phpBB2/includes/constants.php
## phpBB2/viewonline.php
## phpBB2/admin/index.php
## phpBB2/templates/xxxx/overall_header.tpl
##
##
################################################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
################################################################################
##
## AUTHOR NOTES: Released under GPL copyright Richard Fitzgerald
##
##
copy events.php to /phpbbroot/events.php
copy events.tpl to /phpbbroot/templates/xxxx/events.tpl
copy admin_easy_events.php to /phpbbroot/admin/admin_easy_events.php
copy admin_easy_events.tpl to /phpbbroot/templates/xxxx/admin/admin_easy_events.tpl
#
#---[RUN: db_update.php]---------------------
#
#
#-----[ OPEN FILE: phpBB2/includes/constants.php ]------------------------------------------
#
#
#-----[FIND]------------------------------------------
#
define('PAGE_GROUPCP', -11);
#
#-----[AFTER, ADD]------------------------------------------
#
define('PAGE_EVENTS', -130);
#
#-----[FIND]------------------------------------------
#
// Table names
#
#-----[AFTER, ADD]------------------------------------------
#
define('EVENTS', $table_prefix.'easy_events');
#
#-----[CLOSE]------------------------
#
#
#-----[ OPEN FILE: phpBB2/viewonline.php ]------------------------------------------
#
#
#-----[FIND]------------------------------------------
#
case PAGE_FAQ:
$location = $lang['Viewing_FAQ'];
$location_url = "faq.$phpEx";
break;
#
#-----[AFTER, ADD]------------------------------------------
#
case PAGE_EVENTS:
$location = 'Viewing Events';
$location_url = "events.$phpEx";
break;
#
#-----[CLOSE]------------------------
#
#
#-----[ OPEN FILE: phpBB2/admin/index.php ]------------------------------------------
#
#
#-----[FIND]------------------------------------------
#
case PAGE_FAQ:
$location = $lang['Viewing_FAQ'];
$location_url = "faq.$phpEx";
break;
#
#-----[AFTER, ADD]------------------------------------------
#
case PAGE_EVENTS:
$location = 'Viewing Events';
$location_url = "events.$phpEx";
break;
#
#-----[FIND]------------------------------------------
#
case PAGE_FAQ:
$location = $lang['Viewing_FAQ'];
$location_url = "faq.$phpEx";
break;
#
#-----[AFTER, ADD]------------------------------------------
#
case PAGE_EVENTS:
$location = 'Viewing Events';
$location_url = "events.$phpEx";
break;
#
#-----[CLOSE]------------------------
#
#
#-----[ OPEN FILE: phpBB2/events.php ]------------------------------------------
#
#
#-----[FIND]------------------------------------------
#
//date functions - Change to local timezone
putenv('TZ=GMT');
# Edit "GMT" as appropriate
#
#-----[CLOSE]------------------------
#
#
#-----[ OPEN FILE: phpBB2/templates/xxxx/overall_header.tpl ]------------------------------------------
# Do for All Templates
#
#-----[FIND]------------------------------------------
#
<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>
#
#-----[AFTER, ADD]------------------------------------------
#
<a href="./events.php" class="mainmenu"><img src="templates/subSilver/images/icon_mini_profile.gif" width="12" height="13" border="0" alt="events" hspace="3" />Events</a>
#
#-----[EOM]------------------------------------------
#