DIR Return Create A Forum - Home
---------------------------------------------------------
Create A Forum - Support Forums
HTML https://support.createaforum.com
---------------------------------------------------------
*****************************************************
DIR Return to: Create a Forum Codes and Support
*****************************************************
#Post#: 512--------------------------------------------------
[Code] Add links to Admin Dropdown
By: Agent Moose Date: August 2, 2010, 10:11 am
---------------------------------------------------------
Footers: (Admin > Style Manager > Headers and Footers > Footers)
[code]<script type="text/javascript">
function AdminLinks(Name, URL){
//Created by Agent Moose
if(document.getElementById("button_admin") !== null)
document.getElementById("button_admin").getElementsByTagName("ul
")[0].innerHTML
+= "<li><a href='" + URL + "'><span>" + Name +
"</span></a></li>";
};
AdminLinks("Style
Manager","/?action=admin;area=style;sa=headers");
AdminLinks("NAME","URL");
</script>[/code]
NAME = The Name of the link
URL = The URL of the link.
This code lets you add links to the Admin drop down menu :)
The link that is already added is just an example, you may
remove it if you wish.
To add more links, add more of these lines:
[code]AdminLinks("NAME","URL");[/code]
Enjoy :)
#Post#: 513--------------------------------------------------
Re: [Code] Add links to Admin Dropdown
By: Fate Date: August 2, 2010, 10:35 am
---------------------------------------------------------
Very nice. ;)
#Post#: 23317--------------------------------------------------
Re: [Code] Add links to Admin Dropdown
By: mickjav Date: July 9, 2020, 2:22 am
---------------------------------------------------------
Thanks Works A treat.
I've edited the function so I can add items to the profile list
but have one problem the member ID I know I can use this in the
newletter section {$member.id} but think it would mess with the
function but not sure as haven't played with this stuff for 15
years.
regards mick
*****************************************************