Welcome Guest [Log In] [Register]
We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
[CODE] Remove Portal; A little code to remove the portal link
Topic Started: Nov 2 2003, 11:20 AM (18,785 Views)
copycat136
Member Avatar
Copy Copy Copy
 *   *  
yeah its a Great code!
Offline Profile Quote Post Goto Top
 
ldylvsroses
Member
 *  
TidalWave
Works great-Thanks
Offline Profile Quote Post Goto Top
 
Izzet
Member
 *   *  
jawa456
April 7, 2005 12:03 AM
I took 2 of the codes on this topic and combined them so they aren't mine.
It is so the codes works for everyone viewing the forum.

Use this:
(It works for every browser, mostly)

PUT IT IN "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>
<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>

Thanks mate, this code actually worked for me unlike the previous ones.
Offline Profile Quote Post Goto Top
 
Snowdome
Member
 *  
How do I put text where the link to Portal Is?
Offline Profile Quote Post Goto Top
 
Drew.
Member Avatar
falling up
 *   *  
Is there a way to put it in the CSS?
Offline Profile Quote Post Goto Top
 
dudez12
Member
 *  
jawa456
April 7, 2005 12:03 AM
I took 2 of the codes on this topic and combined them so they aren't mine.
It is so the codes works for everyone viewing the forum.

Use this:
(It works for every browser, mostly)

PUT IT IN "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>
<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>

This code worked 100% perfectly!
Offline Profile Quote Post Goto Top
 
T2GG
Member
 *  
Cool beans,I hate the portal and its were my dumb ass members constantly get stuck and have to retype the URL because the cant figure out how to exit
Offline Profile Quote Post Goto Top
 
slaytanist
Member Avatar
Dread Lamer
 *   *   *   *   *  
Works great. Cheers!
Offline Profile Quote Post Goto Top
 
xwrestling
Member
 *   *  
LINK

http://s9.invisionfree.com/X_Wrestling_Fans/index.php?

Can You Remove That Entire Bar & Links,
Because, I Have My Own Menu.
Offline Profile Quote Post Goto Top
 
TorontoSportsFan23
Member
 *  
GREAT CODE, just what I needed.
Offline Profile Quote Post Goto Top
 
::RenRen::
Member Avatar
Member
 *  
Is there a way to change the dot in front of the link to my one of my own images?
Offline Profile Quote Post Goto Top
 
Lukeirado
Member
 *   *  
You can't remove ads, if you try to do so, your board will be deleted.

People remove the Portal link because sometimes they don't really change the portal and stuff, so when a guest clicks on the Portal link, it would be pretty messy. Sometimes you just want to have room for some links.
Offline Profile Quote Post Goto Top
 
g1ggy
Member Avatar
My other account is an admin
 *   *   *  
James
November 6, 2003 10:15 AM
Code:
 

<script language=javascript>
<!--
var range = document.body.createTextRange();
range.collapse(true);
while (range.findText("· Portal")) {
range.text="";
range.collapse(false);
}
// -->
</script>


Would do the same thing and takes up a lot less space ;)

Didn't work :(

Stephen's did though, yay!
Offline Profile Quote Post Goto Top
 
nao_shines
Member
 *  
None of these codes worked for me and I'm getting frustrated...
I want to get rid of the "Portal" bar with the 'help', 'members'...and also the "Logged in as:..." < because I have it underneath my banner now...Though it's not working properly...

Someone help me please! :(
Offline Profile Quote Post Goto Top
 
stargirlyxxx
Member Avatar
~ Bad Wolf ~
 *   *  
if you want rid of that: add the following to ur CSS
Code:
 

#submenu, #submenu img { display: none; }
#submenu a:link, #submenu a:visited , #submenu a:active, #submenu a:hover { display: none; }


this will work in both IE and FF
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Code Snippets · Next Topic »
Add Reply