Ok ist gut.... 2.0.16
Aber das kam :
Code: Alles auswählen
Error :: Duplicate column name 'session_admin'
SQL :: ALTER TABLE phpbb_sessions ADD COLUMN session_admin tinyint(2) DEFAULT '0' NOT NULL
Aber das liegt daran, weil ich die Tabelle selber eingeben musste und die daher schon da war...
Da muss ich mich sicher nicht fürchten.
Und nein, ich verwende nicht den Attachmentmod..
Den hier :
Code: Alles auswählen
##############################################################
## MOD Title: Blank Template MOD
## MOD Author: Meilad (meiladnz@hotmail.com), Ed (ed.linklater@gmail.com) ~ Also cheers to psychowolfman < admin@saskmetal.com > for the blank page mod which was incorporated.
## MOD Description: Simple way to add an upload page to your phpbb rather than spending 60 minutes on attachment mod.
## MOD Version: 1.0
##
## Installation Level: (Easy)
## Installation Time: 5 Minutes
## Files To Edit: includes/page_header.php
## viewonline.php
## admin/index.php
## language/lang_english/lang_main.php
## includes/constants.php
## templates/subsilver/overall_header.tpl
##
## Included Files: templates/subsilver/up.tpl
## up.php
## /uploads/ (blank folder)
##############################################################
## Author Notes: A nifty little addition which was good for my forum when attachment mod was just too timely to do. Adds a page to your phpbb where users can upload files to a folder in your phpbb directory which they can then link to in posts.
Basically like attachment mod yet taking only a fraction of the time and much much easier to install.
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
To Specify File Size Limit:
Find: else if ( $file_size > 500000) {
$message = "The file size is over 500K.";
Replace the 500000 ( 500kb) with whatever you want to set the size limit as.
Also edit the message below which the user is sent if the file is over the size limit.
#
#-----[ COPY ]------------------------------------------
#
copy up.php to phpbb main directory
copy templates/subSilver/up.tpl to templates/subSilver/up.tpl ( Or whatever the hell your template is)
copy "uploads" to phpbb main directory
#
#-----[ OPEN ]------------------------------------------
#
includes/page_header.php
#
#-----[ FIND ]------------------------------------------
#
'U_GROUP_CP' => append_sid('groupcp.'.$phpEx),
#
#-----[ AFTER, ADD ]------------------------------------------
#
'L_TEMPLATE' => $lang['Template'],
'U_TEMPLATE' => append_sid('template.'.$phpEx),
#
#-----[ OPEN ]------------------------------------------
#
viewonline.php
#
#-----[ FIND ]------------------------------------------
#
case PAGE_FAQ:
$location = $lang['Viewing_FAQ'];
$location_url = "faq.$phpEx";
break;
#
#-----[ AFTER, ADD ]------------------------------------------
#
case PAGE_TEMPLATE:
$location = $lang['Template'];
$location_url = "template.$phpEx";
break;.
#
#-----[ OPEN ]------------------------------------------
#
admin/index.php
#
#-----[ FIND ]------------------------------------------
#
case PAGE_FAQ:
$location = $lang['Viewing_FAQ'];
$location_url = "index.$phpEx?pane=right";
break;
#
#-----[ AFTER, ADD ]------------------------------------------
#
case PAGE_TEMPLATE:
$location = $lang['Template'];
$location_url = "template.$phpEx?pane=right";
break;
#
#-----[ FIND ]------------------------------------------
#
case PAGE_FAQ:
$location = $lang['Viewing_FAQ'];
$location_url = "index.$phpEx?pane=right";
break;
#
#-----[ AFTER, ADD ]------------------------------------------
#
case PAGE_TEMPLATE:
$location = $lang['Template'];
$location_url = "template.$phpEx?pane=right";
break;
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
$lang['Template'] = 'Template';
#
#-----[ OPEN ]------------------------------------------
#
includes/constants.php
#
#-----[ FIND ]------------------------------------------
#
define('PAGE_GROUPCP', -11);
#
#-----[ AFTER, ADD ]------------------------------------------
#
define('PAGE_TEMPLATE', -1045);
#-----[ OPEN ]------------------------------------------
#
templates/subsilver/overall_header.tpl
#
#-----[ FIND ]------------------------------------------
#
<a href="{U_FAQ}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_faq.gif" width="12" height="13" border="0" alt="{L_FAQ}" hspace="3" />{L_FAQ}</a>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
<a href="up.php" class="mainmenu"><img src="templates/subSilver/images/icon_mini_message.gif.gif" width="12" height="13" border="0" alt="File Upload" hspace="3" />File Upload</a>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM