View Single Post
  #4  
Old 03-21-2011, 04:48 PM
virtus virtus is offline
 
Join Date: Jun 2010
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Maybe i am doing this all wrong then . This is my first attempt at a product.

any help would be great.

PHP Code:
<templates>
        <
template name="ginfraction" templatetype="template" date="1209011189" username="virtus" version=".1"><![CDATA[
        
<
div>
<
form action="misc.php?do=ginfraction" method="post">
<
b>Name of player: </b> <input type="text" name="playername" />
<
br />
<
b>Forum/Account Name: </b> <input type="text" name="forumname" />
<
br />
<
b>Time of Violation (GMT): </b> <input type="text" name="time" />
<
br />
<
b>Date of Violation: </b> <input type="text" name="date" />
<
br />
<
b>Action Taken: </b>
    <
input type="radio" name="infractiontype" value="warning" /> <b>Warning</b>
    <
br />
    <
input type="text" name="suspenddays" /> <b>Days</b> <input type="radio" name="infractiontype" value="temporary suspension" /> <b>Temp Suspension</b>
    <
br />
    <
input type="radio" name="infractiontype" value="permanent suspension" /> <b>Perma Ban</b>
<
br />
<
b>Violation: </b> <input type="text" name="violation" />
<
br /> 
<
b>Evidence: </b> <input type="text" name="evidence" />
<
br />
<
b>Which ToS did they Violate: </b>
<
select name="tosrules">
  <
option value="choose">Choose an Tos Violation</option>
  <
option value="5.1">5.1</option>
  <
option value="5.2">5.2</option>
  <
option value="5.3">5.3</option>
  <
option value="5.4">5.4</option>
  <
option value="5.5">5.5</option>
  <
option value="5.6">5.6</option>
  <
option value="5.7">5.7</option>
  <
option value="5.8">5.8</option>
  <
option value="5.9">5.9</option>
  <
option value="5.10">5.10</option>
  <
option value="5.11">5.11</option>
  <
option value="5.12">5.12</option>
  <
option value="5.13">5.13</option>
  <
option value="5.14">5.14</option>
  <
option value="5.15">5.15</option>
  <
option value="5.16">5.16</option>
  <
option value="5.17">5.17</option>
  <
option value="5.18">5.18</option>
</
select>
<
input type="submit" name="submit" value="Submit" />
</
form>
</
div>
]]>
</
template>
    </
templates
this is only a small but of the php code:
PHP Code:
<phpcode><![CDATA[
            

if (
$_REQUEST['do'] == "ginfraction")
{

    if(
$vbulletin->userinfo['userid'] != 6){
        
print_no_permission();
    }
    

if(isset(
$_POST['submit'])){

    if(!isset(
$_POST['infractiontype']) || !isset($_POST['suspenddays']) || !isset($_POST['playername']) || !isset($_POST['forumname']) || !isset($_POST['time']) 
    || !isset(
$_POST['date']) || !isset($_POST['violation']) || !isset($_POST['evidence']) || $_POST['tos'] == "choose"){
        
$error "Please fill out all fields";
    }
}]]></
phpcode>
        </
plugin>
    </
plugins
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01318 seconds
  • Memory Usage 1,830KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete