Post by hpmad on Jun 9, 2006 7:07:46 GMT -8
(yes I know Ross made the same code but I just realized this when I finished it)
Description:
Shows the member's current skin in their mini profile. Note: the user must modify their profile first in order for this to show up.
Global Footer:
<script type="text/javascript">
<!--
/* Current Skin in Mini Profile by hpmad
Do not repost or modify without permission from creator
For more codes like this one go to: talkpark.proboards.com */
var asd = 'Current Skin: ';
if(document.modifyForm && document.modifyForm.skin){
if(document.modifyForm.personaltext.value.match(/%%(.+?)%%/))
document.modifyForm.personaltext.value = document.modifyForm.personaltext.value.replace(/%%(.+?)%%/i,'');
document.modifyForm.onsubmit = function(){
var sknname = document.modifyForm.skin.options[document.modifyForm.skin.selectedIndex].innerHTML;
if(document.modifyForm.personaltext.value.match(/%%(.+?)%%/)){
document.modifyForm.personaltext.value = document.modifyForm.personaltext.value.replace(/%%(.+?)%%/,'%%'+sknname+'%%');
}else{
document.modifyForm.personaltext.value += '%%'+sknname+'%%';
}
}
}
var td = document.getElementsByTagName('td');
var lc = /(action=(viewprofile|display|pmview|search2|recent|calendarview|userrecentposts)|index.cgi$)/i
if(location.href.match(lc)){
for(i=0;i<td.length;i++){
if(td.className.match(/windowbg/) && td.vAlign=='top' && td.width=='20%'){
var grbskin = td.getElementsByTagName('center')[0].innerHTML.match(/%%(.+?)%%/) ? RegExp.$1:false;
td.innerHTML = td.innerHTML.replace(/%%(.+?)%%/,'');
td.innerHTML += grbskin ? '<br />'+asd+grbskin:'';
}
}
}
//-->
</script>
Description:
Shows the member's current skin in their mini profile. Note: the user must modify their profile first in order for this to show up.
Global Footer:
<script type="text/javascript">
<!--
/* Current Skin in Mini Profile by hpmad
Do not repost or modify without permission from creator
For more codes like this one go to: talkpark.proboards.com */
var asd = 'Current Skin: ';
if(document.modifyForm && document.modifyForm.skin){
if(document.modifyForm.personaltext.value.match(/%%(.+?)%%/))
document.modifyForm.personaltext.value = document.modifyForm.personaltext.value.replace(/%%(.+?)%%/i,'');
document.modifyForm.onsubmit = function(){
var sknname = document.modifyForm.skin.options[document.modifyForm.skin.selectedIndex].innerHTML;
if(document.modifyForm.personaltext.value.match(/%%(.+?)%%/)){
document.modifyForm.personaltext.value = document.modifyForm.personaltext.value.replace(/%%(.+?)%%/,'%%'+sknname+'%%');
}else{
document.modifyForm.personaltext.value += '%%'+sknname+'%%';
}
}
}
var td = document.getElementsByTagName('td');
var lc = /(action=(viewprofile|display|pmview|search2|recent|calendarview|userrecentposts)|index.cgi$)/i
if(location.href.match(lc)){
for(i=0;i<td.length;i++){
if(td.className.match(/windowbg/) && td.vAlign=='top' && td.width=='20%'){
var grbskin = td.getElementsByTagName('center')[0].innerHTML.match(/%%(.+?)%%/) ? RegExp.$1:false;
td.innerHTML = td.innerHTML.replace(/%%(.+?)%%/,'');
td.innerHTML += grbskin ? '<br />'+asd+grbskin:'';
}
}
}
//-->
</script>