Warning: preg_replace_callback(): Requires argument 2, '$func['entity_fix']('\2')', to be a valid callback in /nfs/c01/h06/mnt/10927/domains/dragonprime.net/html/Sources/Load.php(225) : runtime-created function on line 3

Warning: preg_replace_callback(): Requires argument 2, '$func['entity_fix']('\2')', to be a valid callback in /nfs/c01/h06/mnt/10927/domains/dragonprime.net/html/Sources/Load.php(225) : runtime-created function on line 3
Print Page - Warning Level and Bans v2.0.1 (Modified)

DragonPrime - LoGD Resource Community

Modules, Themes and other customizations for your game => Completed Modules for version 1.x.x => Topic started by: MarcTheSlayer on February 25, 2009, 07:49:25 AM



Title: Warning Level and Bans v2.0.1 (Modified)
Post by: MarcTheSlayer on February 25, 2009, 07:49:25 AM
Warning Level and Bans v2.0.1

This is a modified/rewritten version of Warning Level and Bans by Sephiroth v1.0

Changes I have made.
v2.0.0
+ Number of player warnings listed on bio page along with reasons.
+ Show previous warnings with form to give another. Can't warn player if they're currently banned.
+ If 'jail' module is installed, you can jail player along with the warning.
+ Player warnings are stored in allprefs.
+ With allprefseditor, warnings can be edited or deleted.

Edit:
17/02/2009 - v2.0.1
+ Corrected some spelling errors.
+ Made reasons text in bio red in colour.
+ If 'mutemod' is installed, you can mute player for 1 day along with the warning.
+ Missed 2 translate_inline()s.
+ Can now edit/change the main part of the YoM message that gets sent.

Zip file attached.


Title: Re: Warning Level and Bans v2.0.1 (Modified)
Post by: Contessa*Seasons on September 12, 2010, 04:39:41 PM
Marc, dear sweet friend, (smiles all prettyful like) I wish your module had an update to include a few things. Thanks for reading! =)

1) a drop down button to select how many days I want to mute or jail someone
2) the option to ban from the module
3) the option to mail mute from the module
4) the option to put a message in the news
5) the option to remove warning from bio after an admin selected period of time.



Title: Re: Warning Level and Bans v2.0.1 (Modified)
Post by: Megan|SaraBeth on September 29, 2011, 08:27:41 PM
When I go to warn someone I get this error:

Parse error: syntax error, unexpected T_IF in /home/thecom/public_html/modules/warnlvl/run/case_warnplayersubmit.php on line 66


Title: Re: Warning Level and Bans v2.0.1 (Modified)
Post by: Minato on September 29, 2011, 08:41:42 PM
When I go to warn someone I get this error:

Parse error: syntax error, unexpected T_IF in /home/thecom/public_html/modules/warnlvl/run/case_warnplayersubmit.php on line 66

Post the code around your error and we can give you a solution. :)


Title: Re: Warning Level and Bans v2.0.1 (Modified)
Post by: Megan|SaraBeth on September 29, 2011, 08:44:51 PM
$yom_text = httppost('yom_text');
   $reason = httppost('reason');
   $allprefs['reason'][] = $reason;
   $allprefs['comments'][] = httppost('comment');
   $allprefs['subber_id'][] = $session['user']['acctid'];
   $allprefs['date'][] = time();
   $allprefs['warnings'] = $allprefs['warnings'] + 1;
   $warns_count = $count + 1;
   $subject = translate_mail('This is a Warning')

   if( $warns_count >= $warns_total )    <----line 66
   {
      //
      //   Banned.
      //
      $allprefs['bandays'] = $allprefs['bandays'] + $ban_days;
      $days = translate_inline($ban_days==1?'day':'days');


Title: Re: Warning Level and Bans v2.0.1 (Modified)
Post by: bwatford on September 29, 2011, 09:09:53 PM

Your Syntax error is on this line

$subject = translate_mail('This is a Warning')

It should be:

$subject = translate_mail('This is a Warning');

It was missing the ; that is why it had the unexpected if statement.. the $subject was never closed.


Title: Re: Warning Level and Bans v2.0.1 (Modified)
Post by: Megan|SaraBeth on September 29, 2011, 09:33:34 PM
Woot!  That was the fix.  Thank you :D

© 2019 DragonPrime - LoGD Resource Community
Email Talisman: talisman -at- gmail.com
&oeXs)2U7=V BmܲV.U e=;p\}eG )Jj} C5EH7ˤH=j } mo|*Ŋw{drV_@IV>/- TFQJ׀̀Ve}l1,V O iNYx͘$e$;
Forums: Powered by SMF 1.1.21 | SMF © 2006-2007, Simple Machines