The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#252
|
||||
|
||||
![]()
Set it up with no problems! Thanks again for such an awesome hack and awesome work
![]() ![]() |
#253
|
|||
|
|||
![]() Quote:
HTML Code:
Dear $user[username], You have been warned for one of your posts, which violated the Forums Rules. The reason you have been warned is because [b][i] $warn_type[warn_desc] [/i][/b](Warning Type = $warn_type[warn_name]), for which you have been given [b] $warn_type[warn_points] [/b] point(s). The post for which you are warned can be seen [URL="$vboptions[bburl]/showthread.php?p=$_POST[post]"]here[/URL]. The admin/moderator who warned you, entered this comment: ======================================= [i]$_POST[comment][/i] ======================================= Your total Warning Level at the moment is: [b] $level [/b] point(s). If you reach the maximum of [b]$warn_options[points_before_banned][/b], you will be banned from the Forums, for [b]$warn_options[banned_limit][/b] days. To see details about all the warnings you have received, until now, please click [URL="$vboptions[bburl]/Warn.php?do=ViewMyWarnings"]here[/URL]. Please reply back if you have a dispute. PHP Code:
Right below those two lines, add the following: PHP Code:
I hope this helps. --------- John |
#254
|
|||
|
|||
![]()
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 |
#255
|
||||
|
||||
![]()
* 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. ![]() |
#256
|
|||
|
|||
![]()
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: Invalid SQL: insert into vb3_pmtext values ('','1','Matt','You have been warned','You have been warned for one of your posts: click here to see it. Your warning level is now: 5. Click on the Quick Links menu above and select View Your Warnings, to see details about all the warnings you have received. The person who warned you, entered this comment: test. Please reply back if you have a dispute.','a:1:{i:5;s:9:\"BeasTboyz\";}','4','1096165529','1','1') mysql error: Column count doesn't match value count at row 1 mysql error number: 1136 Date: Saturday 25th of September 2004 09:25:29 PM Script: http://www.observedtrials.net/vb/Warn.php Referer: http://www.observedtrials.net/vb/War...d=5&post=73439 Code:
$DB_site->query(" Thanks! |
#257
|
|||
|
|||
![]() Quote:
|
#258
|
|||
|
|||
![]() Quote:
Rgds ------------ John |
#259
|
|||
|
|||
![]() 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") 244: {$liftdate=0; 245: } 246: else 247: {$liftdate=$time_unban; 248: } 249: $usergroupid=8 250: $DB_site->query(" 251: INSERT INTO " . TABLE_PREFIX . "userban 252: (userid, usergroupid, displaygroupid, customtitle, usertitle, adminid, bandate, liftdate) 253: VALUES 254: ($user[userid], $user[usergroupid], $user[displaygroupid], $user[customtitle], '" . addslashes($user['usertitle']) . "', $bbuserinfo[userid], " . TIMENOW . ", $liftdate)"); 255: $DB_site->query(" 256: UPDATE " . TABLE_PREFIX . "user SET 257: usergroupid = $usergroupid, 258: displaygroupid = $usergroupid 259: WHERE userid = $user[userid] 260: "); 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: Invalid SQL: insert into vb3_pmtext values ('','1','Matt','You have been warned','Dear BeasTboyz, You have been warned for one of your posts, which violated the Forums Rules. The reason you have been warned is because Other reasons not listed (Warning Type = Miscellaneous), for which you have been given 2 point(s). The post for which you are warned can be seen here. The admin/moderator who warned you, entered this comment: ======================================= test ======================================= Your total Warning Level at the moment is: 5 point(s). If you reach the maximum of 5, you will be banned from the Forums, for 3 days. To see details about all the warnings you have received, until now, please click here. Please reply back if you have a dispute.','a:1:{i:5;s:9:\"BeasTboyz\";}','4','1096188731','1','1') mysql error: Column count doesn't match value count at row 1 mysql error number: 1136 Date: Sunday 26th of September 2004 03:52:11 AM Script: http://www.observedtrials.net/vb/Warn.php Referer: http://www.observedtrials.net/vb/War...d=5&post=73439 Username: Matt IP Address: xx.xx.xx.xx Matt |
#260
|
|||
|
|||
![]()
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 |
#261
|
||||
|
||||
![]()
i'd still like expirable warnings
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|