Simple Machine Codes

Forum Coding => SMF For Free Codes => Topic started by: Agent Moose on October 12, 2007, 08:43:43 pm



Title: Add Extra ACP Sections V2
Post by: Agent Moose on October 12, 2007, 08:43:43 pm
Footers:
Code:
<script>
var acp_loc = [];var acp_loc=["admin","ban","maintain","reports","regcenter","permissions","membergroups","viewmembers","manageattachments","smileys","managesearch","managecalender","postsettings","manageboards","directory","living","welcome","arcadeadmin","theme","style"];
function acp_sections(title,content) {
$(function() {
//Created by Agent Moose (smcodes.smfforfree3.com)
for(i=0;i<acp_loc.length;i++){
if (location.href.match("action="+acp_loc[i])){
$("td[width='150'] table.bordercolor:contains(Maintenance)").prepend("<tr><td class='catbg'>"+title+"</td></tr><tr class='windowbg2'><td class='smalltext' style='line-height: 1.3; padding-bottom: 3ex;'>"+content+"</td></tr>")
};};});};
acp_sections("TITLE","CONTENT")
</script>

It has been awhile since I have accually created a Javascript/JQuery code.  So here ya go!  This is just like the first version, but it adds the boxes on the left side on almost every part of the ACP.

TITLE = The title of the box
CONTENT = The text/HTML that will be used in that box.

To add more boxes, add more of these lines:
acp_sections("TITLE","CONTENT")


Title: Re: Add Extra ACP Sections V2
Post by: trevix on November 08, 2007, 06:45:24 pm
i give this code  O0


Title: Re: Add Extra ACP Sections V2
Post by: Agent Moose on November 08, 2007, 06:58:55 pm
Glad ya like :)


Title: Re: Add Extra ACP Sections V2
Post by: Agent Moose Jr. on December 29, 2007, 09:29:44 pm
whats acp??


Title: Re: Add Extra ACP Sections V2
Post by: Agent Moose Jr. on December 29, 2007, 09:36:09 pm
nice code but its freaking confusing


Title: Re: Add Extra ACP Sections V2
Post by: legend 1234 on April 02, 2008, 01:55:38 am
yea wats a acp ?

and were does this go after u added it lol

i dont see anything new after i added it ?

legend 1234


Title: Re: Add Extra ACP Sections V2
Post by: Agent Moose on April 02, 2008, 02:34:34 pm
The ACP would the the Admin control Panel.  Which would also be where you do when you click on the Admin Tab.