October 22, 2018, 01:13:52 pm
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to Revolution X, where Coding meets Graphics.
 
  Home Help Search Arcade Affiliates Staff List Calendar Members Login Register  

Save Headers/Footers to Admin Notepad Button

Pages: [1]   Go Down
  Print  
Author Topic: Save Headers/Footers to Admin Notepad Button  (Read 513 times)
Agent Moose
Administrator
Adminitrator
Offline Offline

Gender: Male
Posts: 1,470



View Profile WWW
Badges: (View All)
« on: November 23, 2009, 03:21:07 pm »

Footers:
Code:
<script type="text/javascript">
//Created by Agent Moose (http://www.revolution-x.org)
$("input[name*='cmdS']").after(" <input type='button' id='Save2ANotes' value='Save Headers/Footers to Admin Notepad' />"); (document.getElementById("Save2ANotes")) ? document.getElementById("Save2ANotes").onclick = function(){$.post(smf_scripturl + "?action=savenote",{txtnotes: "HEADERS:\n" + $('[name*=txth]').val() + "\n\nFOOTERS:\n" + $('[name*=txtf]').val()}); document.forms[3].submit();} : void(0);
</script>

NOTE:  This code uses Ad Free Credits!

The title says it all.  This adds a button next to the "Save Headers Footers" button labeled "Save Headers/Footers to Admin Notepad".  It's pretty much a way to backup your headers and footers with the press of a button Smiley

When you click the button, it saves the Headers and Footers, and it saves all the information you have in them into the Admin Notepad.

Enjoy Smiley

« Last Edit: March 25, 2011, 11:53:07 pm by Agent Moose » Report Spam   Logged


Social Buttons

xboi209
Exclusive
Exclusive
Offline Offline

Gender: Male
Posts: 235


View Profile WWW
Badges: (View All)
« Reply #1 on: November 24, 2009, 05:13:56 pm »

does it add it onto the admin notes or replace whatever is in it?
Report Spam   Logged
Agent Moose
Administrator
Adminitrator
Offline Offline

Gender: Male
Posts: 1,470



View Profile WWW
Badges: (View All)
« Reply #2 on: November 24, 2009, 05:17:21 pm »

Replaces with whats ever in it.  If I made it add to it, i would need to get the information thats in it, meaning it would take more ad credits that it already does.
Report Spam   Logged


xboi209
Exclusive
Exclusive
Offline Offline

Gender: Male
Posts: 235


View Profile WWW
Badges: (View All)
« Reply #3 on: November 25, 2009, 10:38:42 am »

lmao this would almost be what i did with the moderator center except the user can replace anything in the admin notes with anything they want.
(i stopped using it because i noticed it replaced whatever was in it)
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