1 Problema con el bbcode quote que no funciona teniendo el html activo en el foro o en los post
Post original http://www.phpbb.com/phpBB/viewtopic.ph ... 70#2088170
Código: Seleccionar todo
OPEN
includes/functions_post.php
FIND
$message = addslashes($message);
AFTER, ADD
$message = str_replace('"', '\"', $message);
Post Original
http://www.phpbb.com/phpBB/viewtopic.ph ... 51#2079351
http://www.phpbb.com/phpBB/viewtopic.ph ... 43#2086243
Código: Seleccionar todo
OPEN
privmsg.php
FIND
if ( !($privmsg = $db->sql_fetchrow($result)) )
{
redirect(append_sid("privmsg.$phpEx?folder=$folder", true));
}
$privmsg_subject = preg_replace($orig_word, $replacement_word, $privmsg_subject);
$privmsg_subject = ( ( !preg_match('/^Re:/', $privmsg['privmsgs_subject']) ) ? 'Re: ' : '' ) . $privmsg['privmsgs_subject'];
REPLACE WITH
if ( !($privmsg = $db->sql_fetchrow($result)) )
{
redirect(append_sid("privmsg.$phpEx?folder=$folder", true));
}
$orig_word = $replacement_word = array();
obtain_word_list($orig_word, $replacement_word);
$privmsg_subject = ( ( !preg_match('/^Re:/', $privmsg['privmsgs_subject']) ) ? 'Re: ' : '' ) . $privmsg['privmsgs_subject'];
$privmsg_subject = preg_replace($orig_word, $replacement_word, $privmsg_subject);
Post Original http://www.phpbb.com/phpBB/viewtopic.ph ... 43#2086243
Código: Seleccionar todo
OPEN
privmsg.php
FIND
obtain_word_list($orig_word, $replace_word);
REPLACE WITH
obtain_word_list($orig_word, $replacement_word);
Post Original http://www.phpbb.com/phpBB/viewtopic.ph ... 83#2085583
Código: Seleccionar todo
OPEN
includes/functions.php
FIND
return substr($val, 16);
REPLACE WITH
return substr($val, 4, 16);
OPEN
usercp_register.php
FIND
$code = strtoupper(str_replace('0', 'o', substr($code, 6)));
REPLACE WITH
$code = strtoupper(str_replace('0', 'o', substr($code, 2, 6)));
OPEN
profile.php
FIND
return ( $hash ) ? md5($rand_str) : substr($rand_str, 8);
REPLACE WITH
return ( $hash ) ? md5($rand_str) : substr($rand_str, 0, 8);
Post Original http://www.phpbb.com/phpBB/viewtopic.ph ... 86#2084286
Código: Seleccionar todo
OPEN
login.php
FIND
// Only store a failed login attempt for an active user - inactive users can't login even with a correct password
elseif( $row['user_active'] )
{
// Save login tries and last login
if ($row['user_id'] != ANONYMOUS)
REPLACE WITH
else
{
// Save login tries and last login, but only store a failed login attempt for an
// active user - inactive users can't login even with a correct password
if ( $row['user_id'] != ANONYMOUS && $row['user_active'] )
Para finalizar aqui teneis el codigo para todos los fixed que se puede usar con el EM
Código: Seleccionar todo
## EasyMod 0.3.0 compliant
########################################################
## MOD Title: phpBB 2.0.20 fixes
## MOD Author: asinshesq (Alan)
## MOD Description: phpBB 2.0.20 fixes, re: http://www.phpbb.com/phpBB/viewtopic.php?t=382680
## MOD Version: 1.0.0
# 1. To fix the problem that messes up the use of named quotes bbcode when html is enabled on your board, do this (source: CVS and this post: http://www.phpbb.com/phpBB/viewtopic.php?p=2088170#2088170 ):
#
#-----[ OPEN ]------------------------------------------
#
includes/functions_post.php
#
#-----[ FIND ]------------------------------------------
#
$message = addslashes($message);
#
#-----[ AFTER, ADD ]------------------------------------------
#
$message = str_replace('"', '\"', $message);
## 2. If you downloaded the code upgrade version of 2.0.19 to 2.0.20 and you downloaded it early (before Graham corrected that file), you need to do this (source, CVS and this post: http://www.phpbb.com/phpBB/viewtopic.php?p=2079351#2079351 , plus changed the erroneous $replace_word to $replacement_word as per CVS and this post: http://www.phpbb.com/phpBB/viewtopic.php?p=2086243#2086243 ):
#
##
##-- ---[ OP EN ]------------------------------------------
##
#privmsg.php
#
##
##-- ---[ FI ND ]------------------------------------------
##
# if ( !($privmsg = $db->sql_fetchrow($result)) )
# {
# redirect(append_sid("privmsg.$phpEx?folder=$folder", true));
# }
#
# $privmsg_subject = preg_replace($orig_word, $replacement_word, $privmsg_subject);
# $privmsg_subject = ( ( !preg_match('/^Re:/', $privmsg['privmsgs_subject']) ) ? 'Re: ' : '' ) . $privmsg['privmsgs_subject'];
#
##
##--- --[ REP LACE WITH ]------------------------------------------
##
# if ( !($privmsg = $db->sql_fetchrow($result)) )
# {
# redirect(append_sid("privmsg.$phpEx?folder=$folder", true));
# }
#
# $orig_word = $replacement_word = array();
# obtain_word_list($orig_word, $replacement_word);
#
# $privmsg_subject = ( ( !preg_match('/^Re:/', $privmsg['privmsgs_subject']) ) ? 'Re: ' : '' ) . $privmsg['privmsgs_subject'];
# $privmsg_subject = preg_replace($orig_word, $replacement_word, $privmsg_subject);
# 3. Even if you used a clean set of phpbb2.0.20 files or the corrected upgrade file, you need to do this to privmsg.php (but note that I already included this change in the change I describe in (2) above so if you do the change in (2) you can skip this one)(source, CVS and this post: http://www.phpbb.com/phpBB/viewtopic.php?p=2086243#2086243 ):
#
#-----[ OPEN ]------------------------------------------
#
privmsg.php
#
#-----[ FIND ]------------------------------------------
#
obtain_word_list($orig_word, $replace_word);
#
#-----[ REPLACE WITH ]------------------------------------------
#
obtain_word_list($orig_word, $replacement_word);
# 4. If you are using phpbb2 with mysql5, you need to make these changes (source, CVS and this post: http://www.phpbb.com/phpBB/viewtopic.php?p=2085583#2085583 ):
#
#-----[ OPEN ]------------------------------------------
#
includes/functions.php
#
#-----[ FIND ]------------------------------------------
#
return substr($val, 16);
#
#-----[ REPLACE WITH ]------------------------------------------
#
return substr($val, 4, 16);
#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_register.php
#
#-----[ FIND ]------------------------------------------
#
$code = strtoupper(str_replace('0', 'o', substr($code, 6)));
#
#-----[ REPLACE WITH ]------------------------------------------
#
$code = strtoupper(str_replace('0', 'o', substr($code, 2, 6)));
#
#-----[ OPEN ]------------------------------------------
#
profile.php
#
#-----[ FIND ]------------------------------------------
#
return ( $hash ) ? md5($rand_str) : substr($rand_str, 8);
#
#-----[ REPLACE WITH ]------------------------------------------
#
return ( $hash ) ? md5($rand_str) : substr($rand_str, 0, 8);
# 5. If you have a forum where the admin activates users and an inactive user tries to log in, 2.0.20 will take him to a white screen. Here's the fix for that (source, my post here: http://www.phpbb.com/phpBB/viewtopic.php?p=2084286#2084286 , though I haven't seen any official confirmation of that fix):
#
#-----[ OPEN ]------------------------------------------
#
login.php
#
#-----[ FIND ]------------------------------------------
#
// Only store a failed login attempt for an active user - inactive users can't login even with a correct password
elseif( $row['user_active'] )
{
// Save login tries and last login
if ($row['user_id'] != ANONYMOUS)
#
#-----[ REPLACE WITH ]------------------------------------------
#
else
{
// Save login tries and last login, but only store a failed login attempt for an
// active user - inactive users can't login even with a correct password
if ( $row['user_id'] != ANONYMOUS && $row['user_active'] )
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
PD el equipo de phpbb promete en breve habra una nueva release del 2.0.20 con todos los fixed incluidos
Un saludo