Welcome Guest [Log In] [Register]
We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Multiquote (on) Multiquote (off)
Add Reply
Advanced Report System?; Advanced Report System
Topic Started: Dec 26 2011, 01:02 PM (315 Views)
Keli
Member
[ * ]
Well, I am helping with some changes on a forum on Zetaboards and basically I've used Reid's form code for this
I know how to make it so if you click "Report" it'll direct to the page we set up for this form, however we have a problem.

Everytime someone makes a report we want it to appear in the ReportCP, is that possible?
This code is meant to make things neater and easier to deal with reports. It goes to a hidden topic called "Report Form", only Moderators and Admins can see that section but the reply options are all turned on so people are capable of sending the report.

This is there so we can just directly reply to that topic and discuss about the report that the user sent in.

So basically if someone makes a report we need it to appear in the ReportCP to make things a lot easier for us all.

Here is Reid's code below with very minor changes, and Cory's additional code below.
Thank you ;D

Code: HTML
 
<form id='generic_form'>
<div class='category'>
<table class='cat_head'>
<tr>
<td><h2 style='text-align:center'><center><font color=#F41010>WTFTeam Report Form</font></center>

</h2></td>
</tr>
</table>
</div>

<table>
<tr>
<td> </td>
</tr>
</table>

<table id='form_spec'>
<tr>
<th colspan='2'><h2>Please fill out the fields below:</h2></th>
</tr>
<tr>
<td>Title</td>
<td><input type='text' /></td>
</tr>
<tr>
<td>Link to Problem (Optional)</td>
<td><input type='text' /></td>
</tr>
<td>Problem/Complaint (Optional)</td>
<td>
<select>
<option>None</option>
<option>Broken Link</option>
<option>Glitch</option>
<option>Member</option>
<option>Other</option>
</select>
</td>
</tr>
</tr>
<td>Suggestion/Idea (Optional)</td>
<td>
<select>
<option>None</option>
<option>Other</option>
</select>
</td>
</tr>
<tr>
<td>Tell us in your own words what is the problem and/or what Suggestions you have, we'd love to hear them!</td>
<td><textarea rows='5'></textarea></td>
</tr>
<tr>
<td colspan='2' id='send_form'><button type='submit'>Continue</button></td>
</tr>
</table>














</form>

<style type='text/css'>
/* <![CDATA[ */
#form_spec tr td:first-child {
font-weight: bold;
width: 30%;
}
#form_spec input, #form_spec textarea {
width: 500px;
}
/* ]]> */
</style>

<script type='text/javascript'>
var form_script = {
form_id: $('#generic_form'),
status_id: $('#send_form'),
specific_id: $('#form_spec'),
enable_guests: false,
pm: {
enabled: false, // Does not work for guests
user: "Keli", // 1 user only
title: "{{user_name}} has made an complaint/suggestion!",
content: "{{form}}"
},
topic: {
enabled: true,
forum_id: 1696857, // 1 id only
title: "{{user_name}} has made an complaint/suggestion!",
description: "",
content: "{{form}}"
},
statuses: {
not_logged_in: "You must be registered and signed in to use this feature.", // Used if enable_guests: false
first: "Awaiting for an response.",
second: "Sending form...",
done: "Form sent! Thank you for your time, please wait a while this form is over looked."
},
submission_formatting: {
separator: ' ',

before_all: '',
after_all: '',

before_question: '[b]',
after_question: '[/b]',

before_response: '[i]',
after_response: '[/i]'
},
possible_elements: 'input, textarea, select' // For the second column of table; .val() must work on it
};
</script>

<script type='text/javascript' src='http://z3.ifrm.com/313/104/0/p366373/form_script.js'></script>






<script type="text/javascript">
function rField(td_name) {
$('button').click(function (event) {
if ($('td:contains(' + td_name + ')').next().find('input, textarea').val().length === 0) {
event.preventDefault();
alert("You must fill out the required fields.").one();
}
});
}

rField('Title:');
rField('Tell us in your own words what is the problem and/or what Suggestions you have, we'd love to hear them!:');
</script>
Edited by Keli, Dec 26 2011, 01:06 PM.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · ZetaBoards - Theme & Code Support · Next Topic »
Add Reply