This is a Very Simple, but very usefull Code. What this Code does? It makes a New Page on your Forum, where a small Form will appear, where users can Report Bugs to the Admin.
Now, when you Edit the Code, please leave the Copyright Meterial intact.PrevieuwHere's the Code:
Add this to your Headers if you don't have it already. If you already have it, don't add it:
<script src="jquery.js"></script>
Add this to your Headers too, if you don't have it already. If you already have it, don't add it:
<script src="http://209.85.48.12/9581/134/upload/p4217340.ibf">//Jquery code</script>
Now, add this to your Footers (Edting Instructions are located below the Code):
<script>
function addlinks(){
//Created by Qub1 AND Agent Moose (qub1test.smfforfree4.com)
$(function() {
var links = new Array()
links[links.length] = ["Report Bug","http://YYYYY.smfforfreeX.com/index.php?action=bugreport"]
for(m=0;m<links.length;m++){
$(".maintab_last").before("<td valign='top' class='maintab_back'><a href='"+links[m][1]+"'>"+links[m][0]+"</a></td>");
};});}
addlinks();
</script>
<script>
function smf_page_v1(link,title,content){
//Created by Qub1 AND Agent Moose (qub1test.smfforfree4.com)
if(location.href.match("action="+link)){
document.title=""+title+"";
$("#bodyarea").hide()
$("#bodyarea").before("<div class='tborder'><div class='catbg' style='padding: 6px; vertical-align: middle; text-align: center; '>"+title+"</div><div id='upshrinkHeaderIC'><table border='0' width='100%' cellspacing='1' cellpadding='4' class='bordercolor'><tr><td class='windowbg2' width='100%'>"+content+"</td></tr></table></div></div>")
};};
smf_page_v1("bugreport","Report Bug","<form action='MAILTO:youremail@youremailhoster' method='post' enctype='text/plain'><h3>Report a Bug to this Forum's Admin.</h3>Your Username:<br><input type='text'name='name'value='Enter Username' size='20'><br>Your E-Mail:<br><input type='text'name='mail'value='Enter E-Mail' size='20'><br>The Bug:<br><input type='text' name='comment'value='Enter the Bug Description' size='40'><br><br><input type='submit' value='Send'><input type='reset' value='Reset'><br> </br><center><h7><b>Warning:</b></h7></center><br><center>Please do NOT abuse this Form. Users that are abusing this Form could get Muted or even Banned. So, if you do not have a Real Bug-Report than do NOT use this Form, becuse we cannot spend all day reading your False Messages. Thanks for your Understanding.</center></br><br> </br><br> </br><br> </br><br><center>© Copyrighted 2008 Qub1 Codes. All Rights Reserved.</center></br><center><br>www.qub1test.smfforfree4.com</br></center></form>")
</script>
Editing:Now, here's how to Edit (The Editing depends on the Colored text in the Code):
Black Text: The Page Name that will be displayed in your Tabs menu.
Green Y's: Replace all of these Y's by the Name of your Forum.
Dark Blue X: Replace this X with the Number of your SMF For Free Forum Host.
Red Text: Replace this with The Text you want to be be Displayed as the Title of the area the Form is going to be placed in (I suggest you leave this one alone).
Yellow Text: Replace this with The Name of the E-Mail Adres the Bug Report will be Send to.
Pink Text: Replace this with your E-Mail Host, like ''hotmail.com''.
Green Text: Replace this with The text that will be Displayed above your Form (The bug report Form), you could better leave this one alone.
Orange Text: Replace these two tabs with the info That must be displayed in the First Field, this should be the Field where the Bug-Reporter enters his Username OR Real Name. Text 1: The Field Name. Text 2: The text displayed inside the Field.
Purple Text: Replace these two tabs with the info That must be displayed in the Second Field, this should be the Field where the Bug-Reporter enters his E-Mail. Text 1: The Field Name. Text 2: The text displayed inside the Field.
Light Blue Text: Replace these two tabs with the info That must be displayed in the Second Field, this should be the Field where the Bug-Reporter enters the Description of the Bug. Text 1: The Field Name. Text 2: The text displayed inside the Field.
Ghosty White Text: The Text that will be Displayed at the Submit button.
Dark Red ''Reset'' Text: The Text that will be Displayed at the Reset Form button (You could better leave this one alone).
Brown ''Warning'' Text: This is the Text that will appear above the Anti-Spam text.
Teal Text: The Warning text of the Anti-Spam Message.
Thanks for Using and Reading my Code! If you need any help, just post below.
Thanks,
- Qub1
Credits:
Some Credit goes to me for making this (Of course)
Some Credit goes to Agent Moose for making the Add More Tabs and SMF Page V.1. Codes
Some Credit goes to all the SMF users out there
And the Rest goes to SMF For Free for making such a great Forum Hosting possible.