[Tool] phpBB 2.0.20 to phpBB 2.0.21 Changes

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in here. No new MODs will be accepted into the MOD Database for phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.

Rating:

Excellent!
9
53%
Very Good
2
12%
Good
5
29%
Fair
0
No votes
Poor
1
6%
 
Total votes: 17

John West
Registered User
Posts: 6
Joined: Mon Feb 13, 2006 3:18 pm

Post by John West »

Installed with EasyMOD, Working Fine :lol:

Thanks,

:D
bonez07
Registered User
Posts: 178
Joined: Fri Oct 28, 2005 12:53 am

Post by bonez07 »

yessss!!!!1! :)
valli
Registered User
Posts: 40
Joined: Wed Nov 27, 2002 2:47 am

Post by valli »

xDazedx wrote: Has anyone had the quote issue happen after their upgrade?

1. in a thread hit quote
2. reply to post
3. click submit

Quotes no longer appear. The code looks like the below.

Code: Select all

[quote=\"user\"] text text text .[/quote] 
fixed:
for some reason using easymod I had the below. I removed the last one and all is well!

Code: Select all

		$message = addslashes($message);
		$message = str_replace('"', '\"', $message);
		$message = str_replace('"', '\\"', $message);


I got the exact same error and I don't have the 3rd line at all. So can anyone tell me as to where it is pulling the extra \ from?

Thanks
st.luke
Registered User
Posts: 110
Joined: Tue Jan 25, 2005 3:07 am
Contact:

Post by st.luke »

thank G.O.D for easymod 8)
st.luke
Registered User
Posts: 110
Joined: Tue Jan 25, 2005 3:07 am
Contact:

Post by st.luke »

valli wrote:
xDazedx wrote:Has anyone had the quote issue happen after their upgrade?

1. in a thread hit quote
2. reply to post
3. click submit

Quotes no longer appear. The code looks like the below.

Code: Select all

[quote=\"user\"] text text text .[/quote] 
fixed:
for some reason using easymod I had the below. I removed the last one and all is well!

Code: Select all

		$message = addslashes($message);
		$message = str_replace('"', '\"', $message);
		$message = str_replace('"', '\\"', $message);


I got the exact same error and I don't have the 3rd line at all. So can anyone tell me as to where it is pulling the extra \ from?

Thanks




hmmmmmm... yes i have this problem too.. :?
st.luke
Registered User
Posts: 110
Joined: Tue Jan 25, 2005 3:07 am
Contact:

Post by st.luke »

ive just noticed something else aswell, when i edit a post that has " in it i get:
special \"TOP 100\"




does anyone have a fix for this??

Cheers.
st.luke
Registered User
Posts: 110
Joined: Tue Jan 25, 2005 3:07 am
Contact:

Post by st.luke »

valli wrote:
xDazedx wrote:Has anyone had the quote issue happen after their upgrade?

1. in a thread hit quote
2. reply to post
3. click submit

Quotes no longer appear. The code looks like the below.

Code: Select all

[quote=\"user\"] text text text .[/quote] 
fixed:
for some reason using easymod I had the below. I removed the last one and all is well!

Code: Select all

		$message = addslashes($message);
		$message = str_replace('"', '\"', $message);
		$message = str_replace('"', '\\"', $message);


I got the exact same error and I don't have the 3rd line at all. So can anyone tell me as to where it is pulling the extra \ from?

Thanks




ok this fixed my problem by removing the 3rd line.. for anyone else like myself who is no expert, you will find this in includes/functions_post.php
slabby
Registered User
Posts: 10
Joined: Thu Apr 20, 2006 11:58 am
Location: UK

Post by slabby »

*EDIT* Sorry, was a simple mistake
User avatar
tranz_fusion
Registered User
Posts: 76
Joined: Wed Mar 30, 2005 5:06 am

Post by tranz_fusion »

CyanBlue wrote: Thanks for the great MOD... ;)

Just out of curiosity... ;)
I had problem with the login.php with EM, so I had to do this portion manually... The downloaded file says this...

Code: Select all

# 
#-----[ OPEN ]--------------------------------------------- 
# 
login.php

#
#-----[ FIND ]---------------------------------------------
# Line 116
					
					$redirect = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : '';
					$redirect = str_replace('?', '&', $redirect);

					if (strstr(urldecode($redirect), "\n") || strstr(urldecode($redirect), "\r"))
					{
						message_die(GENERAL_ERROR, 'Tried to redirect to potentially insecure url.');
					}

					$template->assign_vars(array(
						'META' => "<meta http-equiv=\"refresh\" content=\"3;url=login.$phpEx?redirect=$redirect\">")
					);

					$message = $lang['Error_login'] . '<br /><br />' . sprintf($lang['Click_return_login'], "<a href=\"login.$phpEx?redirect=$redirect\">", '</a>') . '<br /><br />' .  sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a>');

					message_die(GENERAL_MESSAGE, $message);
				}

#
#-----[ REPLACE WITH ]---------------------------------------------
#
				}

				$redirect = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : '';
				$redirect = str_replace('?', '&', $redirect);

				if (strstr(urldecode($redirect), "\n") || strstr(urldecode($redirect), "\r"))
				{
					message_die(GENERAL_ERROR, 'Tried to redirect to potentially insecure url.');
				}

				$template->assign_vars(array(
					'META' => "<meta http-equiv=\"refresh\" content=\"3;url=login.$phpEx?redirect=$redirect\">")
				);

				$message = $lang['Error_login'] . '<br /><br />' . sprintf($lang['Click_return_login'], "<a href=\"login.$phpEx?redirect=$redirect\">", '</a>') . '<br /><br />' .  sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a>');

				message_die(GENERAL_MESSAGE, $message);
That did not work when I manually edited the login.php file...
What I needed to do was to comment out the very first line in the REPLACE WITH section to match the number of { and } in that code...
Maybe it was just me cuz I have lots of MODs applied to the forum, but I thought that I'd mention it anyways... ;)


I had this same issue with Easymod. It takes one "}" away from the bottom and adds a "}" to the bottom of that code. Is this right?
alez
Registered User
Posts: 237
Joined: Tue Feb 22, 2005 11:21 pm

Post by alez »

sorry, this is like the "patch file"? if i install it my mods are still runing or i have to install them again? thanxs
sgrayban
Registered User
Posts: 55
Joined: Wed Mar 22, 2006 6:22 am
Location: Washington State
Name: Scott
Contact:

Post by sgrayban »

I lost [quote] bb code all the way upgrading :(

How do I get it back?

Edit:

Actually what I lost in the upgrade was

Code: Select all

[quote=sgrayban]testing[/quote]
The [quote] works fine. Dunno what happned or how to fix it. :x
Cheers,
Scott

"War is the sum of all evils"
Major Thomas "Stonewall" Jackson, US Army 1861
asinshesq
Registered User
Posts: 6266
Joined: Sun Feb 22, 2004 9:34 pm
Location: NYC
Name: Alan

Post by asinshesq »

sgrayban wrote: I lost
bb code all the way upgrading :(

How do I get it back?

Edit:

Actually what I lost in the upgrade was

Code: Select all

[quote=sgrayban]testing[/quote]
The
works fine. Dunno what happned or how to fix it. :x


Are you running with html enabled? If so, smart money says the last few lines of this part of your includes/functions_post.php file are messed up:

Code: Select all

	if ($html_on)
	{
		// If HTML is on, we try to make it safe
		// This approach is quite agressive and anything that does not look like a valid tag
		// is going to get converted to HTML entities
		$message = stripslashes($message);
		$html_match = '#<[^\w<]*(\w+)((?:"[^"]*"|\'[^\']*\'|[^<>\'"])+)?>#';
		$matches = array();

		$message_split = preg_split($html_match, $message);
		preg_match_all($html_match, $message, $matches);

		$message = '';

		foreach ($message_split as $part)
		{
			$tag = array(array_shift($matches[0]), array_shift($matches[1]), array_shift($matches[2]));
			$message .= preg_replace($html_entities_match, $html_entities_replace, $part) . clean_html($tag);
		}

		$message = addslashes($message);
		$message = str_replace('"', '\"', $message);
	}
Perhaps you have an extra $message =.... in there at the end?
Last edited by asinshesq on Mon Jun 19, 2006 6:46 pm, edited 1 time in total.
asinshesq
Registered User
Posts: 6266
Joined: Sun Feb 22, 2004 9:34 pm
Location: NYC
Name: Alan

Post by asinshesq »

alez wrote: sorry, this is like the "patch file"? if i install it my mods are still runing or i have to install them again? thanxs


The point of this file is so that you do not have to reinstall your mods...the file tells you the specific changes made in the upgrade so you can make just those changes and leave your mods in there.
sgrayban
Registered User
Posts: 55
Joined: Wed Mar 22, 2006 6:22 am
Location: Washington State
Name: Scott
Contact:

Post by sgrayban »

asinshesq, this is what I have and it looks right... You see anything wrong with it? Because I sure don't.

Code: Select all

<?php
/***************************************************************************
 *                            functions_post.php
 *                            -------------------
 *   begin                : Saturday, Feb 13, 2001
 *   copyright            : (C) 2001 The phpBB Group
 *   email                : support@phpbb.com
 *
 *   $Id: functions_post.php,v 1.9.2.40 2005/12/22 11:34:02 acydburn Exp $
 *
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 ***************************************************************************/

if (!defined('IN_PHPBB'))
{
	die('Hacking attempt');
}

$html_entities_match = array('#&(?!(\#[0-9]+;))#', '#<#', '#>#', '#"#');
$html_entities_replace = array('&', '<', '>', '"');

$unhtml_specialchars_match = array('#>#', '#<#', '#"#', '#&#');
$unhtml_specialchars_replace = array('>', '<', '"', '&');

//
// This function will prepare a posted message for
// entry into the database.
//
function prepare_message($message, $html_on, $bbcode_on, $smile_on, $bbcode_uid = 0)
{
global $board_config, $html_entities_match, $html_entities_replace, $userdata;


	//
	// Clean up the message
	//
$message = trim($message);

        if ($html_on && ($userdata['user_level'] != 1))

	{
		// If HTML is on, we try to make it safe
		// This approach is quite agressive and anything that does not look like a valid tag
		// is going to get converted to HTML entities
		$message = stripslashes($message);
		$html_match = '#<[^\w<]*(\w+)((?:"[^"]*"|\'[^\']*\'|[^<>\'"])+)?>#';
		$matches = array();

		$message_split = preg_split($html_match, $message);
		preg_match_all($html_match, $message, $matches);

		$message = '';

		foreach ($message_split as $part)
		{
			$tag = array(array_shift($matches[0]), array_shift($matches[1]), array_shift($matches[2]));
			$message .= preg_replace($html_entities_match, $html_entities_replace, $part) . clean_html($tag);
		}

		$message = addslashes($message);
		$message = str_replace('"', '\"', $message);
	}

/*RWinner's HTML Free begin*/
        elseif($userdata['user_level'] == 1){

                $message = trim($message);
             
        }
/*RWinner's HTML Free end*/

	else
	{
		$message = preg_replace($html_entities_match, $html_entities_replace, $message);
	}

	if($bbcode_on && $bbcode_uid != '')
	{
		$message = bbencode_first_pass($message, $bbcode_uid);
	}

	return $message;
}
Cheers,
Scott

"War is the sum of all evils"
Major Thomas "Stonewall" Jackson, US Army 1861
sgrayban
Registered User
Posts: 55
Joined: Wed Mar 22, 2006 6:22 am
Location: Washington State
Name: Scott
Contact:

Post by sgrayban »

I figured it out...... The mod RWinner's HTML is not compatiable with versions .20 or higher.

http://www.phpbb.com/phpBB/viewtopic.php?t=359663

I have posted to that topic stating this.
Cheers,
Scott

"War is the sum of all evils"
Major Thomas "Stonewall" Jackson, US Army 1861
Post Reply

Return to “[2.0.x] MOD Database Releases”