![]() |
hi,
division by zero errors that's probably because your warnings_options table is empty run this query in phpMyAdmin then set your AWS options and see if it get's saved after that those error messages should disappaer Code:
INSERT INTO `".TABLE_PREFIX."warning_options` values ('1','3.0.8', 'No', 'No','No','No','','','','7','10','10','8','','','8','','No','3','0','All','No',' No','No','No','No','No','15') |
Thanks for the great hack. I installed this hack an now the regular banning which I had befor is not working!! any ideas??
|
I am also getting bunch of emails saying that the table warning-options doesnt exsist. I checked in the mysql tables and the table actually exists there. What could be the problem? I get a blank page:
http://persianfootball.com/forums/mo...php?do=banuser |
Quote:
|
Is missing warn me like on the picture of that left to that
https://vborg.vbsupport.ru/attachmen...chmentid=21862 |
Quote:
This is a typical symptom of not having define the lines per page, for the reports, the last field in the Warning Options. First run this query, to see if you have one data line, in your warning_options table: SELECT * FROM warning_options If you do have a line there, with the warning options, then go into your admincp and in the warning options. Make sure you enter a value at the last field there. If you do not have a line in the warning options, run the query below: INSERT INTO `".TABLE_PREFIX."warning_options` values ('1','3.0.9', 'No', 'No','No','No','','','','7','10','10','8','','','8 ','','No','3','0','All','No','No','No','No','No',' No','15') Let me know if that solves your problem |
Quote:
|
Quote:
rgds |
sv1cec thanks :)
|
sv1cec,
Slightly offtopic question but i'm gonna ask anyway :ermm: if a member is banned and he trys to login he just get's the "no permission" page not mentioning he's banned i'd like to change that to something "you have have been banned for $time" etc etc you have any idea what phrase i need to edit ? $vbphrase[nopermission_loggedin] <<-- this one will help rgds |
Quote:
any help will be appreciated. |
Never, ever post your vBulletin files at this site or any other, you are breaking the rules of this site as well as the vBulletin License agreement.
Please refrain from doing so again. |
Quote:
Keep your fingers crossed. |
Quote:
Rgds |
Quote:
offcourse sv1cec we all need some rest now and then no hurry in it really just thought it would be nice to tell a user he/she is banned and that's the reason he/she can't view anything not the "privileges" thingy i keep my fingers crossed :nervous: i'll have a look myself to |
Quote:
|
Quote:
|
I uploaded my old file and its working again. Does this in any ways limit the Warning system's capabilities?
Thanks for your help. Quote:
|
Quote:
although it is definitely not the same, why don't you enable the "e-mail on ban" feature? In that way, when the user is banned, he gets an e-mail and he knows. (I know, I know, I'll look into it, it's just that I haven't have my coffee yet). Rgds ;-) |
Has installed, has created a rule with "Automatic Warnings".
Has written the message with ObsceneWords, I send - there is an error: Code:
Warning: Invalid argument supplied for foreach() in /includes/functions.php on line 1844 Code:
foreach($nav_array AS $nav_url => $nav_title) Code:
Error |
hello, i'm getting this error:
Code:
Database error in vBulletin 3.0.5: |
Hi im getting this error im mod/banning.php
Quote:
|
Great hack.
Whats annoying is that say someone PMed you with a blocked word in, they get a warning point thing. If you reply which automatically quotes it will give you a warning point thing yet you didnt swear it was the person who you quoted. |
Quote:
ALTER TABLE warning_options ADD COLUMN collector int(10) unsigned AFTER warner Remember to add any table prefix if you are using one. |
Quote:
Rgds |
Quote:
In your private.php file, find: PHP Code:
[php] $pm_message=$message; Then find: PHP Code:
PHP Code:
Rgds |
Thanks, Fixed!
|
Quote:
updated right now and don't forget our coffee sv1cec :up: |
well,
the bancheck is in /modcp/banning.php instead of the default "print_stop_message()" we could PHP Code:
rgds |
Quote:
What I am looking for, is the code which accepts the user name, possibly converts it to a user id and then checks whether this id exists in userban. No matter where I looked, I can't find it. No worries about the message, I can handle that, if only I can find the place where the ban check is made. As for the Mail when banned, it is in the Member Notification Options, in the AdminCP/Warning System Options. |
Ok, for the member who asked for a different message, when a banned member tries to log in the site, I have found the place to check it out and produce a different message. I am not releasing it as a new version though, as I want to elaborate on it a bit, but if you are in a hurry to put this into action, here is what you have to do:
Edit file functions.php and find: PHP Code:
PHP Code:
HTML Code:
<p><strong>$bbuserinfo[username]</strong>,<p> You do not have permission to access the forums, because you are temporarily banned.<p>Sorry, we hope to see you again in our forums soon. |
hi sv1cec ,
yeah i forgot about the logged in part it is /includes/functions.php you're right however i tryed this on my "testvb" board and this block of code is giving me a parse error PHP Code:
|
The new version includes the checking for the special message that banned users receive when they try to log in.
Rgds to all |
Quote:
thanks for the new version but i'm facing a problem the modification that takes care of the "special message" for banned users well i banned my test account just to see what happens and the PHP parser gives me this error Code:
Fatal error: Call to a member function on a non-object in /path/to/includes/functions.php on line 2066 PHP Code:
rgds |
Nothing's wrong with that phrase, what I ... forgot to tell you guys, was that you have to do another edit in the functions file. Scroll a bit higher up from where you made that mod, and find a phrase that looks like:
PHP Code:
PHP Code:
|
Quote:
i searched the web about this error and found out it was something with a global statement already i just had no idea where i'll get back to you if that works and do not worry about to much ;) |
sv1cec,
YES YES man can i buy a bucket of coffee :D :D working fine i modified the standerd "print_no_permission()" function PHP Code:
|
Three days with no reported errors or problems??!!!
OK, so now it's time to start thinking of new things to add. Rgds |
Quote:
I really don't like it to update a hack twice a week :D |
Quote:
|
All times are GMT. The time now is 06:32 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:
|