![]() |
In my members warning section within there profile, the choose warning options is blank and none show up.
I have added warning to the system? Any ideas? Also..... My postbit_legacy template is differant from the basic one, can someone help us put the correct code in this template please. My Original Template: Code:
<td class="alt1"> Code:
<td class="alt1"> |
Quote:
We cross-posted, please send me a larger part of your template, what you posted is not enough for me to help you. Rgds Rgds |
Just installed this last night and I absolutely LOVE it!!! Instructions were excellent, and it installed without a single problem! Took me 2 hours to do it, lol, but it works perfect, I think...
The only issue I may have is that none of my moderators can see the WARN image. I can see it everytime I come across a post where the member was warned, but they can't see it at all, even posts they warned in their own forums. Is this the way it's designed to work? If not, where should I look to correct this, and if it is designed that way, is there something I can do to enable the mods to see it? Thanks! *edit* I'm running vB3.0.5, if it matters. |
Quote:
If the sign does not appear for your mods, while it appears for you (I assume you are the admin), check the postbit template (or postbit_legacy). This is the code that you should have in postbit (assuming your mods, supermods and admins are usergroups 6,5 and 7): HTML Code:
<!-- Show warned sign --> Oh, next release the Warn Sign behaviour changes a bit. Again, the management team will be able to see the sign and click on it to see the warnings the post has received, but if the "Who can see the warning level and bans" is set to "All" then the rest of the gang can see the sign (i.e. they can tell the post was warned), but they can't view the warnings. Rgds |
I dont see any warn sign and Im admin?
Id this right? |
Okay, that was my problem. Apparently it's not going to work properly because I have 6 usergroups between the mods, super mods, and admin. I'm guessing I should add the other three usergroups to each of the instances in postbit (actually legacy postbit) where that occurs?
|
Actually, now that I look at it, it may be a little more complicated than that. I've got everyone seeing the image now, but they don't all share the same abilities. My staff user groups are as follows: 6 & 13 are admins, 5 & 21 are super mods, and 7 & 20 are mods. With that in mind, what changes should I make to the legacy postbit?
*edit* One more question; is this supposed to allow any moderator to issue a warning anywhere, or only in their own forums? |
Quote:
To answer your second question, the mods can warn only in the forums they can moderate. |
That's pretty much what I figured, but my coding skills don't really exist, I'm an engine man. lol. What is the proper syntax for adding two user groups together like you are suggesting? I'm not asking for the whole code, but do I write "$bbuserinfo[usergoupid]==6, $bbuserinfo[usergoupid]==13" or "$bbuserinfo[usergoupid]==6 and $bbuserinfo[usergoupid]==13", etc. ? What's the proper way to write it out so that the browser recognizes those two go together?
|
Jeez, now I'm getting this when I try and warn someone from admincp
Database error in vBulletin 3.0.5: Invalid SQL: insert into warnings values('','8449','1','1105418299','test','','1','N ','A','','') mysql error: Column count doesn't match value count at row 1 mysql error number: 1136 Date: Monday 10th of January 2005 08:38:19 PM Script: http://www.letsgokings.com/bbs/Warn.php Referer: http://www.letsgokings.com/bbs/Warn....n=user&id=8449 Username: RinkRat IP Address: 66.214.41.130 |
Quote:
DESCRIBE warnings Rgds |
Quote:
HTML Code:
<if condition="$bbuserinfo[usergroupid]==6"> HTML Code:
<if condition="$bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==13"> |
Quote:
Code:
Host: localhost |
Quote:
That does not make sense. Your table has the right columns, the SQL statement is trying to insert the right number of values, what on earth is this? Here is my warnings table description: HTML Code:
wid int(15) PRI auto_increment Do me a favor, try to add a non-post related warning from a user's public profile. See if that produces the same error. Rgds |
OK here it is.
Code:
Database error in vBulletin 3.0.5: OK I just tried a warning from a thread and got this Code:
Database error in vBulletin 3.0.5: |
Quote:
PHP Code:
PHP Code:
Rgds |
Quote:
Well, it took a little trial and error, but I got it to work. If you're interested, the code I used follows... Again, Admin is 6 & 13, Super Mods are 5 & 21, and Mods are 7 & 20: HTML Code:
<if condition="$hierarchical=='Yes'"> |
Quote:
One thing I would suggest, is to avoid using the Hierarchical Schema, and declare those additional user groups, as protected user groups, so that they can't be warned. I know that not using the hierarchical schema reduces the functionality, in the sense that a super mod cannot warn a moderator, but it also simplifies things, which in your case is something you would like. Correction: This solves your Warn sign issue. But it does not solve the hack's operation issues. There are more places where you have to do the same changes, like for example, when the "Warn XYZ" and "View XYZ's Warnings". The code there also uses the group information to decide if the links should be visible or not. Also, in the place where the warning points and the number of bans is shown. It's none of my business of course, but why are you using two groups for each role? Rgds Rgds |
Quote:
Just throwing the few cents I got about this out there :) |
Quote:
I was going to say I noticed that the Warnings by Warners Statistic doesn't list anyone in the other three usergroups. If you get a chance, and have the time, I'd appreciate it if you could note where else I will need to make changes. I first tried adding an "OR" to each one, followed by it's counterpart, but that made it possible for all the staff to warn in every forum, and allowed the members to see the links. The way it is now, every staff member can see the WARN image, and the view links, but only the super mod, admin, and the specific mod for that forum can see and use the warn links. It may not be right, but so far, I absolutely love it. It took me a couple hours to install it, but I haven't received a single error message yet, and for me, that's an accomplishment worth celebrating. :) The two Admin usergroups are for webmaster and admin, which have slightly different abilities, but are still both admin. The rest of the usergroups were doubled a couple years ago when we decided to create a second usergroup for sponsoring members, sponsoring moderators, and sponsoring super mods, and everything has just been built around that ever since. I'm sure there was/is an easier method, but I'm a mechanic, not a coder, and this stuff is as foreign to me as cooking. lol. |
sv1cec,
i'm having a problem to upgrade to 3.0.8 with an SQL querry this sql querry Code:
ALTER TABLE `".TABLE_PREFIX."warning_options` ADD COLUMN warnings_before_banned int(5) NOT NULL default '0' AFTER points_before_banned WHERE oid='1' Code:
#1064 - You have an error in your SQL syntax near 'WHERE oid = '1'' at line 1 |
Quote:
And the value of that variable is going through a function which is supposed to replace the '. I am puzzled. |
Quote:
PHP Code:
PHP Code:
Let me know how you are progressing. Rgds |
Quote:
Stupid me!!! I am going to correct that in the zip. |
Quote:
I couldn't find that exact line in a fresh upload of the file but found something very close and changed it. This is what I get now. Code:
Database error in vBulletin 3.0.5: |
It appears as if all of the errors are listing the first value as being empty
values('','1742','1' Is that right? I don't know php/mysql real well so I have no idea. |
No, this is not your problem, this column is an auto-increment column, so you shouldn't enter a value.
Add the missing column by running this query: ALTER TABLE `warning_options` ADD COLUMN `caused_ban` char(1) AFTER warned_warning_id Then try again. |
OK here I go.. It's weird because I ran the upgrade script adn even went back and ran the install script.
|
Code:
Error Code:
Field Type Attributes Null Default Extra Action |
Quote:
ALTER TABLE `warnings` ADD COLUMN `caused_ban` char(1) AFTER warned_warning_id Then use the modification I told you before in the functions_warning.php and try to issue a warning. |
Hi,
I upgraded to 3.0.8 and have two questions. 1. In the user section in the admincp I have now two different links with the same name and output. See attachment. Can I delete one or are they really different? 2. I entered a lot of censored words but still the users don't get warned automatically when using them. sv1cec do you think you'll find time to take a look at this at my board next days? Kind regards jluerken |
Quote:
PHP Code:
- censored words - set the automatic warnings for posts to 'yes' - define an automatic warner - define a warning type called 'ObsceneWords' and charaterize it as automatic If one of them is not done, the warnings cannot be issued. If you have done all these and you still have problems, I can have a look at your site and try to figure out what's the problem. Rgds |
OK it looks like it worked!! Thanks so much for taking the time to see this through and for the prompt replies. This is part of what makes VB so cool is the great community. You rule!
Oh yeah, after I get the success message it gets forwarded to the wrong address "The requested URL /admincp/user.php was not found on this server." It's actually in /bbs/admincp/user.php Where can I fix this? |
Quote:
I will add it an test this in the next days. Thanks for the fast feedback. One more question. I have only one cron called: delete_old_warnings in my sheduled task folder but in the cron folder of 3.0.8 there are two files called kill_bans.php and kill.warns.php. Do I have forgotten to add a second sheduled job? |
Quote:
|
Quote:
Also, what is your $vboptions[bburl] ? |
Quote:
When I am in Admincp and issue a warning I get the success message "You have issued a warning" or whatever, then I'm forwarded to /admincp/user.php instead of /bbs/admincp/user.php (the correct location of bbs root is /bbs/). |
John,
I found a small typo in the instructions for 3.0.7 -> 3.0.8: For the code after // ########################## REQUIRE BACK-END : in this code: Quote:
Instead of ".TABLE_PREFIX." warning_options Should be ".TABLE_PREFIX."warning_options I was getting an error when trying to access my AdminCP before I fixed this. edited to add: Also, it is not saving my options when I click on "Update Warning Options" :( I had initially installed up to 3.0.3, so I ran the uninstaller script, uploaded the 3.0.8 files, then the 3.0.8 installer script, and then did the file edits for 3.0.3 -> 3.0.8. I figured that would be quicker/easier than all of the manual table/template edits. :D I'm also getting "Warning: Division by zero in /admincpanel/admin_warn.php on line 672" when trying to view "Statistics - Warnings per user" via the admincp. and "Warning: Division by zero in /admincpanel/admin_warn.php on line 1889" when trying to view "Statistics - Bans per User" via the admincp |
Rinkrat
OK, edit your Warn.php file and search for : PHP Code:
PHP Code:
|
Quote:
Space thingy, you are right, some stupid editor must have brought that in, sorry I'll correct that. Saving the warning options? Does it come up with any message? It's wierd, 'cause it works fine in both my test site and in the production one. Try downloading the zip again and upload the admin_warn.php to your server's admincp directory. The two division by zero errors you get, are because the warning_options are not saved and the program tries to divide by the number of lines per page, the last field in the warning_options, which is zero, since the value you entered didn't get saved. Try what I suggested and come back to me. Rgds |
All times are GMT. The time now is 01:56 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:
|