[2.0.11] Hide Style Select

The cleanup is complete. This forum is now read only.

Rating:

Excellent!
11
69%
Very Good
4
25%
Good
1
6%
Fair
0
No votes
Poor
0
No votes
 
Total votes: 16

Extensions Robot
Extensions Robot
Extensions Robot
Posts: 28117
Joined: Sat Aug 16, 2003 7:36 am

[2.0.11] Hide Style Select

Post 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
Last edited by Extensions Robot on Mon Apr 30, 2007 12:30 am, edited 1 time in total.
(this is a non-active account manager for the phpBB Extension Customisations Team)

Darkmonkey
Former Team Member
Posts: 1707
Joined: Fri Oct 24, 2003 3:48 pm
Location: Where the trout streams flow and the air is nice

Post 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)

andyb
Registered User
Posts: 6
Joined: Tue May 27, 2003 12:53 am

Post by andyb »

Nice simple mod.
Works fine with phpbb version 2.0.11

Andy

NarrowPathPilgrim
Registered User
Posts: 67
Joined: Thu Sep 30, 2004 4:52 am
Contact:

Post by NarrowPathPilgrim »

It Works Great!!!!!!!!
"If a nation expects to be ignorant and free, it expects what never was and never will be." -- Thomas Jefferson
www.FightingForLiberty.org

Darkmonkey
Former Team Member
Posts: 1707
Joined: Fri Oct 24, 2003 3:48 pm
Location: Where the trout streams flow and the air is nice

Post by Darkmonkey »

MOD Updated to version 1.0.2
See first post for Download Link

borninblood
Registered User
Posts: 123
Joined: Wed May 18, 2005 11:10 am
Location: Belfast

Post by borninblood »

This was the first MOD I ever attempted, easy to understand and works a charm.

Thatbitextra
Former Team Member
Posts: 7604
Joined: Mon Mar 21, 2005 5:04 am
Location: A place where something is or could be located; a site.
Contact:

Post by Thatbitextra »

This is completely logical and should be done as default. Thanks 8)
Styles KB
My MODs: Choose Who to Accept PMs From (Prevents unwanted PMs!) | Warn of Old Topic Before Posting Reply
Style: subBlack (Now updated to phpBB 2.0.22 and 5 new color schemes!)

bbus3r
Registered User
Posts: 158
Joined: Sat Apr 16, 2005 2:10 pm

Post by bbus3r »

just a suggestion:

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

Pballer
Registered User
Posts: 102
Joined: Sun May 22, 2005 12:31 am

Post by Pballer »

question-

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

Thatbitextra
Former Team Member
Posts: 7604
Joined: Mon Mar 21, 2005 5:04 am
Location: A place where something is or could be located; a site.
Contact:

Post by Thatbitextra »

bbus3r: Use Permission Switches instead.

Pballer: Yes...
Styles KB
My MODs: Choose Who to Accept PMs From (Prevents unwanted PMs!) | Warn of Old Topic Before Posting Reply
Style: subBlack (Now updated to phpBB 2.0.22 and 5 new color schemes!)

bbus3r
Registered User
Posts: 158
Joined: Sat Apr 16, 2005 2:10 pm

Post 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

Pballer
Registered User
Posts: 102
Joined: Sun May 22, 2005 12:31 am

Post 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]

Thatbitextra
Former Team Member
Posts: 7604
Joined: Mon Mar 21, 2005 5:04 am
Location: A place where something is or could be located; a site.
Contact:

Post 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.
Styles KB
My MODs: Choose Who to Accept PMs From (Prevents unwanted PMs!) | Warn of Old Topic Before Posting Reply
Style: subBlack (Now updated to phpBB 2.0.22 and 5 new color schemes!)

bbus3r
Registered User
Posts: 158
Joined: Sat Apr 16, 2005 2:10 pm

Post 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!

HySpeed
Registered User
Posts: 9
Joined: Mon Dec 08, 2003 9:25 pm

Post 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

Post Reply

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