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 !

Postby Niels on Thu 22. Apr, 2004 23:22

I have updated this mod to 1.4.10.

this solves a isue, where the "click here" did not work prober in the report forum.

in file posting.php
Code: Select all
[FIND and remove]
$extra_message_body = ( !empty($HTTP_POST_VARS['extra_message_body']) ) ? $HTTP_POST_VARS['extra_message_body'] : '';

[FIND]
$message = ($lock_subject) ? $extra_message_body.$message :
$message;

[REPLACE WITH]
if ($lock_subject)
{
   $url = "<a href='viewtopic.$phpEx?" . POST_POST_URL . "=" .$lock_subject."#".$lock_subject."'> ";
   $message = addslashes(sprintf($lang['Link_to_post'],$url,"</a>")).$message;   
}

[FIND]
$preview_message = ($lock_subject) ? stripslashes($extra_message_body).$preview_message : $preview_message;

[REPLACE WITH]
   $url = "<a href='viewtopic.$phpEx?" . POST_POST_URL . "=" .$lock_subject."#".$lock_subject."'> ";
   $extra_message_body= sprintf($lang['Link_to_post'],$url,"</a>");   
   $preview_message = ($lock_subject) ? stripslashes($extra_message_body).$preview_message : $preview_message;

[FIND and remove]
$url = "<a href='".append_sid("viewtopic.$phpEx?" . POST_POST_URL . "=" .$postreport."#".$postreport)."'> ";
$extra_message_body= sprintf($lang['Link_to_post'],$url,"</a>");   

[FIND and remove]
$hidden_form_fields .= (!empty($extra_message_body))?'<input type="hidden" name="extra_message_body" value="'.$extra_message_body.'" />':'';


it have been a litle difficult to keep track of the needed changes - so please make a backup of your posting.php before upgrade - in case I did miss something
(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 Fri 23. Apr, 2004 00:20

I have upgraded to 1.4.11 , this is a ACP improvement - and not ecential to do.


in file admin_board.php
Code: Select all
[FIND]
//
// Escape any quotes in the site description for proper display in the text

[BEFORE, ADD]
      //report forum selection
      $sql = "SELECT f.forum_name, f.forum_id
         FROM " . FORUMS_TABLE . " f, " . CATEGORIES_TABLE . " c
         WHERE c.cat_id = f.cat_id ORDER BY c.cat_order ASC, f.forum_order ASC";
      if ( !($result = $db->sql_query($sql)) )
      {
         message_die(GENERAL_ERROR, "Couldn't obtain forum list", "", __LINE__, __FILE__, $sql);
      }
      $report_forum_rows = $db->sql_fetchrowset($result);
      $db->sql_freeresult($result);

      $report_forum_select_list = '<select name="report_forum">';
      $report_forum_select_list .= '<option value="0">' . $lang['None'] . '</option>';
      for($i = 0; $i < count($report_forum_rows); $i++)
      {
         $report_forum_select_list .= '<option value="' . $report_forum_rows[$i]['forum_id'] . '">' . $report_forum_rows[$i]['forum_name'] . '</option>';
      }
      $report_forum_select_list .= '</select>';
      $report_forum_select_list = str_replace("value=\"".$new['report_forum']."\">", "value=\"".$new['report_forum']."\" SELECTED>*" ,$report_forum_select_list);


[FIND]
'REPORT_FORUM' => $new['report_forum'],

[REPLACE WITH]
'S_REPORT_FORUM' => $report_forum_select_list,


in file subSilver/board_config_body.tpl
Code: Select all
[FIND]
<input class="post" type="text" size="4" maxlength="4" name="report_forum" value="{REPORT_FORUM}" />

[REPLACE WITH]
{S_REPORT_FORUM}
(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 Sun 02. Jan, 2005 01:58

uploaded a 1.4.12 version, correded a EM isue - no upgraded nessesary on how-to related
(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

Previous

Return to Yellow card [2.0.6/EM]

Who is online

Users browsing this forum: No registered users and 1 guest

cron