![]() |
There's a bug in this:
On the View Warnings AdminCP, remove warning and complete removal are linked as follows: http://www.forum.com/forums//admin_w...4&orderstring= they should be linked as ...forums/admincp/admin_warn.php... Additionally, when I go to a user's profile in the main forum and I view their warnings, I cannot remove them as it tells me that there is an Invalid User ID. |
I know what you mean about the large slabs, I'm the same way. :) I'll generally be able to figure out what's changed between what I have and what I'm supposed to replace it with and can hack it accordingly.
For some reason, this thing uses a customized error page and function. That's all fine and dandy, but I like everything to be as consistent as possible :D so I modified the warning system to use vB's "standard error" template. It's rather simple, to do so: Find this code in the includes/functions_warning.php: PHP Code:
PHP Code:
My advice to anyone who has a lot of modifications on their forum or a non-default skin would be... careful with the template edits ;) because with stuff like your postbit or memberinfo templates it's easy to mess stuff up if the code you're supposed to be replacing over isn't exactly as listed in the instructions. |
@TJFWeb
Changing the Colspan in this way will not work, view the page as a regular user :) If you found a bug, please report it to the bugtracker. RunError is already removed from the current developement build. |
I was wondering if you could give me some advice on customising your hack? (Which in general is VERY good and thanks for making it available).
On the board I admin we don’t use the warning points to trigger suspensions or bans, so I've set everything to figures such as 9999 for number of warnings before someone is automatically banned. However what I would also like to do is remove (from sight) all mentions of the warning points (not the number of warnings). I've edited postbit to remove the warning points totals, I’ve edited the PM and email templates so they don’t mention the points or points total. However I'm getting stuck on removing the columns that list the various warning points on the "View your warnings" page. Could you give me some pointers on what templates or files I need to edit and what to look for? As a suggestion, and I've no idea how many people would also find this useful but perhaps a feature for a later version would be something like a "Use points system? - yes or no" and if no is selected the system doesn’t use the points system and all the related points stuff (bans and so on are deactivated). |
If I understand that correctly, you have one warning point per warning, so your warnings number is equal to your warning points. Am I correct?
The templates which are used for showing the warnings are the warn_view?_.... You should also change the profile templates, so that they do not show the warning points. |
Thanks for the reply - what I'm looking to do is remove the columns in teh screengrab attached.
The problem I have is that the view seems to be made up of several templates? |
The templates are grouped together. In other words:
warn_view_top warn_view_row warn_view_end are the group which shows the warnings. All three have to be edited to remove those columns, when a user checks his own warnings. When an admin is checking a user warnings, then the templates are the warn_viewb_row, ...top and ...end. I hope this helps. |
Quote:
|
When i try to remove warnin from users (i'm have admin permisions):
_http://my.forum/Warn.php?do=RemoveWarning&id=1 I get the followin error: Quote:
UPDATED Fogot.... Version AWS 3.5b4 |
I think that KirbyDE has not updated the distribution file to correct this error. Let's wait for him to answer this, if not, I can email you a different Warn.php file.
|
All times are GMT. The time now is 01:58 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:
|