Cam!
VIP
[M:5000]
Posts: 780
|
Post by Cam! on Apr 4, 2011 2:02:25 GMT
OPEN SOURCE
Title: Remove "Logout" 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=logout/i)) { mLink.item (a).parentNode.removeChild (mLink.item (a).nextSibling); mLink.item (a).parentNode.removeChild (mLink.item (a)); break; } }
</script>
|
|
Cam
Administrator
[M:5000]
Posts: 6,381
|
Post by Cam on Apr 4, 2011 2:18:08 GMT
NOT ACCEPTED Comment: Hello,
I believe there is a rule stating that you can not hide the Logout button from members due to, they may need to logout. I will check up on this though.
Thanks.
|
|
Cam!
VIP
[M:5000]
Posts: 780
|
Post by Cam! on Apr 4, 2011 2:24:24 GMT
Even if there is a rule that states that, I could just add a message to the first post that says that you must add it elsewhere if you remove it, and it still must show globally.
|
|