ooop
Junior Poster
Posts: 12
|
Post by ooop on Nov 20, 2010 18:04:27 GMT
Hi Okay so I want Admins post outline to be gold, and G-Mods to be green. All posts have a tan outline, but I'd like for those to be different, so they stand out. ?
|
|
|
Post by moneyman18 on Nov 20, 2010 21:02:09 GMT
Something like this? <style type="text/css"><!-- .admin_posts { background-color: #403503; border: 4px #957C07 solid; }
.mod_posts { background-color: #032606; border: 4px #064C0E solid; }
.member_posts { background-color: #1F1707; border: 4px #3F2E0F solid; } --></style>
<script type="text/javascript"><!-- // Separate usernames with | var admins = 'admin'; var mods = 'user1|user2';
if(location.href.match(/(?:&thread=|ion=(?:search|(?:user)?recent))/)){ var mTr = document.getElementsByTagName('tr'); for(a = 0; a < mTr.length; a++) if(mTr[a].cells[0].width == '20%' && mTr[a].cells[0].innerHTML.match(/user=(\w+)"/i)){ if(RegExp.$1.match(new RegExp('^'+admins+'$', 'i'))) var klass = 'admin'; else if(RegExp.$1.match(new RegExp('^'+mods+'$', 'i'))) var klass = 'mod'; else var klass = 'member'; mTr[a].cells[0].className += ' '+klass+'_posts'; mTr[a].cells[1].className += ' '+klass+'_posts'; var mTd = mTr[a].cells[1].getElementsByTagName('td'); for(b = mTd.length-1; b >= 0; --b) if(mTd[b].vAlign == 'bottom' && mTd[b].colSpan == 3){ mTd[b].className += ' '+klass+'_posts'; break; } } } //--></script>
Edit the Gold with the colors of the administrators post background and border color. Edit the Green with the colors of the moderators post background and border color. Edit the Brown with the colors of the normal member's post background and border color. Edit these two lines with the admin usernames and moderator usernames. Separate them with | var admins = 'admin'; var mods = 'user1|user2'; I used the RuneScape colors btw as I assume that was the look you were after or something similar to that and I didn't know any other colors that went good together. Edit: Global Footer or Board Footer if you want it to only affect certain boards.
|
|
ooop
Junior Poster
Posts: 12
|
Post by ooop on Nov 20, 2010 22:14:10 GMT
Can I just have a code that does it too the outline though? I already have a background color code (iAlex)
|
|
|
Post by moneyman18 on Nov 20, 2010 22:16:36 GMT
Remove the three lines that are like the one below in the css portion.
background-color: #somecolor;
|
|
ooop
Junior Poster
Posts: 12
|
Post by ooop on Nov 20, 2010 22:17:14 GMT
Oh duh! I'll try this out thanks
|
|