DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • June 20, 2018, 02:36:51 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Poll
Question: Please rate this module.
Excellent - 5 (71.4%)
Good - 2 (28.6%)
Average - 0 (0%)
Bad - 0 (0%)
Poor - 0 (0%)
Total Voters: 7

Pages: [1]   Go Down
  Print  
Author Topic: Warning Level and Bans v2.0.1 (Modified)  (Read 4468 times)
0 Members and 1 Guest are viewing this topic.
MarcTheSlayer
Mod God
*****
Offline Offline

Posts: 1744


View Profile
« 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.
« Last Edit: August 04, 2009, 04:25:39 PM by Afkamm » Logged

Check My Modules for the latest versions.
Contessa*Seasons
Militia
**
Offline Offline

Posts: 60



View Profile WWW
« Reply #1 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.

Logged

Embrace the passion of the adventure and sail into the Land of Tarkenna
Megan|SaraBeth
Mod God
*****
Offline Offline

Posts: 1052



View Profile WWW
« Reply #2 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
Logged

Minato
Codemeister
****
Offline Offline

Posts: 271


Script not working? Just beat it!


View Profile WWW
« Reply #3 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. Smiley
« Last Edit: September 29, 2011, 09:05:54 PM by KainStrider » Logged

Megan|SaraBeth
Mod God
*****
Offline Offline

Posts: 1052



View Profile WWW
« Reply #4 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');
Logged

bwatford
Militia
**
Offline Offline

Posts: 31



View Profile WWW
« Reply #5 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.
Logged

Like my mods?  Come on over and play in my sandbox logd server http://www.santasofficialnorthpolemail.com/logd/index.php
Megan|SaraBeth
Mod God
*****
Offline Offline

Posts: 1052



View Profile WWW
« Reply #6 on: September 29, 2011, 09:33:34 PM »

Woot!  That was the fix.  Thank you Cheesy
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Please take the time to read the FAQ and browse the DragonPedia

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
43 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search