vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Warning Hack V1.5 (https://vborg.vbsupport.ru/showthread.php?t=65336)

Kmaster 11-14-2004 02:49 AM

Quote:

Originally Posted by sv1cec
OK, the paged layout for the Warning Logs is done.

You have to add a new column in your warning_options table, using the following SQL Query (remember to use the TABLE_PREFIX if you are using one):

alter table `warning_options` add warnings_per_page int(3)

After you've done this, use the attached admin_warn.php file. Sorry I can't provide a detailed step-by-step mods write-up, too many changes to make it viable.

Let me know if it works.

Rgds
------------
John


I found this error, when use the new admin_warn.php

Database error in vBulletin 3.0.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_v 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 warning_types wt on(wt.tid=w.warned_warning_id) ORDER BY w.warned_time DESC LIMIT 0,
mysql error: You have an error in your SQL syntax near '' at line 5

mysql error number: 1064

Date: Saturday 13th of November 2004 05:47:18 PM
Script: http://xxxxxxxx.xx/forums/admincp/ad...p?act=viewlogs
Referer: http://xxx.xx/forums/admincp/index.php?do=nav
Username: xxx
IP Address: xxx.x.xx.xxx

sv1cec 11-14-2004 07:01 AM

Quote:

Originally Posted by Kmaster
I found this error, when use the new admin_warn.php

Database error in vBulletin 3.0.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_v 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 warning_types wt on(wt.tid=w.warned_warning_id) ORDER BY w.warned_time DESC LIMIT 0,
mysql error: You have an error in your SQL syntax near '' at line 5

mysql error number: 1064

Date: Saturday 13th of November 2004 05:47:18 PM
Script: http://xxxxxxxx.xx/forums/admincp/ad...p?act=viewlogs
Referer: http://xxx.xx/forums/admincp/index.php?do=nav
Username: xxx
IP Address: xxx.x.xx.xxx


Try using the admin_warn.php attached here. It works in my 3.03.

Rgds

Kmaster 11-14-2004 09:25 AM

Quote:

Originally Posted by sv1cec
Try using the admin_warn.php attached here. It works in my 3.03.

Rgds

that's weird, I won't work for me. Still got same error.
enclosed found attached my current use version, hope this can help!!
thanks a lot.


rgds,

sv1cec 11-14-2004 10:09 AM

Quote:

Originally Posted by Kmaster
that's weird, I won't work for me. Still got same error.
enclosed found attached my current use version, hope this can help!!
thanks a lot.


rgds,

You are obviously using the new admin_warn.php with the page layout in the report. Did you remember to add the suggested column, in the warning_options table of your database? If not, you have to run the following query, and then go to your AdminCP/Warning System/Warning Options and fill in the number of rows per page, at the last field.

Let me know if it works.

The query is:

PHP Code:

alter table `warning_optionsadd warnings_per_page int(3

Rgds
------------
John

Kmaster 11-15-2004 12:46 AM

Quote:

Originally Posted by sv1cec
You are obviously using the new admin_warn.php with the page layout in the report. Did you remember to add the suggested column, in the warning_options table of your database? If not, you have to run the following query, and then go to your AdminCP/Warning System/Warning Options and fill in the number of rows per page, at the last field.

Let me know if it works.

The query is:

PHP Code:

alter table `warning_optionsadd warnings_per_page int(3

Rgds
------------
John

Yes, I'd added the query into database.
still get same error.

TCattitude 11-15-2004 01:53 AM

Quote:

Originally Posted by sv1cec
It all depends on what you mean by V2. If you are talking about the next version by Zero Tolerance, I do not know. If you are talking about my fully documented and enhanced hack, I hope it will be ready tomorrow.

All instructions are there, so that someone can make an install from scratch. It's just that this hack has evolved to something really big (19 new templates are required, plus several changes to existing templates) and I am trying to find a way to make the installation easier. I 'll try to immitate Zero Tolerance's installation method, but I am not good with XML and I do not want to release something like that, if I am not 100% sure it is OK. Tomorrow, I'll do some tests, for the automated installation.

Rgds
------------
John

Great news... i'll be waiting 4 that mod... hope soon ;)

Good luck.

sv1cec 11-15-2004 06:14 AM

Quote:

Originally Posted by Kmaster
Yes, I'd added the query into database.
still get same error.

OK, you added the column, but have you defined the Lines Per Page you want to see, in the Warning Options? What I can see from the error, is that it can't find the upper limit, something missing after "ORDER BY w.warned_time DESC LIMIT 0, " that comma. That's where it uses the lines per page.

Let me know.

Rgds

sv1cec 11-15-2004 06:16 AM

Quote:

Originally Posted by TCattitude
Great news... i'll be waiting 4 that mod... hope soon ;)

Good luck.

Well, I have almost everything ready, even the installation program is done (copied that from Zero Tolerance).

What I am waiting for, before releasing the hack, is Zero Tolerance's permission. You see, a lot of this code comes from his original hack, and I do not want to use it in a new hack, without his permission.

Rgds

Torqued 11-18-2004 04:04 PM

Quote:

Originally Posted by sv1cec
Well, I have almost everything ready, even the installation program is done (copied that from Zero Tolerance).

What I am waiting for, before releasing the hack, is Zero Tolerance's permission. You see, a lot of this code comes from his original hack, and I do not want to use it in a new hack, without his permission.

Rgds

Any update on releasing this? :)

sv1cec 11-18-2004 05:32 PM

Quote:

Originally Posted by Torqued
Any update on releasing this? :)

Anyone interested in acting as a guinea pig to test it out before releasing it?

My Sun run out of disk space, so I need to do some maintenance before I can test the whole installation thing. If someone is willing to try it out, it will speed things up significantly. All you need is a clean 3.0x installation (without Zero Tolerance's things).

I attach here the ... Features List, I think you will find it interesting:

- post- and non-post-related warnings
- hierarchical warning schema (mods can warn users, super mods can warn mods and users, admins can warn everyone, no same-level warnings)
- hidden or real warners
- customizable maximum warning points
- customizable ban days
- customizable ban user group and permanent ban user group
- supports incremental banning periods
- supports multiple warnings for the same post
- warned members are notified either by Private Message or e-mail
- maintains historical listings of issued warnings (even if deleted or expired)
- customizable warning types
- each warning type has predefined warning points associated with it
- each warning type has predefined maturity period, after which it is automatically removed
- reports for admin, and mods
- cron job included to automatically remove matured warnings
- uses vBulletin's cron job, to automatically unban banned users
- all options are setable in your AdminCP
- user warning points and number of bans viewable in your AdminCP user template.

rgds
--------------
John


All times are GMT. The time now is 04:20 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.01383 seconds
  • Memory Usage 1,761KB
  • 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
  • (2)bbcode_php_printable
  • (10)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
  • (10)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