Welcome Guest [Log In] [Register]



Add Reply
Change or Remove Reply button; request from iFusion
Topic Started: Jun 29 2006, 09:07 PM (201 Views)
ari_aaron
Member Avatar
1a4
Root Administrator
Here is a code that was requested. I wasn't sure what he wanted, so I made both:
Quote:
 

<script>
/*
Remove Reply Button
©2006 by ari_aaron
*/

var newh = '<a href="http://XX.invisionfree.com/ForumName/index.php?act=Post&amp;CODE=00&amp;f=1" title="Start a new topic"><img src="http://67.18.37.14/style_images/1/t_new.gif" alt="" border="0"></a><a href="http://zXX.invisionfree.com/ForumName/index.php?act=Post&amp;CODE=10&amp;f=1"><img src="http://67.18.37.14/style_images/1/t_poll.gif" alt="" border="0"></a>'
if(location.href.match("showtopic=")
{
if(document.getElementById('navstrip').innerHTML.match(Forums))
{
document.getElementsByTagName('table')[2].rows[0].cells[1].innerHTML=newh
tt=document.getElementsByTagName('table').length
document.getElementsByTagName('table')[tt-1].rows[0].cells[1].innerHTML=newh
}
}
</script>


Ok, replace the Xs with the server number, the ForumName with the name (in the URL), and replace the blue with the forums you want to use it for. Do it in quotes, seperated by pipes.
E.g.:
"Community"|"Questions"|"Other"

If you need to replease it, use:
Quote:
 

<script>
/*
Change Reply Button
©2006 by ari_aaron
*/

var newh = '<a href="http://XX.invisionfree.com/ForumName/index.php?act=Post&amp;CODE=02&amp;f=3&amp;t=6"><img src="Image Path Here" alt="" border="0"></a><a href="http://XX.invisionfree.com/ForumName/index.php?act=Post&amp;CODE=00&amp;f=1" title="Start a new topic"><img src="http://67.18.37.14/style_images/1/t_new.gif" alt="" border="0"></a><a href="http://zXX.invisionfree.com/ForumName/index.php?act=Post&amp;CODE=10&amp;f=1"><img src="http://67.18.37.14/style_images/1/t_poll.gif" alt="" border="0"></a>'
if(location.href.match("showtopic=")
{
if(document.getElementById('navstrip').innerHTML.match(Forums))
{
document.getElementsByTagName('table')[2].rows[0].cells[1].innerHTML=newh
tt=document.getElementsByTagName('table').length
document.getElementsByTagName('table')[tt-1].rows[0].cells[1].innerHTML=newh
}
}
</script>


Replace the green with the image path.

Origanal Request: http://s9.invisionfree.com/iFusion/index.php?showtopic=9566

My msn: Posted Image
Posted Image
If anyone wants GMail or Windows Live Messenger invites, PM me!
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · InvisionFree Scripts · Next Topic »
Add Reply


Theme designed by Sith of Outline