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]Easier Forum-Specific Logos!; Also works through topic-links!; By IceMetalPunk
Topic Started: Jan 25 2010, 10:54 AM (138 Views)
Reid
Member Avatar
È una trappola!

This topic has been moved from our official support board.

Originally posted by: IceMetalPunk
[CODE
 
Easier Forum-Specific Logos!; Also works through topic-links!]I got this idea from the topic HERE.

That code if okay, but it requires a copy/paste of 3 lines per logo, it doesn't work if you click a link to a topic without going through the forum first, and it removes the link of the logo.

This code fixes all those problems (I didn't copy/change the code found in the above topic, I just wrote my own from scratch):

Quote:
 
Board Wrappers>>Footer:

Quote:
 
<script language="JavaScript" type="text/JavaScript">
function CustomLogo() {
custom=new Array();
x=0;

custom[x++]=new Array("Forum Number","Logo URL");

for (p=0; p<custom.length; p++) {
loc="";
if (window.location.href.indexOf("showforum=")!=-1) {
loc=window.location.href.split("showforum=")[1];
if (loc.indexOf("&")!=-1) { loc.loc.split("&")[0]; }
}
if (!document.all) { strip=document.getElementById("logostrip"); nav=document.getElementById("navstrip"); }
else { strip=document.all.logostrip; nav=document.all.navstrip; }
if (loc==custom[p][0] || nav.innerHTML.indexOf("act=SF&f="+custom[p][0])!=-1) {
strip.getElementsByTagName("a")[0].getElementsByTagName("img")[0].src=custom[p][1];
}
}
}
</script>


Just copy/paste the bold line as many times as needed, changing the RED text to the forum number (example: This forum is forum number 47), and change the BLUE text to the URL to that forum's specific image. For all the forums you do not use this code on, the default logo will show.

-IMP ;) :)
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Codes & Modifications · Next Topic »
Add Reply