![]() |
Set it up with no problems! Thanks again for such an awesome hack and awesome work ;) I'd expect no less from you. :p
|
Quote:
HTML Code:
Dear $user[username], PHP Code:
Right below those two lines, add the following: PHP Code:
I hope this helps. --------- John |
One issue I had with this hack, is the fact that it uses a separate table, to maintain those members which get banned. If you do that, then you have to manually change their status to unbanned, when the banning period expires.
Why can't we use the normal table, in which vB stores the banned users, called "userban"? In that way, we can have the vB's cron job take care of the unbanning. For those who are interested in this, all you have to do, is the followings: In your warn.php file, find the following line: PHP Code:
PHP Code:
Also, it is obvious, that if you use this mod of mine, any future improvements by the author of this hack, might not work, so use at your own risk. I'll try to help anyone who has issues with the above mods, but I can't promise any response times. Rgds ------------ John |
* jd clicks install *
I have been testing this for a while, it is great just installed it on my live forum. I have made a few changes mostly conditionals so only staff can see the warn and view warn text in the postbit template, also added a Warn Level indicator for everyone (except staff) to see, also added the same in the MEMBERINFO template. Thank you. JD. :) |
I get SQL errors when trying to send the message using both the original method by Zero Tolerance, and the template method by sv1cec
Here is the error with the stock code: Code:
Database error in vBulletin 3.0.3: Code:
$DB_site->query(" Thanks! |
Quote:
|
Quote:
Rgds ------------ John |
Quote:
I have attached my Warn.php file so you can see exactly what it says. When I change Warn.php so that it adds a user to the normal vB banned usergroup I get this error and this error only when attempting to warn a user or view their warning level: Code:
Parse error: parse error, unexpected T_VARIABLE in /home/observed/public_html/vb/Warn.php on line 250 Code:
243: if($warn_type['warn_permban']=="Yes") When I change the private message function so that it uses the template instead of the stock way it notifies a user of a warning I get this mySQL error: Code:
Database error in vBulletin 3.0.3: Matt |
Matt,
The first error is easy, you need to add a semicolon at the line which says: $usergroupid=8 Change that to $usergroupid=8; As far as the second mistale is concerned, have you commented out both lines starting with "$messageb=...."? There are two lines there, looking like: PHP Code:
PHP Code:
My warn.php looks like that, in that area: PHP Code:
Rgds ---------- John |
i'd still like expirable warnings
|
All times are GMT. The time now is 08:58 AM. |
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:
|