|
Post by tunescool on Mar 26, 2012 0:35:03 GMT -8
did you see this
|
|
|
Post by Wormopolis on Mar 27, 2012 17:23:27 GMT -8
var ubbc_str = sel_start + web_ubbc + sel_end + sel_start + text_ubbc + sel_end + sel_start + format_ubbc + sel_end + (pb_username.match(new RegExp('^('+staffNames+')$','')) ? sel_start + staff_custom_ubbc + sel_end : '') + sel_start + custom_ubbc + sel_end + sel_start + font_ubbc + sel_end + sel_start + size_ubbc + sel_end;
|
|
|
Post by tunescool on Mar 27, 2012 19:11:55 GMT -8
that doesnt have the second admin dropdown
var ubbc_str = sel_start + web_ubbc + sel_end + sel_start + text_ubbc + sel_end + sel_start + format_ubbc + sel_end + (pb_username.match(new RegExp('^('+admin+')$','')) ? sel_start + admin_ubbc + sel_end + sel_start + admin2_ubbc + sel_end : '') + sel_start + custom_ubbc + sel_end + sel_start + font_ubbc + sel_end + sel_start + size_ubbc + sel_end + sel_start + tables_ubbc + sel_end;
|
|
|
Post by Wormopolis on Mar 27, 2012 19:13:41 GMT -8
ok well just remove the stuff at the end that makes the tables drop down
|
|
|
Post by tunescool on Mar 28, 2012 10:56:04 GMT -8
everything works, thanks
|
|
|
Post by tunescool on Mar 30, 2012 23:44:24 GMT -8
i moved the admin drop downs to be the first ones because i dont even use the first 3 that were there except bold and its easier cause theyre rite there then. everything works for me, administration. the admin drop downs dont show for members and guests but the ones i moved; Web, Text, and Format, dont show up. but the rest do; Custom, Font, Size, Color, and Tables. i cant see anything wrong in the part that arranges them, can you figure it please
<script type="text/javascript"> <!-- /* UBBC Drop Down Menus - Ross */
var admin="admin|staff1|staff2|staff3";
if(document.postForm) { function do_ubbc(obj) { eval(obj.options[obj.selectedIndex].value) obj.selectedIndex = 0; } var admin_ubbc = '<option>Admin</option>'; admin_ubbc += '<option value=\'document.postForm.message.value +="\\n"; document.postForm.message.focus(); \'>Return</option>'; admin_ubbc += '<option value=\'add("[hr]")\'>HR Line</option>'; admin_ubbc += '<option value=\'add("[b]", "[/b]")\'>Bold</option>'; admin_ubbc += '<option value=\'add("[b][i]", "[/i][/b]")\'>Bold Italic</option>'; admin_ubbc += '<option value=\'add("[tt]", "[/tt]")\'>Teletype</option>'; admin_ubbc += '<option value=\'add("[ul]\\n[li]\\n[/li][li]\\n[/li][li]\\n", "[/li][/ul]")\'>List</option>'; admin_ubbc += '<option value=\'add("[color=00138E]Event[/color] - ", "")\'>Event</option>'; admin_ubbc += '<option value=\'add("[color=00138E]Venue[/color] - ")\'>Venue</option>'; admin_ubbc += '<option value=\'add("[color=00138E]City[/color] - ", "")\'>City</option>'; admin_ubbc += '<option value=\'add("[color=00138E]Date[/color] - ", "")\'>Date</option>'; admin_ubbc += '<option value=\'add("[ul]\\n[li]\\n[/li][li]\\n[/li][li][hr][color=00138E]Event[/color] - \\n[hr][color=00138E]Appearances[/color] - \\n[hr][color=00138E]City[/color] - \\n[hr][color=00138E]Date[/color] - \\n", "[/li][/ul]")\'>Appearances List</option>'; admin_ubbc += '<option value=\'add("[ul]\\n[li]\\n[/li][li]\\n[/li][li][hr][color=00138E]Event[/color] - \\n[hr][color=00138E]Appearances[/color] - \\n[hr][color=00138E]City[/color] - \\n[hr][color=00138E]Date[/color] - \\n[ul]\\n[li]\\n[/li][li]\\n[/li][li][hr][color=00138E]Event[/color] - \\n[hr][color=00138E]Appearances[/color] - \\n[hr][color=00138E]City[/color] - \\n[hr][color=00138E]Date[/color] - \\n[ul]\\n[li]\\n[/li][li]\\n[/li][li][hr][color=00138E]Event[/color] - \\n[hr][color=00138E]Appearances[/color] - \\n[hr][color=00138E]City[/color] - \\n[hr][color=00138E]Date[/color] - \\n", "[/li][/ul]")\'>Appearances List 3</option>'; admin_ubbc += '<option value=\'add("[ul]\\n[li]\\n[/li][li]\\n[/li][li][hr][color=00138E]Photoshoot For[/color] - \\n[hr][color=00138E]Photographer[/color] - \\n[hr][color=00138E]Date[/color] - \\n", "[/li][/ul]")\'>Photoshoots List</option>'; admin_ubbc += '<option value=\'add("[ul]\\n[li]\\n[/li][li]\\n[/li][li][hr][color=00138E]Magazine[/color] - \\n[hr][color=00138E]Photographer[/color] - \\n[hr][color=00138E]Date[/color] - \\n", "[/li][/ul]")\'>Magazines List</option>'; admin_ubbc += '<option value=\'add("[ul]\\n[li]\\n[/li][li]\\n[/li][li][hr][color=00138E]Event[/color] - \\n[hr][color=00138E]Venue[/color] - \\n[hr][color=00138E]City[/color] - \\n[hr][color=00138E]Photographer[/color] - \\n[hr][color=00138E]Date[/color] - \\n", "[/li][/ul]")\'>Press Conferences List</option>'; admin_ubbc += '<option value=\'add("[ul]\\n[li]\\n[/li][li]\\n[/li][li]\\n[hr][color=00138E]Date[/color] - \\n", "[/li][/ul]")\'>TV Shows/Movies List</option>'; admin_ubbc += '<option value=\'add("[spoiler=Spoiler Title]", "[/spoiler]")\'>Spoiler</option>'; admin_ubbc += '<option value=\'add("[ul]\\n[li]\\n[/li][li]\\n[/li][li]\\n[/li][/ul]\\n[ul]\\n[li]\\n[/li][li]\\n[/li][li]\\n[/li][/ul]\\n[ul]\\n[li]\\n[/li][li]\\n[/li][li]\\n[/li][/ul]\\n[ul]\\n[li]\\n[/li][li]\\n[/li][li]\\n[/li][/ul]\\n[ul]\\n[li]\\n[/li][li]\\n[/li][li]\\n", "[/li][/ul]")\'>Archives List</option>'; admin_ubbc += '<option value=\'add("• [url=http://www.url.com]Link Name[/url]\\n• [url=http://www.url.com]Link Name[/url]\\n• [url=http://www.url.com]Link Name[/url]\\n• [url=http://www.url.com]Link Name[/url]\\n• [url=http://www.url.com]Link Name[/url]")\'>Archives Links</option>'; admin_ubbc += '<option value=\'add("• [url=http://www.url.com]Link Name[/url]")\'>One Archive</option>';
var admin2_ubbc = '<option>Admin 2</option>'; admin2_ubbc += '<option value=\'add("[size=3][b][i][color=808080]Low Quality", "[/color][/i][/b][/size]")\'>Low Quality</option>'; admin2_ubbc += '<option value=\'add("[size=3][b][i][color=808080]Photoshoot", "[/color][/i][/b][/size]")\'>Photoshoot</option>'; admin2_ubbc += '<option value=\'add("[size=3][b][i][color=808080]Magazine", "[/color][/i][/b][/size]")\'>Magazine</option>'; admin2_ubbc += '<option value=\'add("Photoshoot For ", "")\'>Photoshoot For</option>'; admin2_ubbc += '<option value=\'add("Photographer - ", "")\'>Photographer</option>'; admin2_ubbc += '<option value=\'add("TV Shows/Movies/Talk Shows/Etc", "")\'>TV Shows/Movies</option>'; admin2_ubbc += '<option value=\'add("[size=5][b][i][color=00138E]", "[/color][/i][/b][/size]")\'>Archives Titles</option>'; admin2_ubbc += '<option value=\'add("[size=3][b][i][color=808080]", "[/color][/i][/b][/size]")\'>Titles</option>'; admin2_ubbc += '<option value=\'add("[size=3][b][i][color=808080]Stills", "[/color][/i][/b][/size]")\'>Stills</option>'; admin2_ubbc += '<option value=\'add("[size=3][b][i][color=808080]Screencaps", "[/color][/i][/b][/size]")\'>Screencaps</option>'; admin2_ubbc += '<option value=\'add("[size=5][b][i][color=00138E]Candids", "[/color][/i][/b][/size]")\'>Candids</option>'; admin2_ubbc += '<option value=\'add("[size=5][b][i][color=00138E]Appearances", "[/color][/i][/b][/size]")\'>Appearances</option>'; admin2_ubbc += '<option value=\'add("[size=5][b][i][color=00138E]Photoshoots", "[/color][/i][/b][/size]")\'>Photoshoots</option>'; admin2_ubbc += '<option value=\'add("[size=5][b][i][color=00138E]Photoshoots/Magazines", "[/color][/i][/b][/size]")\'>Photoshoots/Magazines</option>'; admin2_ubbc += '<option value=\'add("[size=5][b][i][color=00138E]Magazines", "[/color][/i][/b][/size]")\'>Magazines</option>'; admin2_ubbc += '<option value=\'add("[size=5][b][i][color=00138E]Photocalls/Press Conferences/Portraits", "[/color][/i][/b][/size]")\'>Press</option>'; admin2_ubbc += '<option value=\'add("[size=5][b][i][color=00138E]TV Shows/Movies/Talk Shows/Etc", "[/color][/i][/b][/size]")\'>TV Shows/Movies</option>'; admin2_ubbc += '<option value=\'add("[size=5][b][i][color=00138E]Misc", "[/color][/i][/b][/size]")\'>Misc</option>';
var admin3_ubbc = '<option>Names</option>'; admin3_ubbc += '<option value=\'add("Mary Kate", "")\'>Mary Kate</option>'; admin3_ubbc += '<option value=\'add("Ashley", "")\'>Ashley Olsen</option>'; admin3_ubbc += '<option value=\'add("Mary Kate And Ashley", "")\'>Mary Kate And Ashley Olsen</option>'; admin3_ubbc += '<option value=\'add("Lizzie", "")\'>Lizzie</option>'; admin3_ubbc += '<option value=\'add("Ali", "")\'>Ali</option>'; admin3_ubbc += '<option value=\'add("Lindsay", "")\'>Lindsay And Ali</option>'; admin3_ubbc += '<option value=\'add("Elle", "")\'>Elle</option>'; admin3_ubbc += '<option value=\'add("Dakota And Elle", "")\'>Dakota And Elle</option>'; admin3_ubbc += '<option value=\'add("Alyson", "")\'>Alyson</option>'; admin3_ubbc += '<option value=\'add("Amanda", "")\'>Amanda</option>'; admin3_ubbc += '<option value=\'add("Alyson And Amanda Michalka", "")\'>Alyson And Amanda Michalka</option>'; admin3_ubbc += '<option value=\'add("Los Angeles", "")\'>Los Angeles</option>'; admin3_ubbc += '<option value=\'add("In Los Angeles", "")\'>In Los Angeles</option>'; admin3_ubbc += '<option value=\'add("New York City", "")\'>New York City</option>'; admin3_ubbc += '<option value=\'add("In New York City", "")\'>In New York City</option>';
var web_ubbc = '<option>Web</option>'; web_ubbc += '<option value=\'add("[url=http://url.com]Text[/url]")\'>URL</option>'; web_ubbc += '<option value=\'add("[img]", "[/img]")\'>Image</option>'; web_ubbc += '<option value=\'add("[youtube]","[/youtube]")\'>YouTube</option>';
var text_ubbc = '<option>Text</option>'; text_ubbc += '<option value=\'add("[b]", "[/b]")\'>Bold</option>'; text_ubbc += '<option value=\'add("[i]", "[/i]")\'>Italic</option>'; text_ubbc += '<option value=\'add("[b][i]", "[/i][/b]")\'>Bold Italic</option>'; text_ubbc += '<option value=\'add("[u]", "[/u]")\'>Underline</option>'; text_ubbc += '<option value=\'add("[s]", "[/s]")\'>Strike Thru</option>'; text_ubbc += '<option value=\'add("[move]", "[/move]")\'>Marquee</option>';
var format_ubbc = '<option>Format</option>'; format_ubbc += '<option value=\'add("[hr]")\'>HR Line</option>'; format_ubbc += '<option value=\'add("[ul]\\n[li]\\n[/li][li]\\n[/li][li]\\n", "[/li][/ul]")\'>List</option>'; format_ubbc += '<option value=\'add("[left]", "[/left]")\'>Align Left</option>'; format_ubbc += '<option value=\'add("[center]", "[/center]")\'>Align Center</option>'; format_ubbc += '<option value=\'add("[right]", "[/right]")\'>Align Right</option>'; format_ubbc += '<option value=\'add("[pre]", "[/pre]")\'>Preformatted Text</option>'; format_ubbc += '<option value=\'add("[sup]", "[/sup]")\'>Superscript</option>'; format_ubbc += '<option value=\'add("[sub]", "[/sub]")\'>Subscript</option>'; format_ubbc += '<option value=\'add("[tt]", "[/tt]")\'>Teletype</option>';
var custom_ubbc = '<option>Custom</option>'; custom_ubbc += '<option value=\'add("[smear:FF03DD]","[/smear:FFFFFF]")\'>ColorSmear</option>';
var font_ubbc = '<option>Font</option>'; font_ubbc += '<option value=\'add("[font=Verdana]", "[/font]")\'>Verdana</option>'; font_ubbc += '<option value=\'add("[font=Times]", "[/font]")\'>Times</option>'; font_ubbc += '<option value=\'add("[font=Times New Roman]", "[/font]")\'>Times New Roman</option>'; font_ubbc += '<option value=\'add("[font=Comic Sans MS]", "[/font]")\'>Comic Sans MS</option>'; font_ubbc += '<option value=\'add("[font=Arial]", "[/font]")\'>Arial</option>'; font_ubbc += '<option value=\'add("[font=Geneva]", "[/font]")\'>Geneva</option>'; font_ubbc += '<option value=\'add("[font=Helvetica]", "[/font]")\'>Helvetica</option>'; font_ubbc += '<option value=\'add("[font=Lucida Grande]", "[/font]")\'>Lucida Grande</option>'; font_ubbc += '<option value=\'add("[font=Arial Rounded MT Bold]", "[/font]")\'>Arial Rounded MT Bold</option>';
var size_ubbc = '<option>Size</option>'; size_ubbc += '<option value=\'add("[size=1]", "[/size]")\'>1</option>'; size_ubbc += '<option value=\'add("[size=2]", "[/size]")\'>2</option>'; size_ubbc += '<option value=\'add("[size=3]", "[/size]")\'>3</option>'; size_ubbc += '<option value=\'add("[size=4]", "[/size]")\'>4</option>'; size_ubbc += '<option value=\'add("[size=5]", "[/size]")\'>5</option>'; size_ubbc += '<option value=\'add("[size=6]", "[/size]")\'>6</option>'; size_ubbc += '<option value=\'add("[size=7]", "[/size]")\'>7</option>'; size_ubbc += '<option value=\'add("[size=8]", "[/size]")\'>8</option>'; size_ubbc += '<option value=\'add("[size=9]", "[/size]")\'>9</option>'; size_ubbc += '<option value=\'add("[size=10]", "[/size]")\'>10</option>';
var tables_ubbc = '<option>Tables</option>'; tables_ubbc += '<option value=\'add("[table][tr][td]", "[/td][/tr][/table]")\'>Table</option>'; tables_ubbc += '<option value=\'add("[tr]", "[/tr]")\'>Row</option>'; tables_ubbc += '<option value=\'add("[td]", "[/td]")\'>Column</option>';
var sel_start = '<select onchange="do_ubbc(this);">'; var sel_end = '</select> '; var ubbc_str = (pb_username.match(new RegExp('^('+admin+')$','')) ? sel_start + admin_ubbc + sel_end + sel_start + admin2_ubbc + sel_end + sel_start + admin3_ubbc + sel_end + sel_start + web_ubbc + sel_end + sel_start + text_ubbc + sel_end + sel_start + format_ubbc + sel_end : '') + sel_start + custom_ubbc + sel_end + sel_start + font_ubbc + sel_end + sel_start + size_ubbc + sel_end;
var ubbc_str2= sel_start + tables_ubbc + sel_end;
document.postForm.color.parentNode.innerHTML = ubbc_str + '<select onChange="aC(this.options[this.selectedIndex].value);this.selectedIndex=0;">' + document.postForm.color.innerHTML + sel_end+ ubbc_str2 + '<a href="http://celebnook.proboards.com/index.cgi?board=ass&action=display&thread=5475&page=1"><b> UBBC Tutorial</b></a>'; } //--> </script>
|
|
|
Post by Wormopolis on Apr 1, 2012 20:58:52 GMT -8
this
: '')
is in the wrong place. move it back to after your admin3 stuff
|
|
|
Post by tunescool on Apr 2, 2012 1:05:12 GMT -8
thanks
|
|
|
Post by tunescool on Jun 3, 2012 12:09:31 GMT -8
wormer can you put a br after the Web drop down just for admin so theres 2 rows of drop downs in the post page, the second one after web just for admin. but the members one stays the same
<script type="text/javascript"> <!-- /* UBBC Drop Down Menus - Ross */
var admin="admin|staff1|staff2|staff3";
if(document.postForm) { function do_ubbc(obj) { eval(obj.options[obj.selectedIndex].value) obj.selectedIndex = 0; } var admin_ubbc = '<option>Admin</option>'; admin_ubbc += '<option value=\'add("\\n")\' >Return</option>'; admin_ubbc += '<option value=\'add("[hr]")\'>HR Line</option>'; admin_ubbc += '<option value=\'add("[b]", "[/b]")\'>Bold</option>'; admin_ubbc += '<option value=\'add("[b][i]", "[/i][/b]")\'>Bold Italic</option>'; admin_ubbc += '<option value=\'add("[tt]", "[/tt]")\'>Teletype</option>'; admin_ubbc += '<option value=\'add("[spoiler=Spoiler Title]", "[/spoiler]")\'>Spoiler</option>'; admin_ubbc += '<option value=\'add("[ul]\\n[li]\\n[/li][li]\\n[/li][li]\\n[/li][/ul]\\n[ul]\\n[li]\\n[/li][li]\\n[/li][li]\\n[/li][/ul]\\n[ul]\\n[li]\\n[/li][li]\\n[/li][li]\\n[/li][/ul]\\n[ul]\\n[li]\\n[/li][li]\\n[/li][li]\\n[/li][/ul]\\n[ul]\\n[li]\\n[/li][li]\\n[/li][li]\\n[/li][/ul]", "")\'>Archives List</option>'; admin_ubbc += '<option value=\'add("• [url=http://www.url.com]Link Name[/url]\\n• [url=http://www.url.com]Link Name[/url]\\n• [url=http://www.url.com]Link Name[/url]\\n• [url=http://www.url.com]Link Name[/url]\\n• [url=http://www.url.com]Link Name[/url]")\'>Archives Links</option>'; admin_ubbc += '<option value=\'add("• [url=http://www.url.com]Link Name[/url]")\'>One Archive</option>';
var admin2_ubbc = '<option>Admin 2</option>'; admin2_ubbc += '<option value=\'add("\\n[ul]\\n[li]\\n[/li][li]\\n[/li][li]\\n[/li][/ul]", "")\'>List</option>'; admin2_ubbc += '<option value=\'add("[hr][color=00138E]Date[/color] - ", "")\'>Date</option>'; admin2_ubbc += '<option value=\'add("\\n[ul]\\n[li]\\n[/li][li]\\n[/li][li]\\n[hr][color=00138E]Date[/color] - \\n[/li][/ul]", "")\'>Candids List</option>'; admin2_ubbc += '<option value=\'add("\\n[ul]\\n[li]\\n[/li][li]\\n[/li][li]\\n[hr][color=00138E]Date[/color] - \\n[/li][/ul]\\n[ul]\\n[li]\\n[/li][li]\\n[/li][li]\\n[hr][color=00138E]Date[/color] - \\n[/li][/ul]\\n[ul]\\n[li]\\n[/li][li]\\n[/li][li]\\n[hr][color=00138E]Date[/color] - \\n[/li][/ul]\\n[ul]\\n[li]\\n[/li][li]\\n[/li][li]\\n[hr][color=00138E]Date[/color] - \\n[/li][/ul]\\n[ul]\\n[li]\\n[/li][li]\\n[/li][li]\\n[hr][color=00138E]Date[/color] - \\n[/li][/ul]", "")\'>Candids List 5</option>'; admin2_ubbc += '<option value=\'add("\\n[ul]\\n[li]\\n[/li][li]\\n[/li][li]\\n[hr]\\n[hr][color=00138E]Date[/color] - \\n[/li][/ul]", "")\'>Candids Name List</option>'; admin2_ubbc += '<option value=\'add("\\n[ul]\\n[li]\\n[/li][li]\\n[/li][li]\\n[hr]\\n[hr][color=00138E]Date[/color] - \\n[/li][/ul]\\n[ul]\\n[li]\\n[/li][li]\\n[/li][li]\\n[hr]\\n[hr][color=00138E]Date[/color] - \\n[/li][/ul]\\n[ul]\\n[li]\\n[/li][li]\\n[/li][li]\\n[hr]\\n[hr][color=00138E]Date[/color] - \\n[/li][/ul]\\n[ul]\\n[li]\\n[/li][li]\\n[/li][li]\\n[hr]\\n[hr][color=00138E]Date[/color] - \\n[/li][/ul]\\n[ul]\\n[li]\\n[/li][li]\\n[/li][li]\\n[hr]\\n[hr][color=00138E]Date[/color] - \\n[/li][/ul]", "")\'>Candids Name List 5</option>'; admin2_ubbc += '<option value=\'add("\\n[ul]\\n[li]\\n[/li][li]\\n[/li][li][color=00138E]Event[/color] - \\n[hr][color=00138E]Venue[/color] - \\n[hr][color=00138E]Location[/color] - \\n[hr][color=00138E]Date[/color] - \\n[/li][/ul]", "")\'>Appearances List</option>'; admin2_ubbc += '<option value=\'add("\\n[ul]\\n[li]\\n[/li][li]\\n[/li][li][color=00138E]Event[/color] - \\n[hr][color=00138E]Venue[/color] - \\n[hr][color=00138E]Location[/color] - \\n[hr][color=00138E]Date[/color] - \\n[/li][/ul]\\n[ul]\\n[li]\\n[/li][li]\\n[/li][li][color=00138E]Event[/color] - \\n[hr][color=00138E]Venue[/color] - \\n[hr][color=00138E]Location[/color] - \\n[hr][color=00138E]Date[/color] - \\n[/li][/ul]\\n[ul]\\n[li]\\n[/li][li]\\n[/li][li][color=00138E]Event[/color] - \\n[hr][color=00138E]Venue[/color] - \\n[hr][color=00138E]Location[/color] - \\n[hr][color=00138E]Date[/color] - \\n[/li][/ul]", "")\'>Appearances List 3</option>'; admin2_ubbc += '<option value=\'add("\\n[ul]\\n[li]\\n[/li][li]\\n[/li][li][color=00138E]Photoshoot For[/color] - \\n[hr][color=00138E]Photographer[/color] - \\n[hr][color=00138E]Date[/color] - \\n[/li][/ul]", "")\'>Photoshoots List</option>'; admin2_ubbc += '<option value=\'add("\\n[ul]\\n[li]\\n[/li][li]\\n[/li][li][color=00138E]Magazine[/color] - \\n[hr][color=00138E]Photographer[/color] - \\n[hr][color=00138E]Date[/color] - \\n[/li][/ul]", "")\'>Photoshoots/Magazines List</option>'; admin2_ubbc += '<option value=\'add("\\n[ul]\\n[li]\\n[/li][li]\\n[/li][li][color=00138E]Event[/color] - \\n[hr][color=00138E]Venue[/color] - \\n[hr][color=00138E]Location[/color] - \\n[hr][color=00138E]Photographer[/color] - \\n[hr][color=00138E]Date[/color] - \\n[/li][/ul]", "")\'>Press List</option>';
var Titles_ubbc = '<option>Titles</option>'; Titles_ubbc += '<option value=\'add("[size=3][b][i][color=808080]Low Quality", "[/color][/i][/b][/size]")\'>Low Quality</option>'; Titles_ubbc += '<option value=\'add("[size=3][b][i][color=808080]Photoshoot", "[/color][/i][/b][/size]")\'>Photoshoot</option>'; Titles_ubbc += '<option value=\'add("[size=3][b][i][color=808080]Magazine", "[/color][/i][/b][/size]")\'>Magazine</option>'; Titles_ubbc += '<option value=\'add("Photoshoot For ", "")\'>Photoshoot For</option>'; Titles_ubbc += '<option value=\'add("Photographer - ", "")\'>Photographer</option>'; Titles_ubbc += '<option value=\'add("TV/Movies/Etc", "")\'>TV/Movies/Etc</option>'; Titles_ubbc += '<option value=\'add("[color=00138E]", "[/color]")\'>Blue</option>'; Titles_ubbc += '<option value=\'add("[size=3][b][i][color=808080]", "[/color][/i][/b][/size]")\'>Titles</option>'; Titles_ubbc += '<option value=\'add("[size=3][b][i][color=808080]Stills", "[/color][/i][/b][/size]")\'>Stills</option>'; Titles_ubbc += '<option value=\'add("[size=3][b][i][color=808080]Screencaps", "[/color][/i][/b][/size]")\'>Screencaps</option>'; Titles_ubbc += '<option value=\'add("[size=5][b][i][color=00138E]Candids", "[/color][/i][/b][/size]")\'>Candids</option>'; Titles_ubbc += '<option value=\'add("[size=5][b][i][color=00138E]Appearances", "[/color][/i][/b][/size]")\'>Appearances</option>'; Titles_ubbc += '<option value=\'add("[size=5][b][i][color=00138E]Photoshoots", "[/color][/i][/b][/size]")\'>Photoshoots</option>'; Titles_ubbc += '<option value=\'add("[size=5][b][i][color=00138E]Photoshoots/Magazines", "[/color][/i][/b][/size]")\'>Photoshoots/Magazines</option>'; Titles_ubbc += '<option value=\'add("[size=5][b][i][color=00138E]Magazines", "[/color][/i][/b][/size]")\'>Magazines</option>'; Titles_ubbc += '<option value=\'add("[size=5][b][i][color=00138E]Photocalls/Press", "[/color][/i][/b][/size]")\'>Photocalls/Press</option>'; Titles_ubbc += '<option value=\'add("[size=5][b][i][color=00138E]TV/Movies/Etc", "[/color][/i][/b][/size]")\'>TV/Movies/Etc</option>'; Titles_ubbc += '<option value=\'add("[size=5][b][i][color=00138E]Misc", "[/color][/i][/b][/size]")\'>Misc</option>';
var admin3_ubbc = '<option>Names</option>'; admin3_ubbc += '<option value=\'add("[color=00138E]Mary Kate[/color]", "")\'>Mary Kate</option>'; admin3_ubbc += '<option value=\'add("[color=00138E]Ashley[/color]", "")\'>Ashley</option>'; admin3_ubbc += '<option value=\'add("[color=00138E]Mary Kate And Ashley[/color]", "")\'>Mary Kate And Ashley</option>'; admin3_ubbc += '<option value=\'add("[color=00138E]Lizzie[/color]", "")\'>Lizzie</option>'; admin3_ubbc += '<option value=\'add("[color=00138E]Lindsay[/color]", "")\'>Lindsay</option>'; admin3_ubbc += '<option value=\'add("[color=00138E]Ali[/color]", "")\'>Ali</option>'; admin3_ubbc += '<option value=\'add("[color=00138E]Lindsay And Ali[/color]", "")\'>Lindsay And Ali</option>'; admin3_ubbc += '<option value=\'add("[color=00138E]Dakota And Elle[/color]", "")\'>Dakota</option>'; admin3_ubbc += '<option value=\'add("[color=00138E]Elle[/color]", "")\'>Elle</option>'; admin3_ubbc += '<option value=\'add("[color=00138E]Dakota And Elle[/color]", "")\'>Dakota And Elle</option>'; admin3_ubbc += '<option value=\'add("[color=00138E]Alyson And Amanda[/color]", "")\'>Alyson And Amanda</option>'; admin3_ubbc += '<option value=\'add("[color=00138E]Amanda[/color]", "")\'>Amanda</option>'; admin3_ubbc += '<option value=\'add("[color=00138E]Alyson[/color]", "")\'>Alyson</option>';
var cities_ubbc = '<option>Cities</option>'; cities_ubbc += '<option value=\'add("Los Angeles, California", "")\'>Los Angeles, California</option>'; cities_ubbc += '<option value=\'add("Hollywood, California", "")\'>Hollywood, California</option>'; cities_ubbc += '<option value=\'add("West Hollywood, California", "")\'>West Hollywood, California</option>'; cities_ubbc += '<option value=\'add("Beverly Hills, California", "")\'>Beverly Hills, California</option>'; cities_ubbc += '<option value=\'add("Universal City, California", "")\'>Universal City, California</option>'; cities_ubbc += '<option value=\'add("New York City, New York", "")\'>New York City, New York</option>'; cities_ubbc += '<option value=\'add("Las Vegas, Nevada", "")\'>Las Vegas, Nevada</option>'; cities_ubbc += '<option value=\'add("Park City, Utah", "")\'>Park City, Utah</option>'; cities_ubbc += '<option value=\'add("London, England", "")\'>London, England</option>'; cities_ubbc += '<option value=\'add("Venice, Italy", "")\'>Venice, Italy</option>'; cities_ubbc += '<option value=\'add("Paris, France", "")\'>Paris, France</option>'; cities_ubbc += '<option value=\'add("Cannes, France", "")\'>Cannes, France</option>'; cities_ubbc += '<option value=\'add("Toronto, Canada", "")\'>Toronto, Canada</option>'; cities_ubbc += '<option value=\'add("Sydney, Australia", "")\'>Sydney, Australia</option>';
var web_ubbc = '<option>Web</option>'; web_ubbc += '<option value=\'add("[url=http://url.com]Text[/url]")\'>URL</option>'; web_ubbc += '<option value=\'add("[img]", "[/img]")\'>Image</option>'; web_ubbc += '<option value=\'add("[youtube]","[/youtube]")\'>YouTube</option>';
var text_ubbc = '<option>Text</option>'; text_ubbc += '<option value=\'add("[b]", "[/b]")\'>Bold</option>'; text_ubbc += '<option value=\'add("[i]", "[/i]")\'>Italic</option>'; text_ubbc += '<option value=\'add("[b][i]", "[/i][/b]")\'>Bold Italic</option>'; text_ubbc += '<option value=\'add("[u]", "[/u]")\'>Underline</option>'; text_ubbc += '<option value=\'add("[s]", "[/s]")\'>Strike Thru</option>'; text_ubbc += '<option value=\'add("[move]", "[/move]")\'>Marquee</option>';
var format_ubbc = '<option>Format</option>'; format_ubbc += '<option value=\'add("[hr]")\'>HR Line</option>'; format_ubbc += '<option value=\'add("[ul]\\n[li]\\n[/li][li]\\n[/li][li]\\n", "[/li][/ul]")\'>List</option>'; format_ubbc += '<option value=\'add("[left]", "[/left]")\'>Align Left</option>'; format_ubbc += '<option value=\'add("[center]", "[/center]")\'>Align Center</option>'; format_ubbc += '<option value=\'add("[right]", "[/right]")\'>Align Right</option>'; format_ubbc += '<option value=\'add("[pre]", "[/pre]")\'>Preformatted Text</option>'; format_ubbc += '<option value=\'add("[sup]", "[/sup]")\'>Superscript</option>'; format_ubbc += '<option value=\'add("[sub]", "[/sub]")\'>Subscript</option>'; format_ubbc += '<option value=\'add("[tt]", "[/tt]")\'>Teletype</option>';
var custom_ubbc = '<option>Custom</option>'; custom_ubbc += '<option value=\'add("[smear:FF03DD]","[/smear:FFFFFF]")\'>ColorSmear</option>';
var font_ubbc = '<option>Font</option>'; font_ubbc += '<option value=\'add("[font=Verdana]", "[/font]")\'>Verdana</option>'; font_ubbc += '<option value=\'add("[font=Times]", "[/font]")\'>Times</option>'; font_ubbc += '<option value=\'add("[font=Times New Roman]", "[/font]")\'>Times New Roman</option>'; font_ubbc += '<option value=\'add("[font=Comic Sans MS]", "[/font]")\'>Comic Sans MS</option>'; font_ubbc += '<option value=\'add("[font=Arial]", "[/font]")\'>Arial</option>'; font_ubbc += '<option value=\'add("[font=Geneva]", "[/font]")\'>Geneva</option>'; font_ubbc += '<option value=\'add("[font=Helvetica]", "[/font]")\'>Helvetica</option>'; font_ubbc += '<option value=\'add("[font=Lucida Grande]", "[/font]")\'>Lucida Grande</option>'; font_ubbc += '<option value=\'add("[font=Arial Rounded MT Bold]", "[/font]")\'>Arial Rounded MT Bold</option>';
var size_ubbc = '<option>Size</option>'; size_ubbc += '<option value=\'add("[size=1]", "[/size]")\'>1</option>'; size_ubbc += '<option value=\'add("[size=2]", "[/size]")\'>2</option>'; size_ubbc += '<option value=\'add("[size=3]", "[/size]")\'>3</option>'; size_ubbc += '<option value=\'add("[size=4]", "[/size]")\'>4</option>'; size_ubbc += '<option value=\'add("[size=5]", "[/size]")\'>5</option>'; size_ubbc += '<option value=\'add("[size=6]", "[/size]")\'>6</option>'; size_ubbc += '<option value=\'add("[size=7]", "[/size]")\'>7</option>'; size_ubbc += '<option value=\'add("[size=8]", "[/size]")\'>8</option>'; size_ubbc += '<option value=\'add("[size=9]", "[/size]")\'>9</option>'; size_ubbc += '<option value=\'add("[size=10]", "[/size]")\'>10</option>';
var tables_ubbc = '<option>Tables</option>'; tables_ubbc += '<option value=\'add("[table][tr][td]", "[/td][/tr][/table]")\'>Table</option>'; tables_ubbc += '<option value=\'add("[tr]", "[/tr]")\'>Row</option>'; tables_ubbc += '<option value=\'add("[td]", "[/td]")\'>Column</option>';
var sel_start = '<select onchange="do_ubbc(this);">'; var sel_end = '</select> '; var ubbc_str = (pb_username.match(new RegExp('^('+admin+')$','')) ? sel_start + admin_ubbc + sel_end + sel_start + admin2_ubbc + sel_end + sel_start + Titles_ubbc + sel_end + sel_start + admin3_ubbc + sel_end + sel_start + cities_ubbc + sel_end : '') + sel_start + web_ubbc + sel_end + sel_start + text_ubbc + sel_end + sel_start + format_ubbc + sel_end + sel_start + custom_ubbc + sel_end + sel_start + font_ubbc + sel_end + sel_start + size_ubbc + sel_end;
var ubbc_str2= sel_start + tables_ubbc + sel_end;
document.postForm.color.parentNode.innerHTML = ubbc_str + '<select onChange="aC(this.options[this.selectedIndex].value);this.selectedIndex=0;">' + document.postForm.color.innerHTML + sel_end+ ubbc_str2 + '<a href="http://thenotablenook.com/index.cgi?board=ass&action=display&thread=5475" target="_blank"><b> UBBC Tutorial</b></a>'; } //--> </script>
|
|
|
Post by Wormopolis on Jun 3, 2012 13:01:41 GMT -8
you mean between admin and admin2?
|
|
|
Post by tunescool on Jun 3, 2012 13:23:08 GMT -8
where the green line is
|
|
|
Post by Wormopolis on Jun 3, 2012 17:29:49 GMT -8
var ubbc_str = (pb_username.match(new RegExp('^('+admin+')$','')) ? sel_start + admin_ubbc + sel_end + sel_start + admin2_ubbc + sel_end + sel_start + Titles_ubbc + sel_end + sel_start + admin3_ubbc + sel_end + sel_start + cities_ubbc + sel_end : '') + sel_start + web_ubbc + sel_end + (pb_username.match(new RegExp('^('+admin+')$','')) ? '<br>' : '') + sel_start + text_ubbc + sel_end + sel_start + format_ubbc + sel_end + sel_start + custom_ubbc + sel_end + sel_start + font_ubbc + sel_end + sel_start + size_ubbc + sel_end;
|
|
|
Post by tunescool on Jun 3, 2012 19:17:40 GMT -8
yea it did what i wanted it to
|
|
|
Post by tunescool on Jul 6, 2012 10:50:47 GMT -8
i started a general forum and i dont need alot of stuff in this thing. i dont need a br and left one admin drop down. i took this out and the spacing between the drop downs ill never understand. its not working on the new site
+ (pb_username.match(new RegExp('^('+admin+')$','')) ? '<br>' : '')
<script type="text/javascript"> <!-- /* UBBC Drop Down Menus - Ross */
var admin="admin|staff1|staff2|staff3";
if(document.postForm) { function do_ubbc(obj) { eval(obj.options[obj.selectedIndex].value) obj.selectedIndex = 0; } var admin_ubbc = '<option>Admin</option>'; admin_ubbc += '<option value=\'add("\\n")\' >Return</option>'; admin_ubbc += '<option value=\'add("\\n\\n")\' > 2 Returns</option>'; admin_ubbc += '<option value=\'add("\\n\\n[hr]\\n")\' >3 Returns</option>'; admin_ubbc += '<option value=\'add("[hr]")\'>HR Line</option>'; admin_ubbc += '<option value=\'add("[b]", "[/b]")\'>Bold</option>'; admin_ubbc += '<option value=\'add("[b][i]", "[/i][/b]")\'>Bold Italic</option>'; admin_ubbc += '<option value=\'add("[tt]", "[/tt]")\'>Teletype</option>'; admin_ubbc += '<option value=\'add("[spoiler=Spoiler Title]", "[/spoiler]")\'>Spoiler</option>'; admin_ubbc += '<option value=\'add("[ul]\\n[li]\\n[/li][li]\\n[/li][li]\\n[/li][/ul]\\n[ul]\\n[li]\\n[/li][li]\\n[/li][li]\\n[/li][/ul]\\n[ul]\\n[li]\\n[/li][li]\\n[/li][li]\\n[/li][/ul]\\n[ul]\\n[li]\\n[/li][li]\\n[/li][li]\\n[/li][/ul]\\n[ul]\\n[li]\\n[/li][li]\\n[/li][li]\\n[/li][/ul]", "")\'>Archives List</option>'; admin_ubbc += '<option value=\'add("• [url=http://www.url.com]Link Name[/url]\\n• [url=http://www.url.com]Link Name[/url]\\n• [url=http://www.url.com]Link Name[/url]\\n• [url=http://www.url.com]Link Name[/url]\\n• [url=http://www.url.com]Link Name[/url]")\'>Archives Links</option>'; admin_ubbc += '<option value=\'add("• [url=http://www.url.com]Link Name[/url]")\'>One Archive</option>';
var web_ubbc = '<option>Web</option>'; web_ubbc += '<option value=\'add("[url=http://url.com]Text[/url]")\'>URL</option>'; web_ubbc += '<option value=\'add("[img]", "[/img]")\'>Image</option>'; web_ubbc += '<option value=\'add("[youtube]","[/youtube]")\'>YouTube</option>';
var text_ubbc = '<option>Text</option>'; text_ubbc += '<option value=\'add("[b]", "[/b]")\'>Bold</option>'; text_ubbc += '<option value=\'add("[i]", "[/i]")\'>Italic</option>'; text_ubbc += '<option value=\'add("[b][i]", "[/i][/b]")\'>Bold Italic</option>'; text_ubbc += '<option value=\'add("[u]", "[/u]")\'>Underline</option>'; text_ubbc += '<option value=\'add("[s]", "[/s]")\'>Strike Thru</option>'; text_ubbc += '<option value=\'add("[move]", "[/move]")\'>Marquee</option>';
var format_ubbc = '<option>Format</option>'; format_ubbc += '<option value=\'add("[hr]")\'>HR Line</option>'; format_ubbc += '<option value=\'add("[ul]\\n[li]\\n[/li][li]\\n[/li][li]\\n", "[/li][/ul]")\'>List</option>'; format_ubbc += '<option value=\'add("[left]", "[/left]")\'>Align Left</option>'; format_ubbc += '<option value=\'add("[center]", "[/center]")\'>Align Center</option>'; format_ubbc += '<option value=\'add("[right]", "[/right]")\'>Align Right</option>'; format_ubbc += '<option value=\'add("[pre]", "[/pre]")\'>Preformatted Text</option>'; format_ubbc += '<option value=\'add("[sup]", "[/sup]")\'>Superscript</option>'; format_ubbc += '<option value=\'add("[sub]", "[/sub]")\'>Subscript</option>'; format_ubbc += '<option value=\'add("[tt]", "[/tt]")\'>Teletype</option>';
var custom_ubbc = '<option>Custom</option>'; custom_ubbc += '<option value=\'add("[smear:FF03DD]","[/smear:FFFFFF]")\'>ColorSmear</option>';
var font_ubbc = '<option>Font</option>'; font_ubbc += '<option value=\'add("[font=Verdana]", "[/font]")\'>Verdana</option>'; font_ubbc += '<option value=\'add("[font=Times]", "[/font]")\'>Times</option>'; font_ubbc += '<option value=\'add("[font=Times New Roman]", "[/font]")\'>Times New Roman</option>'; font_ubbc += '<option value=\'add("[font=Comic Sans MS]", "[/font]")\'>Comic Sans MS</option>'; font_ubbc += '<option value=\'add("[font=Arial]", "[/font]")\'>Arial</option>'; font_ubbc += '<option value=\'add("[font=Geneva]", "[/font]")\'>Geneva</option>'; font_ubbc += '<option value=\'add("[font=Helvetica]", "[/font]")\'>Helvetica</option>'; font_ubbc += '<option value=\'add("[font=Lucida Grande]", "[/font]")\'>Lucida Grande</option>'; font_ubbc += '<option value=\'add("[font=Arial Rounded MT Bold]", "[/font]")\'>Arial Rounded MT Bold</option>';
var size_ubbc = '<option>Size</option>'; size_ubbc += '<option value=\'add("[size=1]", "[/size]")\'>1</option>'; size_ubbc += '<option value=\'add("[size=2]", "[/size]")\'>2</option>'; size_ubbc += '<option value=\'add("[size=3]", "[/size]")\'>3</option>'; size_ubbc += '<option value=\'add("[size=4]", "[/size]")\'>4</option>'; size_ubbc += '<option value=\'add("[size=5]", "[/size]")\'>5</option>'; size_ubbc += '<option value=\'add("[size=6]", "[/size]")\'>6</option>'; size_ubbc += '<option value=\'add("[size=7]", "[/size]")\'>7</option>'; size_ubbc += '<option value=\'add("[size=8]", "[/size]")\'>8</option>'; size_ubbc += '<option value=\'add("[size=9]", "[/size]")\'>9</option>'; size_ubbc += '<option value=\'add("[size=10]", "[/size]")\'>10</option>';
var tables_ubbc = '<option>Tables</option>'; tables_ubbc += '<option value=\'add("[table][tr][td]", "[/td][/tr][/table]")\'>Table</option>'; tables_ubbc += '<option value=\'add("[tr]", "[/tr]")\'>Row</option>'; tables_ubbc += '<option value=\'add("[td]", "[/td]")\'>Column</option>';
var sel_start = '<select onchange="do_ubbc(this);">'; var sel_end = '</select> '; var ubbc_str = (pb_username.match(new RegExp('^('+admin+')$','')) ? sel_start + admin_ubbc + sel_end + sel_start + web_ubbc + sel_end + sel_start + text_ubbc + sel_end + sel_start + format_ubbc + sel_end + sel_start + custom_ubbc + sel_end + sel_start + font_ubbc + sel_end + sel_start + size_ubbc + sel_end;
var ubbc_str2= sel_start + tables_ubbc + sel_end;
document.postForm.color.parentNode.innerHTML = ubbc_str + '<select onChange="aC(this.options[this.selectedIndex].value);this.selectedIndex=0;">' + document.postForm.color.innerHTML + sel_end+ ubbc_str2 + '<a href="http://forumbytunes.proboards.com/index.cgi?action=display&board=general&thread=4" target="_blank"><b> UBBC Tutorial</b></a>'; } //--> </script>
|
|
|
Post by Wormopolis on Jul 6, 2012 15:33:41 GMT -8
what do you want the admin to have and what do you want a regular user to have?
|
|