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
Hide Submenu if not logged in; By Viral.
Topic Started: Jan 23 2010, 12:48 AM (97 Views)
Reid
Member Avatar
È una trappola!

This topic has been moved from our official support board.

Originally posted by: Viral.
Hide Submenu if not logged in
 
Name Of Code: Submenu Hide

Description: Hides the submenu if you are not logged in. Useful if you have links like an Arcade that you do not want the guests to see.

Author: Valor (me)

Date Creaated: Today

Preview: [x]

Placement: Footers

Coding:

Code:
 

<script>
if(document.getElementById('userlinks').innerHTML.match(/Welcome Guest/i) != null){
document.getElementById('submenu').style.display = "none"
}
</script>
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Codes & Modifications · Next Topic »
Add Reply