| |
| | |

CodersClub

 Forgot password?
 Register
Search
View: 8130|Reply: 3
Collapse the left

How to remove Violation log ?

[Copy link]
Post time: 2019-06-19 07:31
| Show all posts |Read mode
I want to know how to reset or remove the Violation log from the users space or profile.(Personal Info)

This post contains more resources

You have to Login for download or view attachment(s). No Account? Register

x

 Russia

Post time: 2019-06-22 12:14
| Show all posts
Just run the SQL query:
  1. DELETE FROM pre_common_member_crime
  2. WHERE uid = some_user_id
Copy the Code

where "pre_" is your real Dzx database prefix,
and "some_user_id" is an integer idendificator of a user which violation log is need to be cleaned.

 Russia

Post time: 2019-06-19 21:29
| Show all posts
template/home/space_profile_body.htm

Remove the next block:
  1. <!--{if $clist}-->
  2. <div class="cl">
  3.         <h2 class="mbm">{lang crime_record}</h2>
  4.         <table id="pcr" class="dt">
  5.                 <tr>
  6.                         <th width="15%">{lang crime_action}</th>
  7.                         <th width="15%">{lang crime_dateline}</th>
  8.                         <th>{lang crime_reason}</th>
  9.                         <th width="15%">{lang crime_operator}</th>
  10.                 </tr>
  11.                 <!--{loop $clist $crime}-->
  12.                 <tr>
  13.                         <td>
  14.                                 <!--{if $crime[action] == 'crime_delpost'}-->
  15.                                         {lang crime_delpost}
  16.                                 <!--{elseif $crime[action] == 'crime_warnpost'}-->
  17.                                         {lang crime_warnpost}
  18.                                 <!--{elseif $crime[action] == 'crime_banpost'}-->
  19.                                         {lang crime_banpost}
  20.                                 <!--{elseif $crime[action] == 'crime_banspeak'}-->
  21.                                         {lang crime_banspeak}
  22.                                 <!--{elseif $crime[action] == 'crime_banvisit'}-->
  23.                                         {lang crime_banvisit}
  24.                                 <!--{elseif $crime[action] == 'crime_banstatus'}-->
  25.                                         {lang crime_banstatus}
  26.                                 <!--{elseif $crime[action] == 'crime_avatar'}-->
  27.                                         {lang crime_avatar}
  28.                                 <!--{elseif $crime[action] == 'crime_sightml'}-->
  29.                                         {lang crime_sightml}
  30.                                 <!--{elseif $crime[action] == 'crime_customstatus'}-->
  31.                                         {lang crime_customstatus}
  32.                                 <!--{/if}-->
  33.                         </td>
  34.                         <td><!--{date($crime[dateline])}--></td>
  35.                         <td>$crime[reason]</td>
  36.                         <td><a href="home.php?mod=space&uid=$crime[operatorid]" target="_blank">$crime[operator]</a></td>
  37.                 </tr>
  38.                 <!--{/loop}-->
  39.         </table>
  40. </div>
  41. <!--{/if}-->
Copy the Code
 Author| Post time: 2019-06-21 06:14
| Show all posts
vot 2019-6-19 21:29
template/home/space_profile_body.htm

Remove the next block:

No , I don't want to remove the block.
Just wanted delete the Violation logs of a particular user. Like reseting it default.



You have to log in before you can reply Login | Register

Points Rules

Archive|Mobile|Dark room|CodersClub

Top.Mail.Ru
Top.Mail.Ru

2024-11-22 05:01 GMT+3 , Processed in 0.042836 sec., 9 queries .

Powered by Discuz! X3.4 Release 20230520

© 2001-2024 Discuz! Team.

MultiLingual version, Rev. 4301, © codersclub.org

Quick Reply To Top Return to the list