|
Post by melody on Feb 3, 2011 20:01:00 GMT -5
Hi there! Melody here. Not that this site is in any way horrible, just a little... pet peeve of mine xD.
JUSTIFY! There's a thread here that gives you the code and explains stuff. Basically, it aligns your posts so it's even I guess. I don't really know how to explain it xD. I just personally think it makes things look pretty and organized ^^ . Just throwing it out there. ; D.
|
|
|
Post by { b l u e } on Feb 3, 2011 20:23:36 GMT -5
Thanks for the suggestion! :D
However, I put the code in... and it doesn't seem to be working. :/ The other issue is that I have no idea how to add the 'justify' option to the drop-down code in have in now. (I'll see what I can do to make the code work though. :p )
|
|
|
Post by OH WE ALL PRETEND on Feb 4, 2011 5:32:57 GMT -5
Blue, try moving it right to the bottom of the footers and see if it works. It's probably a code conflict. c:
As for adding it to the dropdown -- you can't really add it to any of them. But I've fiddled with the code, and I've come up with a solution? And it also incorporates another code I'd love if you added. Style UBBC Tags? (Also, this miniprofile code? Irrelevant to the discussion at hand, but it's a pretty awesome miniprofile code and you should add it. xD)
Basically, I edited the UBBC dropdown code to add a new dropdown labelled "Extra Codes". From that dropdown, you'll be able to select justify or style. (I also noticed you don't have the Enhanced Tables UBBC dropdown for some reason -- I could add those codes into the "Extra Codes", if you wanted?)
Just replace your current UBBC dropdown code with this one. I recommend you do it on a test site first, just to make sure there are no code conflicts with your current codes here. (It works perfectly with no other codes in the headers/footers, but it might mess up with certain ones. I doubt it, though...)
If you want anything changed, Blue, just hit me up~
<script type="text/javascript"> <!-- /* UBBC, Font, and Font Size Drop Down by hpmad Edited by Closed to add Style/Justify Do not repost or claim without permission from creator For more codes like this one go to: http://talkpark.proboards.com */ if(document.postForm){ var ubbc = document.postForm.color.parentNode.getElementsByTagName('a'); var ubbcCell = document.postForm.color.parentNode; var ubbcSel = document.createElement('select'); ubbcSel[0] = new Option("UBBC Codes"); for(i=0;i<ubbc.length;i++){ if(!ubbc[i].firstChild.alt.match(/Font/)) ubbcSel[ubbcSel.length] = new Option(ubbc[i].firstChild.alt.replace(/\[|\]/,''), ubbc[i].href); ubbc[i].parentNode.removeChild(ubbc[i]); i--; } var fontFSel = document.createElement('select'); fontFSel[0] = new Option('Font Face'); fontFSel[1] = new Option('Verdana','Verdana'); fontFSel[2] = new Option('Arial','Arial'); fontFSel[3] = new Option('Tahoma','Tahoma'); fontFSel[4] = new Option('Times New Roman','Times New Roman'); fontFSel[5] = new Option('Comic Sans MS','Comic Sans MS'); var fontSSel = document.createElement('select'); fontSSel[0] = new Option('Font Size'); for(i=1;i<7;i++) fontSSel[i] = new Option(i,i);
var extra = document.createElement('select'); extra[0] = new Option('Extra Codes'); extra[1] = new Option('Justify','justify'); extra[2] = new Option('Style','style'); ubbcSel.onchange = function(){ if(this[this.selectedIndex].value){ eval(this[this.selectedIndex].value); this.selectedIndex = 0; }} fontFSel.onchange = function(){ if(this[this.selectedIndex].value){ add('[font='+this[this.selectedIndex].value+']','[/font]'); this.selectedIndex = 0; }} fontSSel.onchange = function(){ if(this[this.selectedIndex].value){ add('[size='+this[this.selectedIndex].value+']','[/size]'); this.selectedIndex = 0; }} extra.onchange = function(){ if(this[this.selectedIndex].value){ add('['+this[this.selectedIndex].value+'=]','[/'+this[this.selectedIndex].value+']'); this.selectedIndex = 0; }} ubbcCell.insertBefore(ubbcSel, document.postForm.color); ubbcCell.insertBefore(document.createTextNode(' '), document.postForm.color); ubbcCell.insertBefore(fontFSel,document.postForm.color); ubbcCell.insertBefore(document.createTextNode(' '), document.postForm.color); ubbcCell.insertBefore(fontSSel,document.postForm.color); ubbcCell.insertBefore(document.createTextNode(' '), document.postForm.color); ubbcCell.insertBefore(extra,document.postForm.color); ubbcCell.insertBefore(document.createTextNode(' '), document.postForm.color); } //--> </script>
|
|
|
Post by { b l u e } on Feb 4, 2011 17:18:15 GMT -5
Thanks muchly for your suggestions (and help too, lol. I totally fail at coding. xD)
I've added the style code, and the profile code we already had in place (it wasn't working earlier, but 'tis working again now.) And the drop down and justify codes are now working fine n' dandy too. n_n
|
|