Post by ' ' bubblegum. on Nov 13, 2009 0:02:03 GMT -5
Ok, so I've been randomly searching a few different forums, and google for some cool code for ourwebsite. I know there aren't very many active members right now, but those of you who still do come on, please tell me if you want these codes or not. Also, if you want to be specific, please tell me which codes to add. Please and thank you, my mini-err... i mean, beautiful members/frienzzzz. c:
(they have the html there for my sake, so i don't have to go on another week-long search for them. x.x )
profile.selectable.username.color.xx
'preview.
global.footer.
personal.mood.icons.
'preview.
global.footer.
happy.birthday.in.newsfader.
main.footer.
(they have the html there for my sake, so i don't have to go on another week-long search for them. x.x )
profile.selectable.username.color.xx
'preview.
global.footer.
<script type="text/javascript">
<!--
/*Profile Selectable Username Colour - By iAlex - Open Source*/
if(document.modifyForm){
var iDisTr=document.modifyForm.name.parentNode.parentNode.parentNode;
var iColourTr=iDisTr.cloneNode(true);
iColourTr.childNodes[0].firstChild.innerHTML='Name Colour';
iColourTr.childNodes[2].firstChild.innerHTML='If you wish to have your name displayed in a different colour, insert the hex code here.';
iColourTr.childNodes[1].innerHTML='<input type="text" size="35" maxlength="6" id="iColourInp" />';
iDisTr.parentNode.insertBefore(iColourTr, iDisTr.nextSibling);
var iPersonal=document.modifyForm.personaltext;
var iColourInp=document.getElementById('iColourInp');
if(iPersonal.value.match(/\[C01:(.+?)\]/)){
iColourInp.value=RegExp.$1;
iPersonal.value=iPersonal.value.replace(/\[C01:(.+?)\]/g, '');
}
if(document.addEventListener){
document.modifyForm.addEventListener('submit', iSaveColour, false);
}
else{
document.modifyForm.attachEvent('onsubmit', iSaveColour);
}
}
function iSaveColour(){
var iColourInp=document.getElementById('iColourInp');
if(iColourInp.value!=""){
var iPersonal=document.modifyForm.personaltext;
iPersonal.value=iPersonal.value+'[C01:'+iColourInp.value+']';
}
}
if(location.href.match(/action=(display|viewprofile|(user)?recent|(calendar|pm)view|search2)/) || location.href.match(/index.cgi$/) && document.title.match(/Preview/) && document.postForm){
var iTd=document.getElementsByTagName('td');
var i=iTd.length;
while(--i){
if(iTd.item(i).width=="20%" && iTd.item(i).className.match(/windowbg(2)?/) && iTd.item(i).vAlign=="top" && iTd.item(i).innerHTML.match(/\[C01:(.+?)\]/)){
iTd.item(i).getElementsByTagName('b').item(0).firstChild.style.color=RegExp.$1;
iTd.item(i).innerHTML=iTd.item(i).innerHTML.replace(/\[C01:(.+?)\]/g, '');
}
}
}
//-->
</script>
personal.mood.icons.
'preview.
global.footer.
<script type="text/javascript">
<!--
/*Personal Mood Icons - By iAlex - Open Source*/
var iMoodList=[
["http://s3.images.proboards.com/smiley.gif", "Smiley"],
["http://s3.images.proboards.com/wink.gif", "Wink"],
["http://s3.images.proboards.com/cheesy.gif", "Cheesy"],
["http://s3.images.proboards.com/grin.gif", "Grin"],
["http://s3.images.proboards.com/angry.gif", "Angry"],
["http://s3.images.proboards.com/sad.gif", "Sad"],
["http://s3.images.proboards.com/shocked.gif", "Shocked"],
["http://s3.images.proboards.com/cool.gif", "Cool"],
["http://s3.images.proboards.com/huh.gif", "Huh"],
["http://s3.images.proboards.com/rolleyes.gif", "Roll Eyes"],
["http://s3.images.proboards.com/tongue.gif", "Tongue"],
["http://s3.images.proboards.com/embarassed.gif", "Embarrassed"],
["http://s3.images.proboards.com/lipsrsealed.gif", "Lips Sealed"],
["http://s3.images.proboards.com/undecided.gif", "Undecided"],
["http://s3.images.proboards.com/kiss.gif", "Kiss"],
["http://s3.images.proboards.com/cry.gif", "Cry"] // No comma on the last line
];
if(document.modifyForm){
var iMoodTable = document.modifyForm.personaltext.parentNode.parentNode.parentNode.parentNode.parentNode;
var iMoodDiv=document.createElement('div');
iMoodDiv.innerHTML='<table cellpadding="2" cellspacing="2" border="0"><tr><td width="154" valign="top"><font size="-1">Mood:</font></td><td width="245"><font size="-1" id="iMoodFont"></font><div id="iMoodPreview"></div></td><td width="245"><font size="-2">If you wish to have a personal mood icon displayed in your mini profile, then select one on the left.</font></td></tr></table>';
iMoodTable.parentNode.insertBefore(iMoodDiv, iMoodTable);
var iMoodFont=document.getElementById('iMoodFont');
var iMoodSelect=document.createElement('select');
var iMoodText=document.modifyForm.personaltext;
iMoodSelect.options[0]=new Option('None');
for(i=0;i<iMoodList.length;i++){
iMoodSelect.options[iMoodSelect.length]=new Option(iMoodList[i][1]);
}
if(iMoodText.value.match(/\[Mo0:(\d+)\]/)){
iMoodSelect.selectedIndex=RegExp.$1;
iMoodText.value=iMoodText.value.replace(/\[Mo0:(\d+)\]/g, '');
}
iMoodFont.appendChild(iMoodSelect);
if(document.addEventListener){
document.modifyForm.addEventListener('submit', function(){
iMoodText.value=iMoodText.value+'[Mo0:'+iMoodSelect.selectedIndex+']';
}, false);
}
else{
document.modifyForm.attachEvent('onsubmit', function(){
iMoodText.value=iMoodText.value+'[Mo0:'+iMoodSelect.selectedIndex+']';
});
}
var iMoodPreview=document.getElementById('iMoodPreview');
function iMoodFunction(){
iMoodPreview.innerHTML='';
if(iMoodSelect.selectedIndex>0){
var iMoodNum=iMoodSelect.selectedIndex-1;
iMoodPreview.innerHTML='<b'+'r /><img src="'+iMoodList[iMoodNum][0]+'" title="'+iMoodList[iMoodNum][1]+'" alt="'+iMoodList[iMoodNum][1]+'" />';
}
}
iMoodFunction();
iMoodSelect.onchange=function(){
iMoodFunction();
}
iMoodSelect.onkeyup=function(){
iMoodFunction();
}
}
if(location.href.match(/action=(display|viewprofile|(user)?recent|calendarview|search2|pmview)/) || location.href.match(/index.cgi$/) && document.title.match(/Preview/) && document.postForm){
var iTd=document.getElementsByTagName('td');
for(i=0;i<iTd.length;i++){
if(iTd.item(i).width=="20%" && iTd.item(i).className.match(/windowbg(2)?/) && iTd.item(i).vAlign=="top" && iTd.item(i).innerHTML.match(/member is/) && iTd.item(i).innerHTML.match(/\[Mo0:(\d+)\]/)){
if(RegExp.$1>0){
var iMoodDisplay=document.createElement('div');
iMoodDisplay.innerHTML='Mood: <img src="'+iMoodList[RegExp.$1-1][0]+'" title="'+iMoodList[RegExp.$1-1][1]+'" alt="'+iMoodList[RegExp.$1-1][1]+'" />';
iTd.item(i).appendChild(iMoodDisplay);
}
iTd.item(i).innerHTML=iTd.item(i).innerHTML.replace(/\[Mo0:(\d+)\]/g, '');
}
}
}
//-->
</script>
happy.birthday.in.newsfader.
main.footer.
<script>
//Add Happy Birthday Message to News Fader v1.0
//Copyright 10-31-2005 by ~Wonder
//May be reposted anywhere as long as this header remains in tact.
if("undefined"!=typeof(fContent))
{
for(i=document.images.length-1;i>0;i--)
{
if(document.images[i].alt && document.images[i].alt=="birthdays"){break;}
}
if(i!=0)
{
a=document.images[i].parentNode.parentNode.getElementsByTagName("a");
bdays=new Array();
for(i=0;i<a.length;i++)
{
a[i].href.match(/action\=viewprofile/)?bdays[bdays.length]=a[i].innerHTML:"";
}
if(bdays.length>1){bdays[bdays.length-1]="and "+bdays[bdays.length-1];}
if(bdays.length>2){bdays=bdays.join(", ");}
else {bdays=bdays.join(" ");}
bdays.length>0?fContent[fContent.length]="Happy Birthday to "+bdays:"";
}
}
</script>