MyBB Community Forums

Full Version: Transfer all to select2?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
If anyone can give me an example for replacing one of default select boxes with select2 box,
so i can replace them all, thanks.
Someone?
In global.css

select {
	background: #ffffff;
	padding: 3px;
	border: 1px solid #ccc;
	outline: 0;
	font-family: Tahoma, Verdana, Arial, Sans-Serif;
	font-size: 13px;
}

In css3.css

button,
input.button,
input.textbox,
input.invalid_field,
input.valid_field,
select,
textarea,
.editor_control_bar,
blockquote,
.codeblock,
fieldset,
.pm_alert,
.red_alert,
.popup_menu,
.postbit_buttons > a,
a.button {
	-moz-border-radius: 6px;
	-webkit-border-radius: 6px;
	border-radius: 6px;
}
Just to add to response from Ashley1, you can also use MyBB Search/Replace tool to replace all instances of select to select2 incase you want to add new css for select2 and don't want to remove select css for future use.
I already have select2 in some cases, for example just like here https://community.mybb.com/search.php
But can you give me for some example how to make this box below "Sorting Options" to work with select2?
Why do you wanna replace select with select2? Any huge advantages?
Becouse of firefox. I don't like how it display select boxes.
I know that can be fixed somehow, buy also, I like select2 more then select style.