## MOD :
## MOD : sandprince
## MOD Description: "warnings".
## MOD Version: 1.0.0
##
## : 10
## : 7
## admin/admin_users.php
## includes/usercp_viewprofile.php
## language/lang_english/lang_main.php
## viewtopic.php
## templates/subSilver/admin/user_edit_body.tpl
## templates/subSilver/profile_view_body.tpl
## templates/subSilver/viewtopic_body.tpl

##############################################################
## !
##############################################################


#-----[ SQL ]------------------------------------------
#
ALTER TABLE phpbb_users ADD user_warnings TEXT NOT NULL;

#
#-----[ ]------------------------------------------
#
admin/admin_users.php

#
#-----[ ]------------------------------------------
#
$signature = ( !empty($HTTP_POST_VARS['signature']) ) ? trim(str_replace('<br />', "\n", $HTTP_POST_VARS['signature'] ) ) : '';

#
#-----[ ]------------------------------------------
#
$user_warnings = ( !empty($HTTP_POST_VARS['user_warnings']) ) ? trim(strip_tags( $HTTP_POST_VARS['user_warnings'] ) ) : '';

#
#-----[ ]------------------------------------------
#
validate_optional_fields($icq, $aim, $msn, $yim, $website, $location, $occupation, $interests, $signature);

#
#-----[ ]------------------------------------------
#
$signature

#
#-----[ ]------------------------------------------
#
, $user_warnings

#
#-----[ ]------------------------------------------
#
$signature = htmlspecialchars(stripslashes($signature));

#
#-----[ ]------------------------------------------
#
$user_warnings = htmlspecialchars(stripslashes($user_warnings));

#
#-----[ ]------------------------------------------
#
, user_sig = '" . str_replace("\'", "''", $signature) . "'

#
#-----[ ]------------------------------------------
#
, user_warnings = '" . str_replace("\'", "''", $user_warnings) . "'

#
#-----[ ]------------------------------------------
#
$signature = htmlspecialchars(stripslashes($signature));

#
#-----[ ]------------------------------------------
#
$user_warnings = htmlspecialchars(stripslashes($user_warnings));

#
#-----[ ]------------------------------------------
#
$interests = htmlspecialchars($this_userdata['user_interests']);

#
#-----[ ]------------------------------------------
#
$user_warnings = htmlspecialchars($this_userdata['user_warnings']);

#
#-----[ ]------------------------------------------
#
$s_hidden_fields .= '<input type="hidden" name="signature" value="' . str_replace("\"", """, $signature) . '" />';

#
#-----[ ]------------------------------------------
#
$s_hidden_fields .= '<input type="hidden" name="user_warnings" value="' . str_replace("\"", """, $user_warnings) . '" />';

#
#-----[ ]------------------------------------------
#
'RANK_SELECT_BOX' => $rank_select_box,

#
#-----[ ]------------------------------------------
#
'USER_WARNINGS' => $user_warnings,
'L_USER_WARNINGS' =>$lang['User_warnings'],

#
#-----[ ]------------------------------------------
#
includes/usercp_viewprofile.php

#
#-----[ ]------------------------------------------
#
'AVATAR_IMG' => $avatar_img,

#
#-----[ ]------------------------------------------
#
'USER_WARNINGS' => $profiledata['user_warnings'],
'L_USER_WARNINGS' => $lang['User_warnings'],

#
#-----[ ]------------------------------------------
#
language/lang_english/lang_main.php

#
#-----[ ]------------------------------------------
#
//
// That's all, Folks!

#
#-----[ ]------------------------------------------
#
$lang['User_warnings'] = 'Warnings';

#
#-----[ ]------------------------------------------
#
viewtopic.php

#
#-----[ ]------------------------------------------
#
$sql = "SELECT u.username, u.user_id,

#
#-----[ ]------------------------------------------
#
, u.user_rank

#
#-----[ ]------------------------------------------
#
, u.user_warnings

#
#-----[ ]------------------------------------------
#
$poster_from = ( $postrow[$i]['user_from'] && $postrow[$i]['user_id'] != ANONYMOUS ) ? $lang['Location'] . ': ' . $postrow[$i]['user_from'] : '';

#
#-----[ ]------------------------------------------
#
$user_warnings = ( $postrow[$i]['user_warnings'] && $postrow[$i]['user_id'] != ANONYMOUS ) ? $lang['User_warnings'] . ': ' . $postrow[$i]['user_warnings'] : '';

#
#-----[ ]------------------------------------------
#
'POSTER_NAME' => $poster,

#
#-----[ ]------------------------------------------
#
'USER_WARNINGS' => $user_warnings,

#
#-----[ ]------------------------------------------
#

templates/_/viewtopic_body.tpl

#
#-----[ ]------------------------------------------
#
{postrow.POSTER_JOINED}

#
#-----[ ]------------------------------------------
#
{postrow.USER_WARNINGS}<br />

#
#-----[ ]------------------------------------------
#
templates/_/profile_view_body.tpl

#
#-----[ ]------------------------------------------
#
<tr>
<td valign="top" align="right" nowrap="nowrap"><span class="gen">{L_INTERESTS}:</span></td>
<td> <b><span class="gen">{INTERESTS}</span></b></td>
</tr>

#
#-----[ ]------------------------------------------
#
<tr>
<td valign="top" align="right" nowrap="nowrap"><span class="gen"><b>{L_USER_WARNINGS}:</b></span></td>
<td> <span class="gen">{USER_WARNINGS}</span></td>
</tr>

#
#-----[ ]------------------------------------------
#
templates/_/admin/user_edit_body.tpl

#
#-----[ ]------------------------------------------
#
<tr>
<td class="row1"><span class="gen">{L_SELECT_RANK}</span></td>
<td class="row2"><select name="user_rank">{RANK_SELECT_BOX}</select></td>
</tr>

#
#-----[ ]------------------------------------------
#
<tr>
<td class="row1"><span class="gen">{L_USER_WARNINGS}</span></td>
<td class="row2"><input class="post" type="text" name="user_warnings" size="5" maxlength="10" value="{USER_WARNINGS}" /></td>
</tr>


#
#-----[ / ]------------------------------------------
#




/ /