Post by Cam on Dec 12, 2010 1:50:21 GMT
Code Name
Expandable Admin Section v1
Description
What this will do is when you press a button, it will make a whole admin section appear (the links to everything on the admin panel). This will appear in the menu/nav bar.
Instructions
Put this in the headers of your forum. Edit the orange with the usernames of the people who will be able to see this. NOTE: would be best to make it for you staff team.
Browser Support
I have tested this in:
Chrome WORKED
Firefox WORKED
IE WORKED
Safari WORKED
Code
<script type = 'text/javascript'>
<!--
// Expandable Admin Section v1
// By Luke Mansell
// codercommunity.proboards.com
//For the next bit, you need to put the usernames of the people who can see this.
var staff = /^(admin|mod|mod2)$/;
//Do not edit from now on!
var i = document.getElementsByTagName('td')[5];
if (pb_username.match(staff)) {
function one()
{
i.innerHTML = '<b><a href="/index.cgi"><img src="http://images.proboards.com/new/menu/home.png" alt="[Home]" title="[Home]" border="0"/></a> <a href="/index.cgi?action=newestthreads"><img src="http://s2.images.proboards.com/menu/topics.png" alt="[New Topics]" title="[New Topics]" border="0"/></a> <a href="http://help.proboards.com/"><img src="http://images.proboards.com/new/menu/help.png" alt="[Help]" title="[Help]" border="0"/></a> <a href="/index.cgi?action=search"><img src="http://images.proboards.com/new/menu/search.png" alt="[Search]" title="[Search]" border="0"/></a> <a href="/index.cgi?action=members"><img src="http://images.proboards.com/new/menu/members.png" alt="[Members]" title="[Members]" border="0"/></a> <a href="/index.cgi?action=calendar"><img src="http://images.proboards.com/new/menu/calendar.png" alt="[Calendar]" title="[Calendar]" border="0"/></a> <a href="/index.cgi?action=admin"><img src="http://images.proboards.com/new/menu/admin.png" alt="[Admin]" title="[Admin]" border="0"/></a> <a href="/index.cgi?action=viewprofile"><img src="http://images.proboards.com/new/menu/profile.png" alt="[Profile]" title="[Profile]" border="0"/></a> <a href="/index.cgi?action=logout"><img src="http://images.proboards.com/new/menu/logout.png" alt="[Logout]" title="[Logout]" border="0"/></a> </b> <BR> <p align=left><b>Boards</b> <a href="/index.cgi?action=boardcreate">Create Board</a> | <a href="/index.cgi?action=boarddelete">Delete Board</a> | <a href="/index.cgi?action=boardmodify">Modify Board</a> | <a href="/index.cgi?action=boardmove">Move Board</a> | <a href="/index.cgi?action=boardreorder">Reorder Boards</a> <BR> <b>Categories</b> <a href="/index.cgi?action=categorycreate">Create Category</a> | <a href="/index.cgi?action=categorydelete">Delete Category</a> | <a href="/index.cgi?action=categorymodify">Modify Category</a> | <a href="/index.cgi?action=categoryreorder">Reorder Categories</a> <BR> <b> Maintain your board</b> <a href="/index.cgi?action=recountboards">Recount Board Totals</a> | <a href="/index.cgi?action=deleteforum">Delete This Message Board</a> <BR> <b>Live Chat Settings</b> <a href="/index.cgi?action=aboutlivechat">About Live Chat</a> | <a href="/index.cgi?action=chatsettings">Live Chat Settings</a> <BR> <b>Customize Your Forum</b> <a href="/index.cgi?action=avatars">Avatars</a> | <a href="/index.cgi?action=settings">General Settings</a> | <a href="/index.cgi?action=headersfooters">Headers and Footers</a> | <a href="/index.cgi?action=newsfader">News Fader</a> | <a href="/index.cgi?action=skins">Skins / Forum Colors</a> <BR> <b>Manage Members</b> <a href="/index.cgi?action=ban">Ban Member</a> | <a href="/index.cgi?action=emailall">Email All</a> | <a href="/index.cgi?action=modifyranks">Modify Rankings</a> | <a href="/index.cgi?action=pmall">PM All</a> | <a href="/index.cgi?action=searchmembers">Search Members</a> <BR> <b>Manage Posts</b> <a href="/index.cgi?action=viewreportedposts">View Reported Posts</a> | <a href="/index.cgi?action=attachments">Attachments</a> | <a href="/index.cgi?action=deleteoldposts">Delete Old Posts</a> | <a href="/index.cgi?action=deletespecific">Delete Threads / Posts by Member</a> <BR> <b>Paid Features </b><a href="/index.cgi?action=domains"> Domain Names</a> | <a href="/index.cgi?action=accountusername">Change Forum URL</a> | <a href="/index.cgi?action=adfree">Ad-Free</a> | <a href="/index.cgi?action=purchasecredits">Purchase Credits for Ad-Free</a> <BR> <b>Member Groups</b> <a href="/index.cgi?action=membergroupcreate">Create New Group</a> | <a href="/index.cgi?action=membergroupdelete">Delete Group</a> | <a href="/index.cgi?action=membergroupmodify">Modify Group</a> | <a href="/index.cgi?action=viewsecuritylog">View Security Log</a> <BR> <b>Restrictions</b> <a href="/index.cgi?action=censoredwords">Censored Words</a> | <a href="/index.cgi?action=reservednames">Reserved Names</a> <BR> <b>Forum Analytics</b> <a href="/index.cgi?action=forumstats" target="_blank">Access Analytics</a><BR> <b>Promote Your Forum</b> <a href="/index.cgi?action=forumdirectory">ProBoards Forum Directory</a> | <a href="http://www.proboards.com/blog/?p=51">Want ProBoards to Feature Your Forum?</a></p> ';
}
i.innerHTML += '<BR><a onclick="one()" href="javascript: void(0)">Expand Admin Section</a>';
}
//-->
</script>
Copyright Information
Don't rip, steel etc.
Expandable Admin Section v1
Description
What this will do is when you press a button, it will make a whole admin section appear (the links to everything on the admin panel). This will appear in the menu/nav bar.
Instructions
Put this in the headers of your forum. Edit the orange with the usernames of the people who will be able to see this. NOTE: would be best to make it for you staff team.
Browser Support
I have tested this in:
Chrome WORKED
Firefox WORKED
IE WORKED
Safari WORKED
Code
<script type = 'text/javascript'>
<!--
// Expandable Admin Section v1
// By Luke Mansell
// codercommunity.proboards.com
//For the next bit, you need to put the usernames of the people who can see this.
var staff = /^(admin|mod|mod2)$/;
//Do not edit from now on!
var i = document.getElementsByTagName('td')[5];
if (pb_username.match(staff)) {
function one()
{
i.innerHTML = '<b><a href="/index.cgi"><img src="http://images.proboards.com/new/menu/home.png" alt="[Home]" title="[Home]" border="0"/></a> <a href="/index.cgi?action=newestthreads"><img src="http://s2.images.proboards.com/menu/topics.png" alt="[New Topics]" title="[New Topics]" border="0"/></a> <a href="http://help.proboards.com/"><img src="http://images.proboards.com/new/menu/help.png" alt="[Help]" title="[Help]" border="0"/></a> <a href="/index.cgi?action=search"><img src="http://images.proboards.com/new/menu/search.png" alt="[Search]" title="[Search]" border="0"/></a> <a href="/index.cgi?action=members"><img src="http://images.proboards.com/new/menu/members.png" alt="[Members]" title="[Members]" border="0"/></a> <a href="/index.cgi?action=calendar"><img src="http://images.proboards.com/new/menu/calendar.png" alt="[Calendar]" title="[Calendar]" border="0"/></a> <a href="/index.cgi?action=admin"><img src="http://images.proboards.com/new/menu/admin.png" alt="[Admin]" title="[Admin]" border="0"/></a> <a href="/index.cgi?action=viewprofile"><img src="http://images.proboards.com/new/menu/profile.png" alt="[Profile]" title="[Profile]" border="0"/></a> <a href="/index.cgi?action=logout"><img src="http://images.proboards.com/new/menu/logout.png" alt="[Logout]" title="[Logout]" border="0"/></a> </b> <BR> <p align=left><b>Boards</b> <a href="/index.cgi?action=boardcreate">Create Board</a> | <a href="/index.cgi?action=boarddelete">Delete Board</a> | <a href="/index.cgi?action=boardmodify">Modify Board</a> | <a href="/index.cgi?action=boardmove">Move Board</a> | <a href="/index.cgi?action=boardreorder">Reorder Boards</a> <BR> <b>Categories</b> <a href="/index.cgi?action=categorycreate">Create Category</a> | <a href="/index.cgi?action=categorydelete">Delete Category</a> | <a href="/index.cgi?action=categorymodify">Modify Category</a> | <a href="/index.cgi?action=categoryreorder">Reorder Categories</a> <BR> <b> Maintain your board</b> <a href="/index.cgi?action=recountboards">Recount Board Totals</a> | <a href="/index.cgi?action=deleteforum">Delete This Message Board</a> <BR> <b>Live Chat Settings</b> <a href="/index.cgi?action=aboutlivechat">About Live Chat</a> | <a href="/index.cgi?action=chatsettings">Live Chat Settings</a> <BR> <b>Customize Your Forum</b> <a href="/index.cgi?action=avatars">Avatars</a> | <a href="/index.cgi?action=settings">General Settings</a> | <a href="/index.cgi?action=headersfooters">Headers and Footers</a> | <a href="/index.cgi?action=newsfader">News Fader</a> | <a href="/index.cgi?action=skins">Skins / Forum Colors</a> <BR> <b>Manage Members</b> <a href="/index.cgi?action=ban">Ban Member</a> | <a href="/index.cgi?action=emailall">Email All</a> | <a href="/index.cgi?action=modifyranks">Modify Rankings</a> | <a href="/index.cgi?action=pmall">PM All</a> | <a href="/index.cgi?action=searchmembers">Search Members</a> <BR> <b>Manage Posts</b> <a href="/index.cgi?action=viewreportedposts">View Reported Posts</a> | <a href="/index.cgi?action=attachments">Attachments</a> | <a href="/index.cgi?action=deleteoldposts">Delete Old Posts</a> | <a href="/index.cgi?action=deletespecific">Delete Threads / Posts by Member</a> <BR> <b>Paid Features </b><a href="/index.cgi?action=domains"> Domain Names</a> | <a href="/index.cgi?action=accountusername">Change Forum URL</a> | <a href="/index.cgi?action=adfree">Ad-Free</a> | <a href="/index.cgi?action=purchasecredits">Purchase Credits for Ad-Free</a> <BR> <b>Member Groups</b> <a href="/index.cgi?action=membergroupcreate">Create New Group</a> | <a href="/index.cgi?action=membergroupdelete">Delete Group</a> | <a href="/index.cgi?action=membergroupmodify">Modify Group</a> | <a href="/index.cgi?action=viewsecuritylog">View Security Log</a> <BR> <b>Restrictions</b> <a href="/index.cgi?action=censoredwords">Censored Words</a> | <a href="/index.cgi?action=reservednames">Reserved Names</a> <BR> <b>Forum Analytics</b> <a href="/index.cgi?action=forumstats" target="_blank">Access Analytics</a><BR> <b>Promote Your Forum</b> <a href="/index.cgi?action=forumdirectory">ProBoards Forum Directory</a> | <a href="http://www.proboards.com/blog/?p=51">Want ProBoards to Feature Your Forum?</a></p> ';
}
i.innerHTML += '<BR><a onclick="one()" href="javascript: void(0)">Expand Admin Section</a>';
}
//-->
</script>
Copyright Information
Don't rip, steel etc.