Cam!
VIP
[M:5000]
Posts: 780
|
Post by Cam! on Apr 4, 2011 2:03:15 GMT
OPEN SOURCE
Title: Remove "Login" From Menu. Placement: Global Header. Instructions: No editing is required, just copy and paste the exact code below, and put it in your Global Header. Works like a charm! Code:
<script type="text/javascript">
var mLink = document.getElementsByTagName ("a"); for (var a = 0, l = mLink.length; a < l; a ++) { if (mLink.item (a).href.match (/action=login/i)) { mLink.item (a).parentNode.removeChild (mLink.item (a).nextSibling); mLink.item (a).parentNode.removeChild (mLink.item (a)); break; } }
</script>
|
|
Nick
VIP
v5 Beta Tester[M:5000]
Philadelphia Eagles: 8-8
Posts: 2,239
|
Post by Nick on Apr 4, 2011 4:35:06 GMT
You should merge all of your remove codes into one and have one master list of variables to hold a True or False if the button is displayed.
|
|
Cam!
VIP
[M:5000]
Posts: 780
|
Post by Cam! on Apr 4, 2011 21:44:12 GMT
You should merge all of your remove codes into one and have one master list of variables to hold a True or False if the button is displayed. I know. I'll try to figure it out when I can.
|
|
Nick
VIP
v5 Beta Tester[M:5000]
Philadelphia Eagles: 8-8
Posts: 2,239
|
Post by Nick on Apr 4, 2011 21:58:24 GMT
You should merge all of your remove codes into one and have one master list of variables to hold a True or False if the button is displayed. I know. I'll try to figure it out when I can. I cpuld do it. I guess its open spurce, right?
|
|
Cam!
VIP
[M:5000]
Posts: 780
|
Post by Cam! on Apr 4, 2011 23:03:07 GMT
I know. I'll try to figure it out when I can. I cpuld do it. I guess its open spurce, right? Correct, Nick.
|
|
edenwax
VIP
v5 Beta Tester[M:5000]
Posts: 1,266
|
Post by edenwax on Apr 5, 2011 6:47:25 GMT
Bahaha open spurce.
|
|
Cam!
VIP
[M:5000]
Posts: 780
|
Post by Cam! on Apr 5, 2011 21:24:22 GMT
Yes. I am not a coder. When they first added the "New Topics" menu button, lots of people wanted it removed. So, of course, a code was made to remove it. I used that to make it for all of the menu buttons. I'll I had to do was make like a couple edits.
|
|
Nick
VIP
v5 Beta Tester[M:5000]
Philadelphia Eagles: 8-8
Posts: 2,239
|
Post by Nick on Apr 5, 2011 23:53:43 GMT
Yes. I am not a coder. When they first added the "New Topics" menu button, lots of people wanted it removed. So, of course, a code was made to remove it. I used that to make it for all of the menu buttons. I'll I had to do was make like a couple edits. Yeah. That new topics button threw off a lot of premade skins
|
|