Page 1 of 2

[2.0.11] Hide Style Select

Posted: Fri Sep 24, 2004 3:48 pm
by Extensions Robot
MOD Name: Hide Style Select
Author: Falstaff
MOD Description: If you select 'Override user style' in General Configuration this mod hides the 'Board Style' drop-down in the user's profile CP to avoid confusion.


MOD Version: 1.0.2 (Updated 02/22/05)

Download File: Hide_Style_Select_1.0.2.mod
mods overview page: View
File Size: 3019 Bytes

Security Score: 0

Posted: Sun Oct 03, 2004 12:15 pm
by Darkmonkey
MOD Validated/Released

Notes:
This MOD hides the style selection option in the user profile, if the board Administrator has enabled style overides. (To avoid confusion)

Posted: Thu Dec 30, 2004 4:21 pm
by andyb
Nice simple mod.
Works fine with phpbb version 2.0.11

Andy

Posted: Tue Jan 18, 2005 5:08 am
by NarrowPathPilgrim
It Works Great!!!!!!!!

Posted: Tue Feb 22, 2005 9:47 pm
by Darkmonkey
MOD Updated to version 1.0.2
See first post for Download Link

Posted: Wed May 18, 2005 1:05 pm
by borninblood
This was the first MOD I ever attempted, easy to understand and works a charm.

Posted: Wed May 18, 2005 1:32 pm
by Thatbitextra
This is completely logical and should be done as default. Thanks 8)

Posted: Thu Jun 02, 2005 11:29 pm
by bbus3r
just a suggestion:

how about the option to show this for administrators and/or moderators?

Posted: Thu Jun 02, 2005 11:31 pm
by Pballer
question-

Does it ONLY hide it when you override user's style?

Posted: Thu Jun 02, 2005 11:47 pm
by Thatbitextra
bbus3r: Use Permission Switches instead.

Pballer: Yes...

Posted: Fri Jun 03, 2005 12:00 am
by bbus3r
Thatbitextra wrote: bbus3r: Use Permission Switches instead.


thanks for the tip!! first time hearing about that site.

i've only used approved mod. are the mods from that site approved?

TIA

Posted: Fri Jun 03, 2005 12:06 am
by Pballer
wierd....i tried to do it, but i couldnt find this..

Code: Select all

}

	$template->pparse('body');

	include($phpbb_root_path . 'includes/page_tail.'.$phpEx);

	?>
could it be because i am using 2.0.15? It wasnt there. I found two seperate parts, but they were sepereated by something. It looked like this:

Code: Select all

);

	[b]$template->pparse('body');[/b]

}
//
// ---------------------------------------

$error = FALSE;
$page_title = ( $mode == 'editprofile' ) ? $lang['Edit_profile'] : $lang['Register'];

if ( $mode == 'register' && !isset($HTTP_POST_VARS['agreed']) && !isset($HTTP_GET_VARS['agreed']) )
{
	[b]include($phpbb_root_path . 'includes/page_header.'.$phpEx);[/b]
So, i didnt do that part....but it still worked....very confused.


Elaborate.

[/code]

Posted: Fri Jun 03, 2005 1:00 am
by Thatbitextra
bbus3r: no, it is approved, but it still works. I've used it, it's a short piece of code and there's nothing malicious about it.

Pballer: there's only 2 parts to the mod. It probably didn't work, it probably has hidden it always. Post a few lines before what you posted.

Posted: Fri Jun 03, 2005 1:47 am
by bbus3r
Thatbitextra wrote: bbus3r: no, it is approved, but it still works. I've used it, it's a short piece of code and there's nothing malicious about it..


I tried it, and it works. Short and sweet. Thanks!

Posted: Sun Jun 26, 2005 3:52 pm
by HySpeed
I had a similar search failure.

I couldn't find:

Code: Select all

	}

	$template->pparse('body');

	include($phpbb_root_path . 'includes/page_tail.'.$phpEx);

	?>
But I inserted it above the code that performed the 'include'. Specifically, I search for:

Code: Select all

if ( $mode == 'register' && !isset($HTTP_POST_VARS['agreed']) && !isset($HTTP_GET_VARS['agreed']) )
{
	include($phpbb_root_path . 'includes/page_header.'.$phpEx);

	show_coppa();

	include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
}

And inserted it above that.
It works fine, forum version is 2.0.15.
Thanks