SMF For Free Support Forum
Signup For Free Forum
September 05, 2008, 09:32:21 pm *
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] Bug Reporting (FIXED) [Qub1]  (Read 509 times)
0 Members and 1 Guest are viewing this topic.
Qub1
SMF For Free Full Member
*
Offline Offline

Posts: 109


View Profile WWW
« on: February 29, 2008, 01:43:58 pm »

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.

Previeuw

Here's the Code:

Add this to your Headers if you don't have it already.  If you already have it, don't add it:
Code:
<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:
Code:
<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):
Quote
<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:
Quote
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.
« Last Edit: March 02, 2008, 11:45:30 am by Qub1 » Logged

Qub1
SMF For Free Full Member
*
Offline Offline

Posts: 109


View Profile WWW
« Reply #1 on: February 29, 2008, 04:32:27 pm »

----/// Bug Fixed ///----
I've fixed the Bug in the Code.
Logged

atlantic reefer
SMF For Free Full Member
*
Offline Offline

Posts: 186



View Profile WWW
« Reply #2 on: February 29, 2008, 08:08:04 pm »

All i can say is very nice - this code will be useful on many forums
Logged

Shane
My Forums (still under construction) - , http://tropiccentral.smfforfree4.com/ <--- maintenance mode
Qub1
SMF For Free Full Member
*
Offline Offline

Posts: 109


View Profile WWW
« Reply #3 on: March 01, 2008, 02:59:24 am »

Forum Url: http://narutolounge.smfforfree4.com
Thanks, i've done my best, but without Agent Moose's Page Codes this one wouldn't exist.

Edititng Code:
I am now making a Message so that users wont abuse this Form...
-DONE-
« Last Edit: March 01, 2008, 03:10:51 am by Qub1 » Logged

atlantic reefer
SMF For Free Full Member
*
Offline Offline

Posts: 186



View Profile WWW
« Reply #4 on: March 01, 2008, 07:23:33 pm »

Just to let you know there's a small problem with it  - it shows up and works fine but in the anti spam part you are missing a <center> part to center the actual message - you have the ending </center> just not the beginning part


</br><center><h7><b>Warning:</b></h7></center>insert <center> here<br>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>

Logged

Shane
My Forums (still under construction) - , http://tropiccentral.smfforfree4.com/ <--- maintenance mode
Qub1
SMF For Free Full Member
*
Offline Offline

Posts: 109


View Profile WWW
« Reply #5 on: March 02, 2008, 11:44:36 am »

FIXED

- Thanks for Telling, i've already found out at my Test Forum, but i forgot to correct it here...  Sad
Logged

atlantic reefer
SMF For Free Full Member
*
Offline Offline

Posts: 186



View Profile WWW
« Reply #6 on: March 02, 2008, 05:28:08 pm »

Hey it was no problem, just thought i would let you know
Logged

Shane
My Forums (still under construction) - , http://tropiccentral.smfforfree4.com/ <--- maintenance mode
Agent Z ™
SMF For Free Sponsors
*
Offline Offline

Posts: 410



View Profile
« Reply #7 on: March 03, 2008, 02:44:51 pm »

i love this code thanks  Smiley
Logged

Agent Z

Ready to help Smiley
Qub1
SMF For Free Full Member
*
Offline Offline

Posts: 109


View Profile WWW
« Reply #8 on: March 05, 2008, 07:31:57 am »

No Problem
Logged

Pancakes
SMF For Free Sr. Member
*
Offline Offline

Posts: 457


sǝʞɐɔuɐd ǝɯ lol


View Profile
« Reply #9 on: March 05, 2008, 11:53:01 am »

Thanks i love it
Logged

Qub1
SMF For Free Full Member
*
Offline Offline

Posts: 109


View Profile WWW
« Reply #10 on: March 06, 2008, 05:32:04 am »

NP  Smiley
Logged



Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC
ServerBeach Coupon
Page created in 0.235 seconds with 18 queries.