March 29, 2024, 01:45:11 am
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  

Request a Category

Pages: [1]   Go Down
  Print  
Author Topic: Request a Category  (Read 365 times)
0 Members and 1 Guest are viewing this topic.
Andrew
Exclusive
Exclusive
Offline Offline

Gender: Male
Posts: 539



View Profile WWW
Badges: (View All)
Combination Topic Starter Poll Voter
« on: April 11, 2009, 09:26:26 am »

Just like Moose's Request a board code.

Insert this code to your footers:

Quote
<script>
var RequestInfo = "You said you would like to request a category, please state the category it will go below, then a brief purpose for the category:";

if(location.href.match(/other=RequestCategory/i)){
//Code created by Andrew
document.title = "Requesting Categories(s)";
$("#bodyarea").after("<br><div class='tborder'><div class='catbg' style='padding: 6px; vertical-align: middle; text-align: center; '>Requesting Categories(s)</div><div><table border='0' width='100%' cellspacing='1' cellpadding='4' class='bordercolor'><tr><td class='windowbg2'>" + RequestInfo + "</td></tr><tr><td class='windowbg2' width='100%'><center><text" + "area cols='100%' rows='5' id='Categories'></tex" + "tarea></center></td></tr><tr><td class='windowbg2'><center><input type='button' onClick='Request();' value='Send Request'/></center></td></tr></table></div></div><br><center><span class='smalltext'>Created by Agent Moose<br><a href='http://revolutionx.smfforfree3.com'>Revolution X</a></span></center><br>");
$("input[name='subject']").val("Requesting Category");
$("#bodyarea").hide();
};
function Request(){
if(confirm("Are you sure you want to request this Category?") == true){
$("textarea[name='message']").val("Category or categories Requested:\n" + document.getElementById("Categories").value);
document.forms["postmodify"].submit();
};};
</script>
What's in red can be edited

Then go to Admin->Manage Board and click add board
Insert this for the name:
Quote
</a> - <span class="smalltext"><a href="http://BOARD NAME.smfforfreeSERVER.com/index.php?action=pm;sa=send;u=1;other=RequestCategory">Request A Category</a></span>

Change BOARD NAME to the name of your board
And change SERVER to the server number, if its server 1, just leave it out

I dunno, I'm trying to find my way around codes, just thought I could give this one a shot.
Report Spam   Logged

Share on Facebook Share on Twitter

Crywolfz
Member
Member
Offline Offline

Gender: Male
Posts: 94



View Profile
Badges: (View All)
« Reply #1 on: April 14, 2009, 03:00:13 pm »

Nice code
Report Spam   Logged
Mojobojo82
MVP
MVP
Offline Offline

Gender: Male
Posts: 838


View Profile
Badges: (View All)
« Reply #2 on: June 17, 2009, 05:53:18 am »

Nice code although not needed with my forum  Azn
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

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