Simple Machine Codes
December 15, 2018, 04:33:17 pm
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to SMC, the best place for your SMF For Free Codes
 
  Home Help Search Arcade Gallery Affiliates Code Index Staff List Calendar Members Login Register  

Add Extra ACP Sections V2

Pages: [1]   Go Down
  Print  
Author Topic: Add Extra ACP Sections V2  (Read 1552 times)
Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,672



View Profile WWW
« 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")
Report Spam   Logged

trevix
Newcomers!

Offline Offline

Posts: 1


View Profile
« Reply #1 on: November 08, 2007, 06:45:24 pm »

i give this code  Afro
Report Spam   Logged
Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,672



View Profile WWW
« Reply #2 on: November 08, 2007, 06:58:55 pm »

Glad ya like Smiley
Report Spam   Logged

Agent Moose Jr.
Ultra Contagious
Global Moderator

Offline Offline

Gender: Male
Posts: 1,045



View Profile WWW
« Reply #3 on: December 29, 2007, 09:29:44 pm »

whats acp??
Report Spam   Logged

Newest:

Agent Moose Jr.
Ultra Contagious
Global Moderator

Offline Offline

Gender: Male
Posts: 1,045



View Profile WWW
« Reply #4 on: December 29, 2007, 09:36:09 pm »

nice code but its freaking confusing
Report Spam   Logged

Newest:

legend 1234
100 Club Member

Offline Offline

Gender: Male
Posts: 461


Legend 1234


View Profile WWW
« Reply #5 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
Report Spam   Logged

Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,672



View Profile WWW
« Reply #6 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.
Report Spam   Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum | Buy traffic for your forum/website

Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy