Ross
eCreations Staff
Posts: 1,768
|
Post by Ross on Jan 23, 2006 15:58:02 GMT
Global Footer<script type="text/javascript"> <!-- /* online/offline text and styles - open source */ var onlinestext = '<span style="font-weight: bold;">Member is Here</span>'; var offlinetext = '<span style="color: #000000;">Member is Away</span>'; var td = document.getElementsByTagName('td'); vfor(i=0; i<td.length; i++) { if(td.item(i).width == '20%' && td.item(i).innerHTML.match(/(member is .+?)<br>/i)) { if(RegExp.$1.match(/offline/)) tText = offlinetext; else tText = onlinestext; td.item(i).innerHTML = td.item(i).innerHTML.replace(RegExp.$1, tText); } } //--> </script>What this code does is allows you to change both the text displayed and the style of the text which says 'member is XXX' in their mini-profile. The green part is for online members, the red is for those who are offline. The bits highlighted in bold are where you put the styles. Examples of what styles you can include would include: color: FF6600; font-weight: bold; font-style: italic; text-decoration: underline;To use more than one style, just put one after another
|
|
Danny
Posts Too Much
Formerly Schnooble
Posts: 332
|
Post by Danny on Mar 7, 2007 14:00:19 GMT
I tried this code on my test board because ive been working on something similar but this code doesnt seem to be working. I played around with it a bit and still no luck.
does it conflict with other codes in the mini profile
also shouldnt it be in mini profile hacks rather than the main page ones ?
|
|
|
Post by Matthew Percivical Tendonin on Dec 30, 2007 1:14:46 GMT
It won't work for me.
|
|
|
Post by BobbyKat LittleCub on Dec 30, 2007 4:48:28 GMT
Did you try to move the code to the top of the Global Footer? Sometimes if you move a code around it will work for you.
|
|