Post by Ross on Oct 15, 2005 14:20:04 GMT -8
Main Footer
What this does is add the option of adding extra stars to the drop down 'star' menu when creating or modifying groups. Edit the red with the star URLs and the Blue with their names so that you can recognise which star is which. Repeat the pattern (increasing the green number by one) for more stars
Note: The same effect can also be achieved using the instructions here
<script type="text/javascript">
<!--
/* extra star set when modifying/creating groups by ross */
var theStars=[];
theStars[0]=["URL","Name"];
theStars[1]=["URL","Name"];
theStars[2]=["URL","Name"];
// no need to edit below
if(location.href.match(/action=membergroup(modify2|create)$/))
{
for(j=0; j<theStars.length; j++) {
var op = document.createElement('option');
op.value = theStars[j][0];
op.appendChild(document.createTextNode(theStars[j][1]));
document.memberGroupForm.starurl.appendChild(op); }
function changeStar() {
start = (document.memberGroupForm.starurl.value.match(/http:/i))? '' : 'http://www.proboards.com/v4images/';
document.images.star.src = start +document.memberGroupForm.starurl.value;
}
document.memberGroupForm.starurl.onkeyup = function(){ changeStar(); }
document.memberGroupForm.starurl.onchange = function(){ changeStar(); }
document.memberGroupForm.onsubmit = function() {
if(document.memberGroupForm.starurl.value.match(/http:/)) {
document.memberGroupForm.name.value+='\[br\]';
for(l=0; l<parseInt(document.memberGroupForm.starnum.value); l++) {
document.memberGroupForm.name.value+='\[img\]'+document.memberGroupForm.starurl.value+'\[\/img\]';
}
document.memberGroupForm.starnum.value="0";
}
}
}
var option = document.getElementsByTagName('option')
for(i=0; i<option.length; i++)
if(option.innerHTML.match(/\[img\]/))
option.innerHTML = option.innerHTML.replace(/\[img\](.+?)\[\/img\]/gi,'').replace(/\[br\]/gi,'');
//-->
</script>
What this does is add the option of adding extra stars to the drop down 'star' menu when creating or modifying groups. Edit the red with the star URLs and the Blue with their names so that you can recognise which star is which. Repeat the pattern (increasing the green number by one) for more stars
Note: The same effect can also be achieved using the instructions here
<script type="text/javascript">
<!--
/* extra star set when modifying/creating groups by ross */
var theStars=[];
theStars[0]=["URL","Name"];
theStars[1]=["URL","Name"];
theStars[2]=["URL","Name"];
// no need to edit below
if(location.href.match(/action=membergroup(modify2|create)$/))
{
for(j=0; j<theStars.length; j++) {
var op = document.createElement('option');
op.value = theStars[j][0];
op.appendChild(document.createTextNode(theStars[j][1]));
document.memberGroupForm.starurl.appendChild(op); }
function changeStar() {
start = (document.memberGroupForm.starurl.value.match(/http:/i))? '' : 'http://www.proboards.com/v4images/';
document.images.star.src = start +document.memberGroupForm.starurl.value;
}
document.memberGroupForm.starurl.onkeyup = function(){ changeStar(); }
document.memberGroupForm.starurl.onchange = function(){ changeStar(); }
document.memberGroupForm.onsubmit = function() {
if(document.memberGroupForm.starurl.value.match(/http:/)) {
document.memberGroupForm.name.value+='\[br\]';
for(l=0; l<parseInt(document.memberGroupForm.starnum.value); l++) {
document.memberGroupForm.name.value+='\[img\]'+document.memberGroupForm.starurl.value+'\[\/img\]';
}
document.memberGroupForm.starnum.value="0";
}
}
}
var option = document.getElementsByTagName('option')
for(i=0; i<option.length; i++)
if(option.innerHTML.match(/\[img\]/))
option.innerHTML = option.innerHTML.replace(/\[img\](.+?)\[\/img\]/gi,'').replace(/\[br\]/gi,'');
//-->
</script>