Support Forums / Tips & tricks / Archives / 03-31-2006 / For SDN

Topic: For SDN
October 21st, 2005 05:25 PM
WolfEyes I'm having a minor problem with a Report to Admin script. The script is working fine except for the fact that the link is also showing up in the statistics box but only AFTER logging in. It does not show up in the statistics box before logging in.


Catchow tried to help me with this on this thread:

http://excoboard.com/exco/thread.php?forumid=36442&threadid=361521


I've tried it on other boards with the same result. I even tried it on one board without adding any other scripts with custom templates enabled and placing the script under Page Footer. I've also tried putting it in under the footer on Feature Setting. All with the same result of the link showing up in the statistics box.


This is the script and if you need to register on my board to help me with this just click on my sig.


<script language="javascript">

<!--

/* Created by sdn (http://www.excoboard.com/exco/index...hp?boardid=1302)

Upgraded by Sage (http://s2.excoboard.com/exco/index....hp?boardid=1819) */




/*Put this in your footer.*/



var A_tds = document.getElementsByTagName('td')



for (i=0;i<A_tds.length;i++) {

if (A_tds[i].width == "100%" && A_tds[i].className == "FirstAlt" && A_tds[i].innerHTML.indexOf('user.php?') != -1) {

A_tds[i].innerHTML += '<span class="NormalText"><br><a href="http://s2.excoboard.com/exco/pm.php?action=message&boardid=3984&inst=104342"target="_self">Report Post to Admin</a></span>'

}

}

for (i=0;i<A_tds.length;i++) {

if (A_tds[i].width == "100%" && A_tds[i].className == "SecondAlt" && A_tds[i].innerHTML.indexOf('edit.php?') != -1) {

A_tds[i].innerHTML += '<span class="NormalText"><br><a href="http://s2.excoboard.com/exco/pm.php?action=message&boardid=3984&inst=104342"target="_self">Report Post to Admin</a></span>'

}

}

//-->
</script>





Also would it be possible to add a spoiler tag that can be used by members?
October 21st, 2005 09:46 PM
sdn I don't even remember writing that one, but it must have been before the template system was introduced... I think the best bet is to get Sage's template mod and abandon this script.
October 21st, 2005 09:53 PM
Sage yeah...that script is kinda messed up :( Template mods are the best bet :)
October 22nd, 2005 12:01 AM
Catchow
Quote:
sdn wrote:
I don't even remember writing that one, but it must have been before the template system was introduced... I think the best bet is to get Sage's template mod and abandon this script.


Which template mod would that be? And where might one find it? *wanders off to Sage's board*
October 22nd, 2005 12:09 AM
Catchow *considers spamming both boys boards after finding nothing useful at either board*
October 22nd, 2005 12:18 AM
WolfEyes I didn't see it either. Then again I find the orange text on the green background difficult to read.....
October 22nd, 2005 12:22 AM
Catchow Me too! I highlighted it to read it.
October 22nd, 2005 01:33 AM
sdn Ask Sage. :) I remember him having something like this, I just don't know where.