is it possible to remove the "or a user group" select menu?
Posted January 6th 2012, 8:58am
Image
φ
Posts: 237
Joined: October 29th 2011, 11:00pm
Location: england, united kingdom, stoke on trent
Likes Given: 20
Likes Received: 4
Re: is it possible to remove the "or a user group" select menu?
Posted January 6th 2012, 12:35pm
PunBB?

Try:

$(function() {

    $('.frm-set.multi').find('dl:eq(1)').remove();
});
φ
Posts: 52
Joined: June 30th 2011, 11:00pm
Likes Given: 6
Likes Received: 3
is it possible to remove the "or a user group" select menu?
Posted January 6th 2012, 12:43pm
It's a lot simpler to disable the SELECT tag than it is to remove the entire containing element. Add this to any current script that is inside a $(function(){}); block:

$('select[name="usergroup"]').attr('disabled','true');

That name also exists on the usergroups page, and the above would disable the tag there as well. But for most people that's a plus, not a minus. ;)

Note that this method will work on all four board types.
φ
Posts: 1599
Joined: March 12th 2009, 11:00pm
Location: Uncertain due to momentum
Likes Given: 26
Likes Received: 357
is it possible to remove the "or a user group" select menu?
Posted January 6th 2012, 12:48pm
I was wondering where you are heh
Nice, learned something new. Image
φ
Posts: 52
Joined: June 30th 2011, 11:00pm
Likes Given: 6
Likes Received: 3
is it possible to remove the "or a user group" select menu?
Posted January 6th 2012, 12:55pm
When I was composing my post, there were no replies. :P

Nera, what you posted would cause problems if someone had friends, because the friends SELECT field would be removed as opposed to the usergroup SELECT field. And I'd be curious what might be removed on other pages with that selector. ;)
φ
Posts: 1599
Joined: March 12th 2009, 11:00pm
Location: Uncertain due to momentum
Likes Given: 26
Likes Received: 357
is it possible to remove the "or a user group" select menu?
Posted January 6th 2012, 1:10pm
Dion said:
And I'd be curious what might be removed on other pages with that selector. ;)


We'll find out soon on the support forum after my fiew tries Image

Noted for the problems with the friends field Image
φ
Posts: 52
Joined: June 30th 2011, 11:00pm
Likes Given: 6
Likes Received: 3
is it possible to remove the "or a user group" select menu?
Posted January 6th 2012, 2:05pm
I'm so dumb, lmao I tried it with the other exmple of change the value of something, didn't work.

Now that I've looked @ your new example, man, I'm mind blown!

Thanks!
φ
Posts: 237
Joined: October 29th 2011, 11:00pm
Location: england, united kingdom, stoke on trent
Likes Given: 20
Likes Received: 4

Who is online

Users browsing this forum: No registered users and 0 guests