- Kod: Tümünü seç
##############################################################
## MOD Title: phpBB 2.0.22 to phpBB 2.0.23 Code Changes
## MOD Author: Sevdin Filiz < N/A > (angelside) N/A
## MOD Description:
##
##
## These are the Changes from phpBB 2.0.22 to phpBB 2.0.23 summed up into a little
## Mod. This might be very helpful if you want to update your Board and have
## installed a bunch of Mods. Then it's normally easier to apply the Code Changes
## than to install all Mods again.
##
## When you find a 'AFTER, ADD'-Statement, the Code have to be added after the
## last line quoted in the 'FIND'-Statement.
## When you find a 'BEFORE, ADD'-Statement, the Code have to be added before the
## first line quoted in the 'FIND'-Statement.
## When you find a 'REPLACE WITH'-Statement, the Code quoted in the
## 'FIND'-Statement have to be replaced completely with the quoted Code in the
## 'REPLACE WITH'-Statement.
##
## When you find more than one 'FIND'-Statement it just means that you go down the
## code within the order of the 'FIND'-Statements, if you found the lines for the
## first 'FIND'-Statement, you continue to search the lines for the second
## 'FIND'-Statement. The last 'FIND'-Statement includes the codeblock to work
## with.
##
## For a comprehensive explanation about installing MODs, please visit this url:
## http://www.phpbb.com/kb/article.php?article_id=150
##
## After you have finished this tutorial, you have to upload the
## install/update_to_latest.php file, execute it and then delete it from your
## webspace.
##
##
##
## MOD Version: 1.0.0
##
## Installation Level: Easy
## Installation Time: xx Minutes
## Files To Edit:
## groupcp.php
## admin/admin_forums.php
## admin/admin_users.php
## includes/functions_admin.php
## language/lang_english/lang_admin.php
## language/lang_turkish/lang_admin.php
## templates/subSilver/posting.tpl
## templates/subSilver/admin/styles_edit_body.tpl (yapmadım, hiç çekilmiyor)
##
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##
##
##############################################################
## MOD History:
##
## 2007-02-10 - Version 1.0.0
## - first release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]---------------------------------------------
#
groupcp.php
#
#-----[ FIND ]---------------------------------------------
#
)
)
ORDER BY aa.auth_mod DESC";
break;
#
#-----[ REPLACE WITH ]-------------------------------------
#
)
)
ORDER BY auth_mod DESC";
break;
#
#-----[ OPEN ]---------------------------------------------
#
admin/admin_forums.php
#
#-----[ FIND ]---------------------------------------------
#
$vote_ids = (($vote_ids != '') ? ', ' : '') . $row['vote_id'];
#
#-----[ REPLACE WITH ]-------------------------------------
#
$vote_ids .= (($vote_ids != '') ? ', ' : '') . $row['vote_id'];
#
#-----[ OPEN ]---------------------------------------------
#
admin/admin_users.php
#
#-----[ FIND ]---------------------------------------------
#
$sql = "SELECT group_id
FROM " . GROUPS_TABLE . "
WHERE group_moderator = $user_id";
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not select groups where user was moderator', '', __LINE__, __FILE__, $sql);
}
while ( $row_group = $db->sql_fetchrow($result) )
{
$group_moderator[] = $row_group['group_id'];
}
if ( count($group_moderator) )
{
$update_moderator_id = implode(', ', $group_moderator);
$sql = "UPDATE " . GROUPS_TABLE . "
SET group_moderator = " . $userdata['user_id'] . "
WHERE group_moderator IN ($update_moderator_id)";
if( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not update group moderators', '', __LINE__, __FILE__, $sql);
}
}
#
#-----[ REPLACE WITH ]-------------------------------------
#
$sql = "UPDATE " . GROUPS_TABLE . "
SET group_moderator = " . $userdata['user_id'] . "
WHERE group_moderator = $user_id";
if( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not update group moderators', '', __LINE__, __FILE__, $sql);
}
#
#-----[ OPEN ]---------------------------------------------
#
includes/functions_admin.php
#
#-----[ FIND ]---------------------------------------------
#
global $db, $userdata;
#
#-----[ REPLACE WITH ]-------------------------------------
#
global $db, $userdata, $lang;
#
#-----[ FIND ]---------------------------------------------
#
$forum_list = ( $forum_list == '' ) ? '<option value="-1">-- ! No Forums ! --</option>' : '<select name="' . $box_name . '">' . $forum_list . '</select>';
#
#-----[ REPLACE WITH ]-------------------------------------
#
$forum_list = ( $forum_list == '' ) ? $lang['No_forums'] : '<select name="' . $box_name . '">' . $forum_list . '</select>';
#
#-----[ OPEN ]---------------------------------------------
#
language/lang_english/lang_admin.php
#
#-----[ FIND ]---------------------------------------------
#
$lang['Unban_username'] = 'Un-ban one more specific users';
#
#-----[ REPLACE WITH ]-------------------------------------
#
$lang['Unban_username'] = 'Un-ban one or more specific users';
#
#-----[ FIND ]---------------------------------------------
#
$lang['Delete_disallow_explain'] = 'You can remove a disallowed username by selecting the username from this list and clicking submit';
#
#-----[ REPLACE WITH ]-------------------------------------
#
$lang['Delete_disallow_explain'] = 'You can remove a disallowed username by selecting the username from this list and clicking delete';
#
#-----[ OPEN ]---------------------------------------------
#
language/lang_turkish/lang_admin.php
#
#-----[ FIND ]---------------------------------------------
#
$lang['Unban_username'] = 'Kullanıcı yasağı kaldırma';
#
#-----[ REPLACE WITH ]-------------------------------------
#
$lang['Unban_username'] = 'Bir veya daha fazla kullanıcı banı kaldırma';
#
#-----[ FIND ]---------------------------------------------
#
$lang['Delete_disallow_explain'] = 'Buradan yasaklı bir kullanıcı adını seçip gönder butonuna basarak yasağı kaldırabilirsiniz';
#
#-----[ REPLACE WITH ]-------------------------------------
#
$lang['Delete_disallow_explain'] = 'Buradan yasaklı bir kullanıcı adını seçip sil butonuna basarak yasağı kaldırabilirsiniz';
#
#-----[ OPEN ]---------------------------------------------
#
templates/subSilver/posting.tpl
#
#-----[ FIND ]---------------------------------------------
#
</select> {L_FONT_SIZE}:<select name="addbbcode20" onChange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]');this.selectedIndex=0;" onMouseOver="helpline('f')">
#
#-----[ REPLACE WITH ]-------------------------------------
#
</select> {L_FONT_SIZE}:<select name="addbbcode20" selected onChange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]');this.selectedIndex=0;" onMouseOver="helpline('f')">
#
#-----[ FIND ]---------------------------------------------
#
<option value="12" selected class="genmed">{L_FONT_NORMAL}</option>
#
#-----[ REPLACE WITH ]-------------------------------------
#
<option value="12" class="genmed">{L_FONT_NORMAL}</option>
#
#-----[ SAVE/CLOSE ALL FILES ]-----------------------------
#
# EoM