vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Advanced Warning System (Beta Version) (https://vborg.vbsupport.ru/showthread.php?t=95921)

EdQ 09-15-2005 05:12 AM

It looks all there.

So if the Cut-off is 0 the PM is not disabled???

KimmiKat 09-15-2005 08:29 AM

Really nice Mod! :)

Quote:

Originally Posted by Chris_D
Been looking forward to this coming out for 3.5 :D

I liked Zero Tolerance's warning hack. Very well made and lots of nice features, but unfortunately I like this because it gives you the chance to have pre-defined warnings where Zero's all seemed to be free-entry. This is much better for a bigger board.


sv1cec 09-15-2005 11:15 AM

No, if the PM Cut-Off is set to 0 then each warning you issue, should result in a PM send to the warned member. Even if the warning points reach the maximum (the ban limit - 1), the member should still receive a PM and be able to use the PM System.

Delphiprogrammi 09-15-2005 11:16 AM

Quote:

Originally Posted by sv1cec
When does this appear?

on all the pages of aws regardless what you do "view your warning" "warn a user" etc etc other people don't have this problem so it must be something i did wrong but i doublechecked the template edits ...

sv1cec 09-15-2005 11:26 AM

Quote:

Originally Posted by Delphiprogrammi
hi people,

is it normal i get such an "ugly" area in the warning system ? you can see what i mean in the attached screenshot now that's ugly !

Check your warn_viewtype_end template and find something like this:

Code:

<td class="tfoot" colspan="8" align="right">
Your template should have a value of 7 or something. Count the number of columns above the line which is wrong, and change the colspan to the value you find.

Rgds

Delphiprogrammi 09-15-2005 12:25 PM

Quote:

Originally Posted by sv1cec
Check your warn_viewtype_end template and find something like this:

Code:

<td class="tfoot" colspan="8" align="right">
Your template should have a value of 7 or something. Count the number of columns above the line which is wrong, and change the colspan to the value you find.

Rgds

that did it thanks John

EdQ 09-15-2005 02:17 PM

Quote:

Originally Posted by sv1cec
No, if the PM Cut-Off is set to 0 then each warning you issue, should result in a PM send to the warned member. Even if the warning points reach the maximum (the ban limit - 1), the member should still receive a PM and be able to use the PM System.

Thats what I thought. But as soon as I warn a user. I cannot send them a PM.

sv1cec 09-15-2005 04:07 PM

Now, I am totally confused. When you warn a user, ]b]YOU[/b] cannot send them a PM? When PM is off for a user, he can not access the PM system, how did you manage to affect YOUR PM system? Can you send a PM to a user you have not warned?

EdQ 09-15-2005 04:13 PM

That is correct, I cannot sent the user I warned a PM. I verified that PM's are turned on for the warned user.

I can PM other users.

Quote:

user has chosen not to receive private messages or may not be allowed to receive private messages. Therefore you may not send your message to him/her.

sv1cec 09-15-2005 04:18 PM

Check the edits you have made in private.php. I can't understand why this happens, this is a first.

Oh wait a minute, this is 3.5 right? Oh, I guess KirbyDE should take a look at this. I do not know what to suggest.

EdQ 09-15-2005 04:24 PM

Disregard, the user hit the ban threshold and I didn't realize he was banned.

Sorry.....

Andreas 09-15-2005 04:26 PM

Quote:

Originally Posted by sv1cec
Check the edits you have made in private.php. I can't understand why this happens, this is a first.

There are no edits in private.php ;)

EdQ 09-15-2005 04:27 PM

How long does the PM cut-off last for?? I am guessing it follows the warn maturity??

If so, can it be set to increment like bans??

I have my maturity set to 30 days and bans to increment starting at 1 day.

It looks like PM cut-off will last longer than the ban.

sv1cec 09-15-2005 05:42 PM

Quote:

Originally Posted by KirbyDE
There are no edits in private.php ;)

I guessed so, but for the name of God, I can't tell what is the problem with this guy, if you have a clue, I am listening.

sv1cec 09-15-2005 05:44 PM

Quote:

Originally Posted by EdQ
How long does the PM cut-off last for?? I am guessing it follows the warn maturity??

If so, can it be set to increment like bans??

I have my maturity set to 30 days and bans to increment starting at 1 day.

It looks like PM cut-off will last longer than the ban.

PM Cut-off depends on the points the member has. So yes, it follows maturity. The maturity depends on the warning type. Less severe warning types should have a small maturity, more severe ones, should have larger.

WNxWakko 09-17-2005 04:02 AM

When you had this for 3.0, we modded it so that it didnt have two segments 1. post related 2. profile related. We combined it so the system would just run off one set of programmed warnings and if it was post related it took the info, if it was not post related, then it didnt show any thead info. It seems more logical to have the system this way.

Reason is, what if you have a rule that could be either post related or not post related. Seems silly to have to program that same law twice in the system.

Cant you just combine it? Drop the post related/non post related feature and just make it one set where the system pulls the thread link if the warn comes from the post or not if from profile?

I just dont remember how to merge it from a year ago and really dont want to go through that again.

Andreas 09-17-2005 04:07 AM

Seems to be more logical to me to have separate warning types.
Don't know hiw sv1cec thinks about it, but I think it should not be changed.

WNxWakko 09-17-2005 04:09 AM

Why have two seperate. What Im saying is the way we modded this mod a year ago was the system determined if it was post or nonpost related in itself.

I have 10 laws which have different criterias and could be both, so that means I have to create 20 warnings in the system, 10 for each and when you look at the summary page showing all the warnings you could get it looks horrible with 10 dupes.

sv1cec 09-17-2005 04:40 AM

It could be modified to work as WNxWakko, but what's the reason? I fail to see the reason to spend some hours recoding that, just to save up some copying and pasting. I certainly do not have the time to do it.

Xplorer4x4 09-17-2005 04:41 PM

Ok well I have several problems. Here we go:

1)First problem comes up when using the AWS menu in ACP. I can use the managing warning options but when I click Manage Warning Types I see the bar that sayd Current Warning Types but I get a DB error above it:
PHP Code:

Database error in vBulletin 3.5.0 Release Candidate 3:
Invalid SQL:
select from warning_types order by warn_pointswarn_maturitywarn_name;
MySQL Error Unknown column 'warn_maturity' in 'order clause'
Error Number 1054
Date         
SaturdaySeptember 17th 2005 12:29:21 PM
Script     
: /forums/admincp/admin_warn.php?act=view
Referrer     
: /forums/admincp/index.php?do=nav
IP Address 
12.220.52.153
Username     
Xplorer4x4
Classname    
vb_database 

Warn User and View User Warnings. However when i click View Warnings Logs I get a white DB Error page:
PHP Code:

Database error in vBulletin 3.5.0 Release Candidate 3:
Invalid SQL:
select w.*,u.username as wusername,u.userid as wuserid,wt.*,wuser.username as warned_username_v,wuser.userid as warned_userid_vruser.username as removed_by_v, (w.warned_time+wt.warn_maturity*24*60*60) AS maturitydate from
warnings w
left join user wuser on
(wuser.userid=w.warned_user)
left join user u on(u.userid=w.warned_by)
left join user ruser on(ruser.userid=w.removed_by)
left join warning_types wt on(wt.tid=w.warned_warning_idORDER BY w.warned_time DESC LIMIT 015;
MySQL Error Unknown column 'wt.warn_maturity' in 'field list'
Error Number 1054
Date         
SaturdaySeptember 17th 2005 12:30:41 PM
Script     
: /forums/admincp/admin_warn.php?act=viewlogs
Referrer     
: /forums/admincp/index.php?do=nav
Username     
Xplorer4x4
Classname    
vb_database 

When I click the setting for Statistics - Warnings For Users I get a DB Error:
PHP Code:

Database error in vBulletin 3.5.0 Release Candidate 3:
Invalid SQL:
SELECT COUNT(*) AS users FROM user AS user where warnings>OR alerts>0;
MySQL Error Unknown column 'warnings' in 'where clause'
Error Number 1054
Date         
SaturdaySeptember 17th 2005 12:35:34 PM
Script     
: /forums/admincp/admin_warn.php?act=viewwarnedusers&type=warnings
Referrer     
: /forums/admincp/index.php?do=nav
Username     
Xplorer4x4
Classname    
vb_database 

Also take note I had this installed on vB3.0. I noticed in the Statistics-Warnings Per Type that all my old warnings descriptions are active, but the warnings issued count is off.

I also had some problems with my postbit_legacy template, but I assume thats what I get for doing template mods at near 4AM:p.

Any ideas?

Andreas 09-17-2005 06:33 PM

I suggest to uninstall the product and then import the XML again.
Please note that this will delete all your old warnings etc.

mcyates 09-17-2005 07:56 PM

I keep getting this error when i enable the warning system (when i try to reply to messgaes or post new ones)

Code:

Fatal error: Call to a member function on a non-object in /home/myfootba/public_html/includes/class_dm.php(474) : runtime-created function on line 1

Andreas 09-17-2005 08:07 PM

Do you use RC3?

mcyates 09-17-2005 08:42 PM

No RC 2 is that the problem?

Andreas 09-17-2005 08:43 PM

Yes it is.

mcyates 09-17-2005 09:00 PM

Quote:

Originally Posted by KirbyDE
Yes it is.


Ok thanks, looks like i'll have to upgrade then!!

eNforce 09-17-2005 09:03 PM

Instead of having buttons or images for "Warn USER" & "View USERS Warnings" would I be able to use an image?

TruthElixirX 09-17-2005 09:09 PM

I believe this is a preconfigured option.

AWS Options > Manage Warning Options > Formatting Options > Text/Buttons

Then take the three preincluded iamges and make new ones and name them the same as the old ones and upload.

eNforce 09-17-2005 09:14 PM

The only images included are closeOFF.gif, closeON.gif & warn.gif

I want to change Warn Ritch & View Warnings into images, not text or the buttons ?

Andreas 09-17-2005 09:17 PM

Edit Template postbit/postbit_legacy as you like

[Stryder] 09-17-2005 11:24 PM

Where do you set up the warning types, I can't find it.

Andreas 09-17-2005 11:28 PM

ACP / Advanced Warning System

Xplorer4x4 09-17-2005 11:53 PM

When T instal the product XML there is a Phrase Error even thought it updates all the templates.

Parse error: parse error, unexpected ';' in /forums/admincp/plugin.php(1192) : eval()'d code on line 12

The hack also caused a DB error whenever I tried to edit a user.

Andreas 09-18-2005 12:22 AM

Which product Version did you try to install?

Xplorer4x4 09-18-2005 03:38 AM

I had an old product version, but still having a database problem when I try to edit a user. I uploaded the new PHP files just to be safe. It does not happen if I disable this hack.

PHP Code:

 Database error in vBulletin 3.5.0 Release Candidate 3Invalid SQL:
UPDATE user SET
### Bitfield: user.options ###
options = IF(options 8options 8options),
options = IF(options 1024optionsoptions 1024),
options = IF(options 16optionsoptions 16),
options = IF(options 256options 256options),
options = IF(options 512options 512options),
options = IF(options 32options 32options),
options = IF(options 2048optionsoptions 2048),
options = IF(options 4096options 4096options),
options = IF(options 1optionsoptions 1),
options = IF(options 2optionsoptions 2),
options = IF(options 4optionsoptions 4),
options = IF(options 64optionsoptions 64),
options = IF(options 128options 128options),
options = IF(options 32768options 32768options),
usertitle 'Wrestling Student',
customtitle 0,
username 'Mika',
email '',
languageid 1,
homepage '',
birthday_search '1972-01-18',
birthday '01-18-1972',
icq '',
aim '',
yahoo '',
msn '',
parentemail '',
posts 101,
referrerid 0,
ipaddress '***.***.***.***',
ucash '1838.59',
vbookie_cash 500,
alerts 0,
warnings 0,
warning_level 0,
warning_bans 0,
usergroupid 13,
reputationlevelid 5,
reputation 20,
pmpopup 1,
autosubscribe = -1,
threadedmode 0,
showvbcode 1,
styleid 0,
timezoneoffset '-6',
daysprune 0,
joindate 1125405420,
lastactivity 1127005860,
lastpost 1127005860,
membergroupids ''
WHERE userid 125MySQL Error Unknown column 'alerts' in 'field list'
Error Number 1054
Date         
SaturdaySeptember 17th 2005 11:27:07 PM
Script     
: /forums/admincp/user.php
Referrer     
: /forums/admincp/user.php?do=edit&u=125
IP Address 

Username     Xplorer4x4
Classname    
vb_database 

I am still getting a completley white DB error page(not just the main frame) when I click Statistics - Warnings Per User.
PHP Code:

Database error in vBulletin 3.5.0 Release Candidate 3:
Invalid SQL:
SELECT COUNT(*) AS users FROM user AS user where warnings>OR alerts>0;
MySQL Error Unknown column 'warnings' in 'where clause'
Error Number 1054
Date         
SaturdaySeptember 17th 2005 11:35:18 PM
Script     
http://www.xtremepain.net/forums/admincp/admin_warn.php?act=viewwarnedusers&type=warnings
Referrer     http://www.xtremepain.net/forums/admincp/index.php
IP Address 
Username     Xplorer4x4
Classname    
vb_database 

I am also noticing that if a user has entered a yahoo ID, 2 vertical columned yahoo icons apear under the typical horizontal row of online icons.

I also have a cutom profile field on my postbit_legacy. This has changed the font of it as well.

NOTE That I have not installed any template mods yet.

Any idea how to fix this? Thanks Kirby.

Andreas 09-18-2005 05:51 AM

Did you use the 3.0 Version and still have old Data (warnings, etc.) in your database?
If not I suggest to uninstall and then import the XML again.

There is no way your Templates can be affected if you did not apply Template Edits yet.

SkyShadow 09-18-2005 09:37 AM

I have installed a old version of AWS. I mean it was 3.4.10.

Is it possible to use the old databases with the 3.5. version of this hack?

Andreas 09-18-2005 10:01 AM

Yes, should work just fine.
To be 100% safe, I suggest to backup AWS tables (warnings, warn_notes, pmtext_warned, ban_dates; maybe also user and userban) first.

Xplorer4x4 09-18-2005 04:56 PM

Quote:

Originally Posted by KirbyDE
Did you use the 3.0 Version and still have old Data (warnings, etc.) in your database?
If not I suggest to uninstall and then import the XML again.

There is no way your Templates can be affected if you did not apply Template Edits yet.

I uploaded the latest XML and PHP files. It erassed all the previous warning data.

As far as the Yahoo icon problem goes, well I only installed two hacks yesterday and I uninstalled the other(PayPal Donations Hack).

Thanks.

Chad F. 09-18-2005 06:29 PM

When I try to delete a warning type it says "Unable To Find Warning Type [ Go Back ]"


All times are GMT. The time now is 03:15 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
  • Page Generation 0.02025 seconds
  • Memory Usage 1,893KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (5)bbcode_php_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete