Welcome Guest [Log In] [Register]



Add Reply
Ask An Admin; show only own topics
Topic Started: Jun 29 2006, 09:06 PM (315 Views)
ari_aaron
Member Avatar
1a4
Root Administrator
I made this one for a request on iFusion (see associates). It makes it so members can start topics, and only they and the admin can see them.
Code:
 

<script>
/*
Ask An Admin Forum v2
©2006 by ari_aaron
*/
if(location.href.match("showforum=3"))
   {
   if(document.
getElementById('userlinks').innerHTML.match("Admin CP"))
       {
       document.write("You are an Admin! You can view all topics.")
         exit()
       }
   var uname = document.getElementById('userlinks').getElementsByTagName('A')[0].innerHTML
var x=document.getElementsByTagName('table')[3]
   for(i=1;i!=x.rows.length;i++)
       {
       if(x.rows[i].cells[3].innerHTML.match(uname)==null)
           {
                 x.rows[i].style.display="none"
           }
       }
   }
</script>

Please comment.

My msn: Posted Image
Posted Image
If anyone wants GMail or Windows Live Messenger invites, PM me!
Offline Profile Quote Post Goto Top
 
fjaw

Members
That is SO useful! NICE!
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