|
Viewing Single Post From: [CODE] Remove Portal
|
|
Flash77
|
Nov 2 2003, 11:20 AM
|
- Posts:
- 3
- Group:
- Members
- Member
- #7,140
- Joined:
- November 2, 2003
|
It removes the portal link, not the portal The link will show up for a second but it will 'vanish' Use it in Skinning & Styles -> Board Wrappers -> Footer
- Code:
-
<script language=javascript> <!-- function change(item,item2) { var range = document.body.createTextRange(); range.collapse(true); if (location.href.indexOf("action=") != -1 ) { return false; } else { while (range.findText(item)) { range.text=item2; range.collapse(false); } } }
change("Portal"," ");
// --> </script>
Some time ago, I made one that works not only in IE, but in Firefox, Netscape, Mozilla for sure, and probably Opera etc. too. Here it is:
- Code:
-
<script type='text/javascript'> <!-- // remove portal link // code by Stefan
e = document.getElementById('submenu') if (e && e.tagName == 'TABLE') { e = e.rows[0].cells[0].getElementsByTagName('A') for(n = 0; n < e.length && !e[n].href.match(/act=site/); n++); if (e[n]){ pnt = e[n].parentNode; for (nod = e[n].previousSibling; nod && nod.tagName != 'A'; nod = nod.previousSibling); for (;nod.nextSibling && nod.nextSibling.tagName != 'A'; pnt.removeChild(nod.nextSibling)); pnt.removeChild(nod.nextSibling) }}
// --> </script>
Admin CP->Board Wrappers->Header & Body, below <% BOARD HEADER %>
Stefan
|
|
|