![]() |
Quote:
Rgds |
One feature I thought would be interesting, is the history of the warnings a user has received. As the hack was until now, a user might have received 100 warnings, which have matured, and were not displayed anywhere. I am sure the moderators would like to know the past history, so I did some changes to include the past history in the whole thing.
The records in the warnings table, are no longer deleted, when the maturity period expires or the mods/admins remove a warning, they are just marked as "Inactive". In that way when a mod/admin asks to see the warnings of a user, he sees not only the ones which are currently active, but also the ones which got matured (and thus removed automatically) or deleted. The inactive warnings are shown with lighter letters than the active ones, when one asks to see the warnings., so they are easily distinguished. The new feature requires changes in Warn.php, in includes/cron/kill_warns.php and in some templates. It also requires that you add another field in your warnings table. This time, I provided accurate step-by-step instructions, in the attached text file, but remember that they are based on my files released in this post. I've also included a screenshot of how the inactive warnings look like. Guys, if some of you are using my modified hack, please post a note here, as I have no idea if you do like me adding features or you would prefer me to go do some other things. Small update (Tuesday, October 12th): If you do the mods included in this post, to use the historical aspect of warnings, the included admin_warn.php is better, so you might want to use that as well. Rgds ------------- John |
If you have done the mods suggested in https://vborg.vbsupport.ru/showpost....&postcount=303, you may change the template warn_addwarn, with this new one, it just improves on the functionality, opening all links in new browser windows.
This should be the contents of your warn_addwarn template: PHP Code:
---------- John |
Quote:
|
Looking over this hack just a tad, does it have NEW database tables? Basically altering the database.
|
does anyone know who i would go about getting the amount of warning points to go in the profile?
ive seen it on a forum so basically you dont have to click view warnings cos it shows amount of warning points in red bold text any ideas? dean |
Quote:
You have to modify the memberinfo template to have the warning points shown in there. But you can also have it in each and every post of every member, by altering the postbit/postbit_legacy template. Is that what you had in mind? Rgds ------------- John |
Quote:
Rgds ----------- John |
Quote:
|
yeh thats it mate i just want it to show up under there post count etca evertime they post
do i just need to edit the postbit files in the template? could you or anyone else post up the code etc to change or edit etc? many thanks Dean |
All times are GMT. The time now is 02:23 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|