phpBB 2.0.22 to phpBB 2.0.23 Code Changes

phpBB geliştirme, performans ve hızını arttırmak.

phpBB 2.0.22 to phpBB 2.0.23 Code Changes

İleti

ALEXIS
10.02.2007, 19:54

Konun hangi bölümde olduğuna dikkat edin, bu bir ön değişikliktir, yapmanız halinde doğacak sorunlardan kendiniz sorumlusunuz.

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> &nbsp;{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> &nbsp;{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
Kullanıcı avatarı
ALEXIS
Site Yöneticisi
Site Yöneticisi
 
İleti: 2563
Kayıt: 30.06.2005, 09:08

İleti EFE03 11.02.2007, 13:04

phpbb 2.0.23 mü çıktı.phpbb nin sitesine baktım öyle birsey göremedim
EFE03
Üye
Üye
 
İleti: 302
Kayıt: 09.06.2006, 07:37

Cvp: phpBB 2.0.22 to phpBB 2.0.23 Code Changes

İleti engino 11.02.2007, 14:45

Çıkmamış zaten mod author da belli ki phpbb ile alakası yok ama, bu başlık çok yanıltıcı. Bir cvs kod deposundan aktarım olsa dahi sürekli update edildiginden burada sürekli yayınlanmaz ise kopukluk olur..
engino
Üye
Üye
 
İleti: 122
Kayıt: 05.01.2006, 12:24

İleti

ALEXIS
11.02.2007, 16:18

Hiçbir yanıltıcılığı yok, yazdığım kodlarda tek hata da yok. Konunun nerede açıldığı da belli.

Ukalaca cevaplar yazacaksınız, sitemde size yer yok. Laf çok, biraz icraat görelim ?
Kullanıcı avatarı
ALEXIS
Site Yöneticisi
Site Yöneticisi
 
İleti: 2563
Kayıt: 30.06.2005, 09:08

İleti sabri ünal 13.02.2007, 15:13

bu başlık çok yanıltıcı.


bu da ne demek, kimi niye nasıl yanıltmış... :P hakkaten bolu ya nakil yaptırmanız gerekebilir???

başlık tamamen doğru, burdaki düzeltmeler kesinlikle yeni sürüm olarak yayınlanacaktır... merak edenler alexis in 2022 için yayınladığı belgeyi inceleyebilirler.

:verymad:
Mutluyum, biraz komedi takılıyorum! sakın kızmayın yakında geçer, sebebini ben de bilmiyorum! yeni bir aşk da bulmuş değilim!
Kullanıcı avatarı
sabri ünal
Üye
Üye
 
İleti: 1325
Kayıt: 27.10.2005, 15:49
Konum: İstanbul


phpBB Geliştirme



Kimler çevrimiçi

Bu forumu görüntüleyenler: Kayıtlı kullanıcı yok ve 0 misafir

cron