SMF For Free Support Forum
Signup For Free Forum
December 04, 2008, 11:18:54 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to SMF For Free. The best free SMF Host
 
   Home   Help Search Arcade Gallery Login Register  

Pages: [1]
  Print  
Author Topic: [Code] Admin Quickies v3  (Read 650 times)
0 Members and 1 Guest are viewing this topic.
Agent Moose
Moderator
*****
Offline Offline

Posts: 669


Do not PM me for Code Support or Request


View Profile
« on: August 24, 2008, 03:37:24 pm »

Add this to your headers if you don't have it:
Code:
<script src="/jquery.js"></script>

Footers:
Code:
<script>
var Section = new Array(); var Links = new Array(); var n = 0;
Section = ["SECTION NAME 1","SECTION NAME 2"];

Links[n++] = ["SECTION NAME","LINK NAME","URL"];

if($(".maintab_back:contains(Admin)")){
//Created by Agent Moose (8/24/2008)
$(".maintab_back:contains(Admin)").each(function(){$(this).html("<a href='javascript:open_quickies()'>Admin</a>");});
$("#upshrinkHeader2").parent().next().after("<div id='work'></div>");
//Created by Agent Moose (smcodes.smfforfree3.com)
$("#work").after('<div id="admin_quickies" style="display:none; position:absolute;"><table width="200" class="tborder"><tbody><tr class="catbg"><td>Admin Quickies - <a href="javascript:open_quickies();">Close</a></td></tr><span id="Stuff" width="200px"></span></tbody></table></div>');
for(i=0;i<Section.length;i++){
var Name = Section[i];
if(Section[i].match(/ /i)) var ID1 = Section[i].split(" ").join(""); else var ID1 = Section[i];
document.getElementById("Stuff").innerHTML += "<tr class='catbg' width='200px'><td width='200px'>" + Name + "</td></tr><tr class='windowbg' width='200px'><td class='smalltext' style='line-height: 1.3; padding:3px;' id='" + ID1 + "' width='200px'></td></tr>";
for(x=0;x<Links.length;x++){
if(ID1 == Links[x][0].split(" ").join("")) document.getElementById(ID1).innerHTML += "<a href='" + Links[x][2] + "'>" + Links[x][1] + "</a><br />";
};};}; function open_quickies(){$("#admin_quickies").toggle();};
</script>

This code is just like all the other Admin Quickies, but better. Tongue
Unlike the other Admin Quickies code, you can add Your own sections, and links.

SECTION NAME = The Names of the Section.  To add more sections, just add more (,"") (No parentheses)
So, for example, it would be like this:
Code:
Section = ["SECTION NAME 1","SECTION NAME 2","I Add This"];

SECTION NAME = The Name for the section.
LINK NAME = The name for the link.
URL = The URL of that image.

Too add more links, add more of these lines:
Code:
Links[n++] = ["SECTION NAME","LINK NAME","URL"];

Again, Change SECTION NAME to the section you would like the images to be in Smiley


Enjoy Smiley
Logged



SMC Code Index - The best Code Index for all your Needs!  Includes a bunch of codes not on Support.[/cen
Stitch
SMF For Free Full Member
*
Offline Offline

Posts: 216


VMK will always remain in my heart.


View Profile WWW
« Reply #1 on: August 24, 2008, 06:53:15 pm »

cool Smiley a new code Cheesy i like this lemme try it out Smiley
Logged

Spoken
SMF For Free Sr. Member
*
Offline Offline

Posts: 426


Previously known as Colonel Pepsi


View Profile WWW
« Reply #2 on: August 25, 2008, 06:44:41 am »

i cant get it to work... i have <script src="/jquery.js"></script> at the beggining but i still cant get it to work.
Logged

LaundryLady
Global Moderator
*
Offline Offline

Posts: 3083


Multi-Tasking Maven


View Profile
« Reply #3 on: August 25, 2008, 10:26:53 am »

Freerideronline, please post your forum url and the code exactly as you put it in your footers.

We need to see what you have in order to help you.  Unfortunately, "it don't work" doesn't give us anything to go on.

If you still have it in place on your forum, please leave it there so we can see what's going on.
Logged
Spoken
SMF For Free Sr. Member
*
Offline Offline

Posts: 426


Previously known as Colonel Pepsi


View Profile WWW
« Reply #4 on: August 25, 2008, 04:51:54 pm »

http://www.froforums.freesmfhosting.com/

Code:
<script>
var Section = new Array(); var Links = new Array(); var n = 0;
Section = ["Admin","Config","Maintenance","Other"];

Links[n++] = ["Admin","Admin Center","http://froforums.freesmfhosting.com/index.php?action=admin"];
Links[n++] = ["Admin","Edit Forum News","http://froforums.freesmfhosting.com/index.php?action=news"];
Links[n++] = ["Config","Manage Styles","http://froforums.freesmfhosting.com/index.php?action=style;sa=admin;sesc=14523356769ce16630a61b3651ba2f46"];
Links[n++] = ["Config","Headers & Footers","http://froforums.freesmfhosting.com/index.php?action=style;sa=headers"];
Links[n++] = ["Maintenance","Forum Maintenance","http://froforums.freesmfhosting.com/index.php?action=maintain"];
Links[n++] = ["Maintenance","Generate Reports","http://froforums.freesmfhosting.com/index.php?action=reports"];
Links[n++] = ["Other","AddOns","http://froforums.freesmfhosting.com/index.php?action=addons"];
Links[n++] = ["Other","Code Panel","http://froforums.freesmfhosting.com/index.php?action=codepanel"];

if($(".maintab_back:contains(Admin)")){
//Created by Agent Moose (8/24/2008)
$(".maintab_back:contains(Admin)").each(function(){$(this).html("<a href='javascript:open_quickies()'>Admin</a>");});
$("#upshrinkHeader2").parent().next().after("<div id='work'></div>");
//Created by Agent Moose (smcodes.smfforfree3.com)
$("#work").after('<div id="admin_quickies" style="display:none; position:absolute;"><table width="200" class="tborder"><tbody><tr class="catbg"><td>Admin Quickies - <a href="javascript:open_quickies();">Close</a></td></tr><span id="Stuff" width="200px"></span></tbody></table></div>');
for(i=0;i<Section.length;i++){
var Name = Section[i];
if(Section[i].match(/ /i)) var ID1 = Section[i].split(" ").join(""); else var ID1 = Section[i];
document.getElementById("Stuff").innerHTML += "<tr class='catbg' width='200px'><td width='200px'>" + Name + "</td></tr><tr class='windowbg' width='200px'><td class='smalltext' style='line-height: 1.3; padding:3px;' id='" + ID1 + "' width='200px'></td></tr>";
for(x=0;x<Links.length;x++){
if(ID1 == Links[x][0].split(" ").join("")) document.getElementById(ID1).innerHTML += "<a href='" + Links[x][2] + "'>" + Links[x][1] + "</a><br />";
};};}; function open_quickies(){$("#admin_quickies").toggle();};
</script>
Logged

Stitch
SMF For Free Full Member
*
Offline Offline

Posts: 216


VMK will always remain in my heart.


View Profile WWW
« Reply #5 on: August 25, 2008, 05:33:25 pm »

Forum Url: http://disneydreams.smfforfree4.com
Hmm doesnt see to be working for me either i just get a box that says

Main
Admin Quickies [CLOSE]

Here is the code
Code:
<script>
var Section = new Array(); var Links = new Array(); var n = 0;
Section = ["Main","Configuration","Forum","Members","Maintenance"];

Links[n++] = ["Main","Administration Center","http://disneydreams.smfforfree4.com/?action=admin"];
Links[n++] = ["Main","Edit Forum News","http://disneydreams.smfforfree4.com/index.php?action=news"];
Links[n++] = ["Configuration","Custom Profile Fields","http://disneydreams.smfforfree4.com/index.php?action=featuresettings;sa=profile;sesc=2aebfaaa021c1c9e26b29a01d132634f"];
Links[n++] = ["Configuration","Maintinence Mode","http://disneydreams.smfforfree4.com/index.php?action=serversettings;sesc=2aebfaaa021c1c9e26b29a01d132634f"];
Links[n++] = ["Configuration","Headers and Footers","http://disneydreams.smfforfree4.com/index.php?action=style;sa=headers"];
Links[n++] = ["Configuration","Portal Settings","http://disneydreams.smfforfree4.com/index.php?action=portal;sa=admin;sesc=2aebfaaa021c1c9e26b29a01d132634f"];
Links[n++] = ["Forum","Boards","http://disneydreams.smfforfree4.com/index.php?action=manageboards"];
Links[n++] = ["Forum","Smileys","http://disneydreams.smfforfree4.com/index.php?action=smileys"];
Links[n++] = ["Members","Member List","http://disneydreams.smfforfree4.com/index.php?action=viewmembers"];
Links[n++] = ["Members","Member Groups","http://disneydreams.smfforfree4.com/index.php?action=membergroups;"];
Links[n++] = ["Maintenance","Moderation Log","http://disneydreams.smfforfree4.com/index.php?action=modlog"];

if($(".maintab_back:contains(Admin)")){
//Created by Agent Moose (8/24/2008)
$(".maintab_back:contains(Admin)").each(function(){$(this).html("<a href='javascript:open_quickies()'>Admin</a>");});
$("#upshrinkHeader2").parent().next().after("<div id='work'></div>");
//Created by Agent Moose (smcodes.smfforfree3.com)
$("#work").after('<div id="admin_quickies" style="display:none; position:absolute;"><table width="200" class="tborder"><tbody><tr class="catbg"><td>Admin Quickies - <a href="javascript:open_quickies();">Close</a></td></tr><span id="Stuff" width="200px"></span></tbody></table></div>');
for(i=0;i<Section.length;i++){
var Name = Section[i];
if(Section[i].match(/ /i)) var ID1 = Section[i].split(" ").join(""); else var ID1 = Section[i];
document.getElementById("Stuff").innerHTML += "<tr class='catbg' width='200px'><td width='200px'>" + Name + "</td></tr><tr class='windowbg' width='200px'><td class='smalltext' style='line-height: 1.3; padding:3px;' id='" + ID1 + "' width='200px'></td></tr>";
for(x=0;x<Links.length;x++){
if(ID1 == Links[x][0].split(" ").join("")) document.getElementById(ID1).innerHTML += "<a href='" + Links[x][2] + "'>" + Links[x][1] + "</a><br />";
};};}; function open_quickies(){$("#admin_quickies").toggle();};
</script>
Logged

Spoken
SMF For Free Sr. Member
*
Offline Offline

Posts: 426


Previously known as Colonel Pepsi


View Profile WWW
« Reply #6 on: August 25, 2008, 07:16:12 pm »

Ya thats the same thing I get.
Logged

Agent Moose
Moderator
*****
Offline Offline

Posts: 669


Do not PM me for Code Support or Request


View Profile
« Reply #7 on: August 26, 2008, 05:38:40 am »

Ugh.  Darn IE.  Ill see what I can do later.   I just tried to fix it today, but didn't work Sad  Sorry about that.
Logged



SMC Code Index - The best Code Index for all your Needs!  Includes a bunch of codes not on Support.[/cen
Spoken
SMF For Free Sr. Member
*
Offline Offline

Posts: 426


Previously known as Colonel Pepsi


View Profile WWW
« Reply #8 on: August 26, 2008, 09:16:00 am »

Its ok. Take your time.
Logged

Agent Moose
Moderator
*****
Offline Offline

Posts: 669


Do not PM me for Code Support or Request


View Profile
« Reply #9 on: August 26, 2008, 02:53:04 pm »

Ugh.  Well, Im sorry but I don't know what is wrong with it...
Logged



SMC Code Index - The best Code Index for all your Needs!  Includes a bunch of codes not on Support.[/cen
Spoken
SMF For Free Sr. Member
*
Offline Offline

Posts: 426


Previously known as Colonel Pepsi


View Profile WWW
« Reply #10 on: August 26, 2008, 03:06:45 pm »

Ok well since you cant get it to work I will use the old one. I figured out how to add more links and sections with the old one but I wanted to try this one because it looked easier.
Logged



Pages: [1]
  Print  
 
Jump to:  

cheap low cost web hosting reviews

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
ServerBeach Coupon
Page created in 0.428 seconds with 17 queries.