MOD download & history

In fact this as a Image Image Image Image Red/yellow/Green and blue mod, also known as the ban user / repport post to moderator system

Moderator: Moderators

Forum rules
The content in this forum is dated Dec. 21 2005 and can be used as Archive only. This Forum is LOCKED and READ ONLY !

MOD download & history

Postby Niels on Wed 10. Apr, 2002 15:22

Code: Select all
##############################################################
## MOD Title:          Yellow card
## MOD Author:         Niels < ncr@db9.dk > (Niels Chr. Rød) http://mods.db9.dk
## MOD Description:    Also known as "card system", this mod will
##                     make 4 colored buttons beside users post:
##                     Red = ban, Yelow = warn, Green = unban,
##                     Blue = report to moderators.
## MOD Version:        1.4.11
## MOD Compatibility:  2.0.6
##
## Installation Level: Intermediate
## Installation Time:  40 minutes (1mn by EasyMOD of Nuttzy)
## Files To Edit:      22
##      posting.php
##      search.php
##      viewforum.php
##      viewtopic.php
##      admin/admin_board.php
##      admin/admin_forumauth.php
##      admin/admin_forums.php
##      admin/admin_ug_auth.php
##      admin/admin_user_ban.php
##      admin/admin_users.php
##      includes/auth.php
##      includes/constants.php
##      includes/smtp.php
##      includes/usercp_register.php
##      language/lang_english/lang_admin.php
##      language/lang_english/lang_main.php
##      templates/subSilver/posting_body.tpl
##      templates/subSilver/search_body.tpl
##      templates/subSilver/subSilver.cfg
##      templates/subSilver/viewtopic_body.tpl   
##      templates/subSilver/admin/board_config_body.tpl
##      templates/subSilver/admin/user_edit_body.tpl
##
## Included Files:     13
##      yellow_card_db_update.php
##      root/card.php
##      root/language/lang_english/email/ban_block.tpl
##      root/language/lang_english/email/ban_reactivated.tpl
##      root/language/lang_english/email/ban_warning.tpl
##      root/language/lang_english/email/card_block.tpl
##      root/language/lang_english/email/repport_post.tpl
##      root/templates/subSilver/images/icon_bcard.gif
##      root/templates/subSilver/images/icon_bhotcard.gif
##      root/templates/subSilver/images/icon_gcard.gif
##      root/templates/subSilver/images/icon_rcard.gif
##      root/templates/subSilver/images/icon_rycard.gif
##      root/templates/subSilver/images/icon_ycard.gif
##
##############################################################
## MOD History:
##
##   2003-12-27 - Version 1.4.9
##      - phpBB template & EasyMOD compliance enhancement
##      - Dutch & Spanish translations now provide with the MOD
##
##   2003-12-04 - Version 1.4.8
##      - fixed a isue with posting.php, witch would cause a
##        error to happen on specific server configurations.
##
##   2003-10-13 - Version 1.4.7
##      - correction to the code in viewtopic.php about the
##        java**script pop-up
##
##   2003-10-09 - Version 1.4.6
##      - changed the included emails to confirm to 206 standarts,
##      - updated card.php
##
##   2003-09-28 - Version 1.4.5
##      - some changes into card.php regarding RY card
##
##   2003-09-02 - Version 1.4.4
##      - improved admin_user_ban.php
##
##   2003-08-26 - Version 1.4.3
##      - made the how-to more EM compatible with other mods installed
##
##   2003-08-24 - Version 1.4.2
##      - corrected viewtopic.php and viewtopic_body.tpl to
##        correctly manage warning numbers showen beside posts
##
##   2003-08-22 - Version 1.4.1
##   -
##
##   2003-08-10 - Version 1.4.0
##      - Merge part 1 & 2
##      - Fix many instructions errors
##      - Add French translation
##      - Update instructions to work with 2.0.6
##      - How-to rewrite to be EasyMOD compatible
##
##   ????-??-?? - Version 1.3.9
##      - changed the admin/admin_baord_config_body.tpl
##
##   ????-??-?? - Version 1.3.8
##      - minor change for 2.0.4
##
##   ????-??-?? - Version 1.3.7
##      - missed a change in admin_ug_auth.php
##
##   ????-??-?? - Version 1.3.6
##      - corrected the admin_users.php file
##
##   ????-??-?? - Version 1.3.5
##      - Corrected a find tag in the how-to auth.php
##
##   ????-??-?? - Version 1.3.4
##      - now yellow/red cards can be made/removed with-in the
##        admin ban interface
##
##   ????-??-?? - Version 1.3.3
##      - correction of typo in the how-to - thanks to "kreativ"
##
##   ????-??-?? - Version 1.3.2
##      - the ADD SQL, had a syntax
##
##   ????-??-?? - Version 1.3.1
##      - corrected a typo in the board_config_body.tpl
##
##   ????-??-?? - Version 1.3.0
##      - now posible to specify the "post a report" forum ID
##
##   ????-??-?? - Version 1.2.1
##      - seciruty update, semi vital (recormented)
##
##   ????-??-?? - Version 1.2.0
##      - re-written for phpBB2 version 2.0.2.
##
##   ????-??-?? - Version 1.1.4
##      - lang_admin.php changed
##
##   ????-??-?? - Version 1.1.3
##      - history started, changed some entry in admin.php
##
##   ????-??-?? - Version 1.1.0
##      - release for phpBB 2.0.0.
##
##   2002-04-10 - Version 1.0.0
##      - release for phpBB RC-2
##
##   2002-01-01 - Version 0.9.0
##      - beta release for phpBBe RC-1
##
##############################################################

:arrow: To know the languages already available in the MOD archive, please click here

Note: block users for X minutes are a feature of the protect user account, not only the yellow card - both mods are required for this 5'te button. the how-to is not yet availble for this feature
Last edited by Niels on Sat 07. May, 2005 15:07, edited 16 times in total.
(if a how-to is EM ready, it will mostly be bullet prof, since a machine is more picky than a human. :D)
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Postby Niels on Wed 10. Apr, 2002 22:00

I had forgot a entry to the lang_main.php
it is now included in the zip file

check that this line in in the lang_main.php

Code: Select all
$lang['Post_reset'] = "This posts Blue card have now been reset";
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

IMPORTEN UPDATE

Postby Niels on Thu 18. Apr, 2002 18:07

THe have been a security bug in CARD.PHP, therefore new version is 1.2.0
if you do have a erlyer version, you should update to this NOW
Last edited by Niels on Wed 30. Oct, 2002 23:31, edited 1 time in total.
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

update

Postby Niels on Wed 24. Apr, 2002 22:12

I have now updated the file CARD.PHP new version is 1.2.3please update this file
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Postby Niels on Fri 26. Apr, 2002 13:08

PART 2 is now updated to version 1.1.2

fixed a cosmetic error that causes the email notification to include both the email and the name in the "To:" field when email is viewet in some email browsers, now it displays as it should "only the name" (the emai lis "hidden" but is there, and reply is posible - just like every other emails you usual recive

how to upgrade:
Code: Select all
do the file smtp.php in the upgraded download
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Postby Niels on Mon 29. Apr, 2002 07:21

I have found a small typo in card.php
new version is 1.2.4

here are how to correct
[FIND]
$email_headers .= "Return-Path" . (($userdata['user_email']&&$userdata['user_viewemail'])? $userdata['user_email']."\r\n":"\r\n");

[REPLACE WITH]
$email_headers .= "Return-Path:" . (($userdata['user_email']&&$userdata['user_viewemail'])? $userdata['user_email']."\r\n":"\r\n");
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Postby Niels on Mon 29. Apr, 2002 18:52

DannoUk, have been so kind to tell me that report, is not spelled repport

I have corrected this in the files

Code: Select all
repport_post.tpl
and in the lang_main.php


users how have alreay done this mod, should check these 2 files, to se if the changes to this mod, also reflect the code they are runing with

note that the naming of the variabels is not corrected, this is due to future combability to old users, the wrong spelling have no effect in the code, so it is left as it is.
Last edited by Niels on Wed 30. Oct, 2002 23:32, edited 1 time in total.
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

update

Postby Niels on Tue 14. May, 2002 16:29

I have now updated this mod
new version is 1.1.4.
now this mod uses POST for parsing the actions, making it more secure and less vounderble, users using this are adviced to follw this upgrade.


how-to upgrade:
in file viewtopic.php
Code: Select all
[FIND]
if($poster_id != ANONYMOUS && $postrow[$i]['user_level'] != ADMIN)
{
   if ($is_auth['auth_greencard'])
   {
      $g_card_uri = append_sid("card.$phpEx?c=1&amp;b=". $poster_id. "&amp;p=".$postrow[$i]['post_id']);
      $g_card_img = '<a href="' . $g_card_uri . '"><img src="' . $images['icon_g_card'] . '" alt="' . $lang['Give_G_card'] . '" title="' . $lang['Give_G_card'] . '" border="0" /></a>';
   } else $g_card_img="";
   if ($postrow[$i]['user_active'] && $is_auth['auth_ban'] )
   {
      $y_card_uri = append_sid("card.$phpEx?c=".($postrow[$i]['user_active']+1)."&amp;b=". $poster_id. "&amp;p=".$postrow[$i]['post_id']);
      $y_card_img = '<a href="' . $y_card_uri . '"><img src="' . $images['icon_y_card'] . '" alt="' . sprintf($lang['Give_Y_card'],$postrow[$i]['user_active']) . '" title="' . sprintf($lang['Give_Y_card'],$postrow[$i]['user_active']) . '" border="0" /></a>';
      $r_card_uri = append_sid("card.$phpEx?b=". $poster_id. "&amp;p=".$postrow[$i]['post_id']);
      $r_card_img = '<a href="' . $r_card_uri . '"><img src="' . $images['icon_r_card'] . '" alt="' . $lang['Give_R_card'] . '" title="' . $lang['Give_R_card'] . '" border="0" /></a>';
   } else { $y_card_img=""; $r_card_img=""; }
} else { $g_card_img=""; $y_card_img=""; $r_card_img=""; }
if ($is_auth['auth_bluecard'])
{
   if ($is_auth['auth_mod'])
   {
      $b_card_uri = append_sid("card.$phpEx?p=".$postrow[$i]['post_id']."&amp;c=".(($postrow[$i]['post_bluecard'])?"0":($postrow[$i]['post_bluecard']+1)));
      $b_card_img = '<a href="' . $b_card_uri . '"><img src="' . (($postrow[$i]['post_bluecard'])?$images['icon_bhot_card']:$images['icon_b_card']) . '" alt="'. ( ($postrow[$i]['post_bluecard'])? sprintf($lang['Clear_b_card'],$postrow[$i]['post_bluecard']) : $lang['Give_b_card'] ) . '" title="' . (($postrow[$i]['post_bluecard'])? sprintf($lang['Clear_b_card'],$postrow[$i]['post_bluecard']):$lang['Give_b_card']) . '" border="0" /></a>';
   }
   else
   {
      $b_card_uri = append_sid("card.$phpEx?p=".$postrow[$i]['post_id']."&amp;c=".($postrow[$i]['post_bluecard']+1));
      $b_card_img = '<a href="' . $b_card_uri . '"><img src="'.$images['icon_b_card'] . '" alt="'.$lang['Give_b_card']. '" title="' . $lang['Give_b_card'] . '" border="0" /></a>';
   }
} else $b_card_img='';

[REPLACE WITH]
if($poster_id != ANONYMOUS && $postrow[$i]['user_level'] != ADMIN)
{
   $card_hidden='';
   if ($is_auth['auth_greencard'])
   {
         $g_card_img = '&nbsp;<input type="image" name="unban" value="unban" src="'. $images['icon_g_card'] . '" alt="' . $lang['Give_G_card'] . '" >';
   }
   else $g_card_img='';
   if ($postrow[$i]['user_active'] && $is_auth['auth_ban'] )
   {
         $y_card_img = '&nbsp;<input type="image" name="warn" value="warn" src="'. $images['icon_y_card'] . '" alt="' . sprintf($lang['Give_Y_card'],$postrow[$i]['user_active']) . '" >';
         $r_card_img = '&nbsp;<input type="image" name="ban" value="ban" src="'. $images['icon_r_card'] . '" alt="' . $lang['Give_R_card'] . '" >';
   }
   else
   {
       $y_card_img=''; $r_card_img='';
   }
} else
{
   $g_card_img='';
   $y_card_img='';
   $r_card_img='';
}

if ($is_auth['auth_bluecard'])
{
   if ($is_auth['auth_mod'])
   {
   $b_card_img = (($postrow[$i]['post_bluecard'])) ? '&nbsp;<input type="image" name="rapport_reset" value="rapport_reset" src="'. $images['icon_bhot_card'] . '" alt="'. sprintf($lang['Clear_b_card'],$postrow[$i]['post_bluecard']) . '">':'&nbsp;<input type="image" name="rapport" value="rapport" src="'. $images['icon_b_card'] . '" alt="'. $lang['Give_b_card'] . '" >';
   }
   else
   {
   $b_card_img = '&nbsp;<input type="image" name="rapport" value="rapport" src="'. $images['icon_b_card'] . '" alt="'. $lang['Give_b_card'] . '" >';
   }
} else $b_card_img='';

[FIND]
'DELETE' => $delpost,

[ AFTER, ADD ]
'CARD_HIDDEN_FIELDS' => $card_hidden,

[FIND]
"U_G_CARD" => $g_card_img,
"U_Y_CARD" => $y_card_img,
"U_R_CARD" => $r_card_img,
"U_B_CARD" => $b_card_img,

[REPLACE WITH]
'U_G_CARD' => $g_card_img,
'U_Y_CARD' => $y_card_img,
'U_R_CARD' => $r_card_img,
'U_B_CARD' => $b_card_img,
'S_CARD' => append_sid("card.".$phpEx),


in file viewtopic_body.tpl
Code: Select all
[FIND]
<td width="100%"><a href="{postrow.U_MINI_POST}">

[BEFORE, ADD]
<form method="post" action="{postrow.S_CARD}">

[FIND]
{postrow.U_B_CARD}

[AFTER, ADD]
{postrow.CARD_HIDDEN_FIELDS}

[FIND]
{postrow.IP_IMG}

[AFTER, ADD]
</form>


then update the file card.php, with the new version (ver 1.2.4.)
Last edited by Niels on Wed 15. May, 2002 09:54, edited 1 time in total.
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Next

Return to Yellow card [2.0.6/EM]

Who is online

Users browsing this forum: No registered users and 1 guest

cron