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,813 Views)
King Kovifor
Studip and Smart - At the same time!
 *   *   *  
TidalWave
November 9, 2003 12:41 AM
webworldx
November 6, 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 ;)

If you're only changing the portal link, yeah, but I've got a bunch of other stuff changing with the code Flash77 posted. I took out the "The Moderating Team" link at the bottom of the index as I already have a link to the staff page on my website in the header. I also took out the "Delete cookies" link and changed the "Admin CP" link to "Administration Panel". Then I took out the Mod CP link because the only advantage I see in it, since I have all of the user groups set to "avoid moderation queue", is that you could use it to mass-delete a bunch of posts in the case of a spam attack, and even then, you could just manually type in the the actual URL of the Mod CP.

How do you change it to Administrative Panel or something else?
Offline Profile Quote Post Goto Top
 
AoN
Member
 *   *  
Where do you put the code?
Offline Profile Quote Post Goto Top
 
koreandevil3
Member
 *   *  
nice code... i hate portal. its all screwed up. very simple code too. i can actually understand this code!! most codes dont really make sense to me...
Offline Profile Quote Post Goto Top
 
jawa456
Member Avatar
Member
 *  
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>
Offline Profile Quote Post Goto Top
 
Stefan
Member Avatar
Mew?
 *   *   *   *   *   *   *  
Uhmm.... The second one already works for everyone, so there's hardly any need to combine those two :ermm:
Offline Profile Quote Post Goto Top
 
ELiTE
Member
 *  
Thanks for the code, I hated the portal. Mine was a piece of poo. Always wanted to get rid of it.

Thanks ^__^
Offline Profile Quote Post Goto Top
 
Braves KICK A$$
Member
 *   *  
Scooter22
November 4, 2003 06:11 PM
Who would want to remove this?

i wud too because it makes the forum look better
Offline Profile Quote Post Goto Top
 
StatisticZ
Member
 *  
VOTES for TIDALWAVES... no hate @ 77 but this guys makes it totally disappear...
Offline Profile Quote Post Goto Top
 
dangerousdarren
Member
 *  
Scooter22
November 4, 2003 06:11 PM
Who would want to remove this?

I do. I hate the portal myself. Thanks for this great code :) Been looking for such a code for a while now :)
Offline Profile Quote Post Goto Top
 
Solid Snake2003
Member
 *  
I dont really want to remove it, is it possible to just change the link?
Offline Profile Quote Post Goto Top
 
Brain
Member
 *  
Any way to get rid of calendar?
Offline Profile Quote Post Goto Top
 
Dunno?
Member Avatar
Member
 *   *   *   *   *   *  
XJONX
November 5, 2003 08:40 PM
Quote:
 
Who would want to remove this?

Quote:
 
well some ppl dont want portals on they site :D

I suppose it is useful, but I prefer having a portal, because then it's exactly like owning a proper website.
Offline Profile Quote Post Goto Top
 
Dunno?
Member Avatar
Member
 *   *   *   *   *   *  
Brain
July 16, 2005 11:09 AM
Any way to get rid of calendar?

probably, but if there is I Dunno. :D
Offline Profile Quote Post Goto Top
 
UnholyPrayer
Pravus Millitis
 *   *   *  
I hate the portal. So unorganized and confusing to use.
Offline Profile Quote Post Goto Top
 
Aaron1
Member Avatar
Member
 *   *  
Thanks :D Great code.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · Code Snippets · Next Topic »
Add Reply