Post by ialex on Oct 1, 2007 1:28:31 GMT -8
Well, this is a sort of post/mini profile modification. Under each post it will place a category bar, that will hold the users mini profile contact icons. It will also contain a button that will allow the user to go back to the top. It is similar to what can be seen on InvisionFree boards.
This is the up button that will be used:
You can change it via the URL at the top of the code.
Here is a preview: Click
Cross Browser.
Global Footer.
<script type="text/javascript">
<!--
/*Post Modification - By iAlex - Open Source*/
var iArrowImage="http://img459.imageshack.us/img459/768/iarrowitupforitpleaseqm7.gif"; //Arrow Image
if(location.href.match(/action=(display|(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).align=="left" && iTd.item(i).vAlign=="top" && iTd.item(i).firstChild && !iTd.item(i).firstChild.nodeName.match(/input/i)){
var iContact='';
if(iTd.item(i).innerHTML.match(/member is/)){
var iCentre=iTd.item(i).getElementsByTagName('center');
var iContact = iCentre.item(iCentre.length-1).innerHTML.replace(/^((.+?))?<br\s?\/?><br\s?\/?>((.+?)<br\s?\/?><br\s?\/?>)?/i, '');
var iIcon=iCentre.item(iCentre.length-1).getElementsByTagName('a');
for(a=0;a<iIcon.length;a++){
iIcon.item(a).style.display='none';
}
}
var iLineTr=document.createElement('tr');
var iLeftTd=document.createElement('td');
iLeftTd.className='catbg';
var iRightTd=document.createElement('td');
iRightTd.className='catbg';
iRightTd.innerHTML='<div style="float: left;">'+iContact.replace(/<br\s?\/?>/ig, '')+'</div><div style="float: right;"><a href="javascript: scroll(0, 0)"><img src="'+iArrowImage+'" border="0" /></a></div>';
iLineTr.appendChild(iLeftTd);
iLineTr.appendChild(iRightTd);
iTd.item(i).parentNode.parentNode.insertBefore(iLineTr, iTd.item(i).parentNode.nextSibling);
}
}
}
//-->
</script>
This is the up button that will be used:
You can change it via the URL at the top of the code.
Here is a preview: Click
Cross Browser.
Global Footer.
<script type="text/javascript">
<!--
/*Post Modification - By iAlex - Open Source*/
var iArrowImage="http://img459.imageshack.us/img459/768/iarrowitupforitpleaseqm7.gif"; //Arrow Image
if(location.href.match(/action=(display|(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).align=="left" && iTd.item(i).vAlign=="top" && iTd.item(i).firstChild && !iTd.item(i).firstChild.nodeName.match(/input/i)){
var iContact='';
if(iTd.item(i).innerHTML.match(/member is/)){
var iCentre=iTd.item(i).getElementsByTagName('center');
var iContact = iCentre.item(iCentre.length-1).innerHTML.replace(/^((.+?))?<br\s?\/?><br\s?\/?>((.+?)<br\s?\/?><br\s?\/?>)?/i, '');
var iIcon=iCentre.item(iCentre.length-1).getElementsByTagName('a');
for(a=0;a<iIcon.length;a++){
iIcon.item(a).style.display='none';
}
}
var iLineTr=document.createElement('tr');
var iLeftTd=document.createElement('td');
iLeftTd.className='catbg';
var iRightTd=document.createElement('td');
iRightTd.className='catbg';
iRightTd.innerHTML='<div style="float: left;">'+iContact.replace(/<br\s?\/?>/ig, '')+'</div><div style="float: right;"><a href="javascript: scroll(0, 0)"><img src="'+iArrowImage+'" border="0" /></a></div>';
iLineTr.appendChild(iLeftTd);
iLineTr.appendChild(iRightTd);
iTd.item(i).parentNode.parentNode.insertBefore(iLineTr, iTd.item(i).parentNode.nextSibling);
}
}
}
//-->
</script>