[Tool] phpBB 2.0.11 to phpBB 2.0.12 Code 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!
77
71%
Very Good
13
12%
Good
7
6%
Fair
4
4%
Poor
8
7%
 
Total votes: 109

dotslasher
Registered User
Posts: 17
Joined: Sat Mar 13, 2004 12:17 pm
Contact:

Post by dotslasher » Tue Feb 22, 2005 9:43 pm

i disabled the board to update to .12 (mod version) but after upgrading i cannot enter my admin cpanel anymore. I get rejected with the following msg: You are not authorised to administer this board.

transitbus
Registered User
Posts: 410
Joined: Sat Sep 06, 2003 5:05 am

Post by transitbus » Tue Feb 22, 2005 9:45 pm

Edit:

After taking the time to do it right, everything works great. Since I use the extreme styles mod I ignored the change to the template.php file.

Thanks again for this mod :D
Last edited by transitbus on Wed Feb 23, 2005 9:31 pm, edited 2 times in total.
Thanks for proving my point...

Running -> Windows 2003 Standard sp1 :: MS-Sql Server 2000 sp4 :: IIS 6 :: php 4.4.0 isapi mode :: phpbb 2.0.16 <-

Manipe
Former Team Member
Posts: 1146
Joined: Thu Jul 22, 2004 6:30 pm
Location: Éire
Contact:

Post by Manipe » Tue Feb 22, 2005 9:47 pm

Thanks a lot. Worked great without any errors.

Can I ask why the version number has been taken away from the bottom of the page (overall_footer.tpl, simple_footer.tpl)?
A security issue maybe?
My MODs: [ Topics a user has started ] , [ Profile views ] , [ Colour on poll results ] , [ Topic posters ] , [ Add number to PM ] , [ Default avatar ] , [ View category name ] , [ Null vote ] , [ Forum description in viewforum ] , [ Resync forum ids ] , [ View PM while replying ] , [ Quick poll insert ] , [ Limit login attempts ] , [ Track PMs ]

www.ManipeF1.com

User avatar
Jim_UK
Former Team Member
Posts: 18478
Joined: Tue Oct 12, 2004 5:36 pm
Location: Darwen N.West UK

Post by Jim_UK » Tue Feb 22, 2005 9:50 pm

Further to my request for help re profile page. Despite there being no changes to profile.php with these edits as can be seen below the option to Upload avatars from url and also Upload from your machine have gone.
Top image is prior to mod and image below is after the mod

If in fact those options have been removed as a security issue fair enough but if not and anyone can point me to the file/s I might check I would be gratefulll.

Thanks
Jim


Image

Manipe
Former Team Member
Posts: 1146
Joined: Thu Jul 22, 2004 6:30 pm
Location: Éire
Contact:

Post by Manipe » Tue Feb 22, 2005 9:50 pm

dotslasher wrote: i disabled the board to update to .12 (mod version) but after upgrading i cannot enter my admin cpanel anymore. I get rejected with the following msg: You are not authorised to administer this board.


It looks like you logged out, just after you disabled the board.
All you have to do is re-enable it through the SQL tables.
In phpbb_config, set "board_disable" to "0" (It should be one of the first rows).
My MODs: [ Topics a user has started ] , [ Profile views ] , [ Colour on poll results ] , [ Topic posters ] , [ Add number to PM ] , [ Default avatar ] , [ View category name ] , [ Null vote ] , [ Forum description in viewforum ] , [ Resync forum ids ] , [ View PM while replying ] , [ Quick poll insert ] , [ Limit login attempts ] , [ Track PMs ]

www.ManipeF1.com

Manipe
Former Team Member
Posts: 1146
Joined: Thu Jul 22, 2004 6:30 pm
Location: Éire
Contact:

Post by Manipe » Tue Feb 22, 2005 9:54 pm

Jim_UK wrote: Further to my request for help re profile page. Despite there being no changes to profile.php with these edits as can be seen below the option to Upload avatars from url and also Upload from your machine have gone.
Top image is prior to mod and image below is after the mod

If in fact those options have been removed as a security issue fair enough but if not and anyone can point me to the file/s I might check I would be gratefulll.

Thanks
Jim


...


Well, they should be still there.
Try looking towards the end of "templates/subSilver/profile_add_body.tpl".
You might have done something that triggers the switches.
My MODs: [ Topics a user has started ] , [ Profile views ] , [ Colour on poll results ] , [ Topic posters ] , [ Add number to PM ] , [ Default avatar ] , [ View category name ] , [ Null vote ] , [ Forum description in viewforum ] , [ Resync forum ids ] , [ View PM while replying ] , [ Quick poll insert ] , [ Limit login attempts ] , [ Track PMs ]

www.ManipeF1.com

Manipe
Former Team Member
Posts: 1146
Joined: Thu Jul 22, 2004 6:30 pm
Location: Éire
Contact:

Post by Manipe » Tue Feb 22, 2005 9:56 pm

DJ04SlimShadyNo1 wrote: i cant seem to find this in includes/functions.php

Code: Select all

	return $username;
}
here is my lines 80-100

Code: Select all

function get_userdata($user, $force_str = false)
{
	global $db;

	if (intval($user) == 0 || $force_str)
	{
		$user = trim(htmlspecialchars($user));
		$user = substr(str_replace("\\'", "'", $user), 0, 25);
		$user = str_replace("'", "\\'", $user);
	}
	else
	{
		$user = intval($user);
	}

	$sql = "SELECT *
		FROM " . USERS_TABLE . " 
		WHERE ";
	$sql .= ( ( is_integer($user) ) ? "user_id = $user" : "username = '" .  $user . "'" ) . " AND user_id <> " . ANONYMOUS;
	if ( !($result = $db->sql_query($sql)) )
	{
i have installed lots of mods, im not sure which one has changed this line

any help plz

thanks


Just add the code BEFORE the "function get_userdata($user, $force_str = false)" line
My MODs: [ Topics a user has started ] , [ Profile views ] , [ Colour on poll results ] , [ Topic posters ] , [ Add number to PM ] , [ Default avatar ] , [ View category name ] , [ Null vote ] , [ Forum description in viewforum ] , [ Resync forum ids ] , [ View PM while replying ] , [ Quick poll insert ] , [ Limit login attempts ] , [ Track PMs ]

www.ManipeF1.com

Manipe
Former Team Member
Posts: 1146
Joined: Thu Jul 22, 2004 6:30 pm
Location: Éire
Contact:

Post by Manipe » Tue Feb 22, 2005 10:00 pm

DragonMaster1 wrote: All appears to be working fine but I keep getting this unable to connect error:

Version Information

Unable to open connection to phpBB Server, reported error is:
Connection refused

For the latest information on updates to phpBB, why not subscribe to our mailing list.

Powered by phpBB 2.0.12 © 2001 phpBB Group


Can anyone tell me how to CONNECT?


It might be your server that is rejecting you. You could just comment out the code in the tpl file, but they you wouldn't know when a newer version is available.
My MODs: [ Topics a user has started ] , [ Profile views ] , [ Colour on poll results ] , [ Topic posters ] , [ Add number to PM ] , [ Default avatar ] , [ View category name ] , [ Null vote ] , [ Forum description in viewforum ] , [ Resync forum ids ] , [ View PM while replying ] , [ Quick poll insert ] , [ Limit login attempts ] , [ Track PMs ]

www.ManipeF1.com

DJ04SlimShadyNo1
Registered User
Posts: 34
Joined: Thu Oct 21, 2004 9:23 pm
Location: Glasgow Scotland United Kingdom
Contact:

Post by DJ04SlimShadyNo1 » Tue Feb 22, 2005 10:06 pm

Manipe wrote:
DJ04SlimShadyNo1 wrote:i cant seem to find this in includes/functions.php

Code: Select all

	return $username;
}
here is my lines 80-100

Code: Select all

function get_userdata($user, $force_str = false)
{
	global $db;

	if (intval($user) == 0 || $force_str)
	{
		$user = trim(htmlspecialchars($user));
		$user = substr(str_replace("\\'", "'", $user), 0, 25);
		$user = str_replace("'", "\\'", $user);
	}
	else
	{
		$user = intval($user);
	}

	$sql = "SELECT *
		FROM " . USERS_TABLE . " 
		WHERE ";
	$sql .= ( ( is_integer($user) ) ? "user_id = $user" : "username = '" .  $user . "'" ) . " AND user_id <> " . ANONYMOUS;
	if ( !($result = $db->sql_query($sql)) )
	{
i have installed lots of mods, im not sure which one has changed this line

any help plz

thanks


Just add the code BEFORE the "function get_userdata($user, $force_str = false)" line


Thanks

dotslasher
Registered User
Posts: 17
Joined: Sat Mar 13, 2004 12:17 pm
Contact:

Post by dotslasher » Tue Feb 22, 2005 10:10 pm

Manipe wrote:
dotslasher wrote:i disabled the board to update to .12 (mod version) but after upgrading i cannot enter my admin cpanel anymore. I get rejected with the following msg: You are not authorised to administer this board.


It looks like you logged out, just after you disabled the board.
All you have to do is re-enable it through the SQL tables.
In phpbb_config, set "board_disable" to "0" (It should be one of the first rows).


i already did that, and the board is active, but i cant login to my admincp. thats the problem. And yes i am logged in and showing as Admin in the "who's online" thingy.

btw i'm using Php-Nuke Platinum if this gotten anything to do with it.

lokjah
Registered User
Posts: 2
Joined: Mon Mar 22, 2004 5:08 pm

new messages notification doesnt work anymore

Post by lokjah » Tue Feb 22, 2005 10:15 pm

after updating from .11 to .12

I dont get any pop up for new messages and the nav doesnt update to say new messages...

being doing some searching around here and cant find any info on what to do when this prob occurs.. any suggestions, my knee jerk reaction is to go back to .11

thanks
Last edited by lokjah on Tue Feb 22, 2005 10:35 pm, edited 1 time in total.

User avatar
Jim_UK
Former Team Member
Posts: 18478
Joined: Tue Oct 12, 2004 5:36 pm
Location: Darwen N.West UK

Post by Jim_UK » Tue Feb 22, 2005 10:32 pm

Manipe

Many thanks you were quite correct. I was testing out on localhost before committing to real board and I must have modded that file wrongly. All edited files now uploaded and everything working fine.

Jim

User avatar
salty78
Registered User
Posts: 63
Joined: Sat Feb 21, 2004 10:14 am

Post by salty78 » Tue Feb 22, 2005 10:53 pm

dotslasher wrote: btw i'm using Php-Nuke Platinum if this gotten anything to do with it.



You should check with the guys at the nuke site to see if they can help you.

With that being said, you could probably just clear your browser cookies and try to login again.
meh

Tom_S
Registered User
Posts: 524
Joined: Tue Jul 29, 2003 6:54 pm
Location: 127.0.0.1
Contact:

Version Information

Post by Tom_S » Tue Feb 22, 2005 11:13 pm

Did anyone figure out what is causing this error in the ACP and the fix for it?

Code: Select all

Unable to open connection to phpBB Server, reported error is:
Connection refused
It isn't my server before someone asks or says it.

I have three websites with phpbb installed and upgraded now to 2.0.12 and the same error on all three. Everything else is perfect. If no one has a fix I will just edit out this code and do manual update checks and wait for mailing list notices.

thanx in advance
I went back in Time...
Image

User avatar
salty78
Registered User
Posts: 63
Joined: Sat Feb 21, 2004 10:14 am

Post by salty78 » Tue Feb 22, 2005 11:15 pm

Did you overwrite your config.php file by accident?
meh

Post Reply

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