The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#272
|
|||
|
|||
Quote:
As I said, if you care, it's here, but don't expect me to provide step-by-step instructions, I just do not have them. I'll try to help you out, but that's all I can do. Rgds -------- John |
#273
|
|||
|
|||
Quote:
The minute I say "OK, I can go and rest a bit", here you come with a different thing! LoL I'll have to check on the first one, this is a tough one, because the hack works initially like that, when you reach the limit, it resets itself at the limit. I can change that, but I need to check what impact it will have overall. As for the second point, just alter your warn_viewtype_end template. Easy enough, if not let me know. Now, I go rest, before the twins wake up and my baby-sitting session starts. Rgds |
#274
|
|||
|
|||
Quote:
Quote:
Thanks for all of the help, Matt |
#275
|
|||
|
|||
Quote:
I am aware of this problem, it's just that I am not sure which is the best way to handle it. I assume that in some cases, leaving the code as it is, is a better option, in other cases, it's better to have a warning level above the limit, like when deleting warnings. To do it the way you want (i.e. to work properly when removing a warning, as far as the rremoved points are concerned), find the following line: PHP Code:
PHP Code:
---------- John |
#276
|
|||
|
|||
Quote:
That brings up errors when someone is already one below the ban level and I try to warn them again (to bring them 1 above the ban level), SQL errors: Code:
Database error in vBulletin 3.0.3: Invalid SQL: INSERT INTO vb3_userban (userid, usergroupid, displaygroupid, customtitle, usertitle, adminid, bandate, liftdate) VALUES (5, 10, 10, 0, '', 1, 1096290247, 1096549448) mysql error: Duplicate entry '5' for key 1 mysql error number: 1062 Date: Monday 27th of September 2004 08:04:08 AM Script: http://www.observedtrials.net/vb/Warn.php Referer: http://www.observedtrials.net/vb/Warn.php?do=WarnUser&id=5&post=73439 Username: Matt IP Address: xx.xx.xx.xx Matt |
#277
|
|||
|
|||
Quote:
That's another issue I have to deal with. See that the statement that is causing the problem, is the one which inserts an entry in the userban table, this is the table where the banned users are inserted. Now, I remember that you said that you do not ban the users, you just move them to another user group, so I am not sure how you want this handled. To verify that this is the case (I am sure it is), just comment that line, it should still increase the warn points for that user, but it will not enter his entry in the userban table. If you do not plan to ban users, then you'd better stick with the original hack, which allows you to move your users to another usergroup, and when the maturity period is over, they can be re-moved back to their original group. But this has to be done manually, from the "Unban members" option in the AdminCP. Matt, it's hard for me to suggest the best alternative, as I do not have in mind all the details of your environment. If you can come up with some guidelines (e-mail me directly), I'll try to help, but as mentionned before, I cannot commit to anything. Rgds ----------- John |
#278
|
||||
|
||||
Quote:
The only thing viewable by a member is the Warn Level (all members are displayed for everyone to see) and their warning page (only viewable by them and staff). My staff love this as originally everyone saw all links. You will have to reference with ZT's original instructions to see what is different for the 'postbit' template (additional navbar and MEMBERINFO template alterations by me): 1. In the 'postbit' template (you will have to find the equivalent place in the 'postbit_legacy' template yourself as I do not use it), Warn and View Warning only seen by staff. Warn Level are displayed for members (when level is above zero it changes colour). You can change the font colours to whatever you want. Postbit Templates -> postbit:- Find: PHP Code:
PHP Code:
PHP Code:
PHP Code:
2. I put a 'View My Warnings' link in 'Quick Links' on the navbar (as staff can't get warned they will not see this). Navigation / Breadcrumb Templates -> navbar:- Find: PHP Code:
PHP Code:
3. For members public profiles I have added a view warnings (viewable by staff only) and Warning Level (everyone can see) Member Info Templates -> MEMBERINFO:- Find: PHP Code:
PHP Code:
PHP Code:
PHP Code:
That is all I really did, so if you find use for it go right ahead and use it JD. |
#279
|
|||
|
|||
Thank you very much. I'm putting the finishing touches on my new site and want to have these same features. I'm no coder either, so I won't tell.
|
#280
|
||||
|
||||
I would like other groups to be able to see the warned reasons, besides those that can moderate. I haven't been able to figure out how to do this yet. Any suggestions?
|
#281
|
|||
|
|||
Quote:
PHP Code:
1. Is not made by an admin or a mod. 2. If the member viewing the post is either a mod or admin. If these are true, it shows the "View Warnings" link. You may add other conditions within the OR parenthesis, to show the link to other groups. Rgds |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|