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
Merge User/Main Menu Together; By Zero Tolerance
Topic Started: Jan 25 2010, 09:15 AM (68 Views)
Reid
Member Avatar
È una trappola!

This topic has been moved from our official support board.

Originally posted by: Zero Tolerance
Merge User/Main Menu Together
 
With this code the user menu (Displays Logged In As: user) will merge together with the main menu (Displays Help/Calendar etc...)

Simply add underneath <% NAVIGATION %> in your Header & Body section.

Code:
 
<script>
// Merge User/Main Menu - Leave Copyright Intact Wherever Used
// Created For Invision Free
// Author: Zero Tolerance © Game Zone | Evolution 2004 [http://gzevolution.net]

UserMenuA = document.getElementById('userlinks').getElementsByTagName('td')[0].innerHTML
UserMenuB = document.getElementById('userlinks').getElementsByTagName('td')[1].innerHTML

Row = document.getElementById('submenu').insertRow(-1)
Cell = Row.insertCell(-1)
Cell.innerHTML = UserMenuA
CellB = Row.insertCell(-1)
CellB.innerHTML = UserMenuB
CellB.align = 'right'

document.getElementById('userlinks').parentNode.removeChild(document.getElementById('userlinks'))
</script>


Enjoy,

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