Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Advanced Warning System (Beta Version) Details »»
Advanced Warning System (Beta Version)
Version: 3.5.0, by sv1cec sv1cec is offline
Developer Last Online: Mar 2022 Show Printable Version Email this Page

Version: 3.5.0 RC3 Rating:
Released: 09-08-2005 Last Update: 05-30-2006 Installs: 221
DB Changes Uses Plugins Template Edits
Additional Files Is in Beta Stage  
No support by the author.

Advanced Warning System


IF YOU ARE RUNNING vB 3.6, THERE IS A NEW THREAD FOR THIS HACK UNDER THAT VERSION. vB 3.6 USERS GO HERE:

https://vborg.vbsupport.ru/showthread.php?t=124477


This is a direct port of the Advanced Warning System, as it was implemented in vB 3.0.x. This port has all the features of AWS version 3.4.16, except the Notes.

For a complete description of AWS capabilities, please refer to the following thread:

https://vborg.vbsupport.ru/showthread.php?p=574374

The vB 3.5 compliant version of AWS includes:

1 Product XML (17 Plugins, 107 Phrases, 26 Templates, 43 Settings)
1 ACP Navigation XML
1 PHP Functions File
3 Images
2 PHP Frontend Files
1 PHP Admin CP File
1 PHP Mod CP File
3 PHP Cronjob Files

This port would not be possible, without the help of KirbyDE, to whom I am greatful. KirbyDE will also be responsible for supporting you here, with questions related to this particular release. Also, this port would not have been possible, without the help of Juan P hernandez, who offered me a free test system, in which the porting was performed.

The hack has been tested and it is believed to be bug-free, however since this is a major hack, I release it today (September 9th 2005) as beta.

I hope you all enjoy it.

History (Productversion)
3.5.b
Initial Version

3.5.b1
Fixed a typo that caused Errors in User Datamanager.
Fixed a wrong object reference in functions_warning.php

3.5.b2
Fixed a Bug that caused PHP Error Messages.
Fixed a Typo in the Install Code that causes mySQL Errors.
Updated the Template Edit instructions to be (hopefully) compatible with RC3

3.5.b3
Fixed User not showing up in automatic warning PMs
Fixed 2 missing Phrases
Fixed Hidden Warner being Used for Automatic Warnings
Fixed "View x's Warnings" Button in Usermanager not working

3.5.b4
Removed one unsued Phrase, added one missing Phrase
Fixed a Typo that caused PHP Errors when sending PMs
Fixed a Typo that caused PHP Errors upon Installation
Changed Product ID for Admin CP Navigation XML from vbulletin to aws, so it won't show up any longer if AWS is uninstalled/disabled.

A bug was found which didn't allow you to delete an entered Warning Type. Bug fixed in the current distribution file.

If you found a Bug, please report it at http://bugs.kirbydemos.ath.cx

This helps to keep issues organized, which can't be guaranteed if it's only posted in the Thread.
Thank you.

P.S.1: After you install the hack per the instructions, please update your installation with the separate files listed. They are newer files not included in the zip.

P.S.2: If you want to use the Notes feature, as it existed in AWS 3.4.16, please install AWS per the instructions in the zip file, and THEN follow the instructions included in the warn_notes_update_instructions.txt.

IMPORTANT NOTE: Please keep in mind that this hack is not supported. What this means is that I have no obligation to support it. The reason for that, is because I have no access to a vB 3.5 system any more, so I can't work on this hack any more. Andreas (or KirbyDE) who undertook the support of this version of the AWS hack in the beginning, is obviously too busy to support it. So you are on your own, at least as far as the interaction with vB is concerned. If you have an issue with the hack files themselves, I'll do my best to solve it, but without a test environment, it is not easy. So users of vB 3.5 beware!

P.S. May 31st 2006: The zip file uploaded today, should contain all the debugging done by Delphi, so it should be fine as it is. You do not need the other files listed at the right, only the zip. Download it and follow the instructions in it, for installing the hack. I leave the other files there, just in case some one needs them, they will be deleted later.

SV1CEC

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 09-09-2005, 04:11 PM
TruthElixirX's Avatar
TruthElixirX TruthElixirX is offline
 
Join Date: Sep 2004
Location: Oklahoma
Posts: 517
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
Database error in vBulletin 3.5.0 Release Candidate 3:

Invalid SQL:
select * from vb3_warning_types order by warn_points, warn_maturity, warn_name;

MySQL Error  : Table 'vb3x5.vb3_warning_types' doesn't exist
Error Number : 1146
Date         : Friday, September 9th 2005 @ 01:11:16 PM
Script       : http://www.supportcore.org/testvb/ad...n.php?act=view
Referrer     : http://www.supportcore.org/testvb/ad...dex.php?do=nav
IP Address   : 69.154.2.3
Username     : Chris
Classname    : vb_database
Where are the queries to run..I never saw them..O_o. also in my admincp the Warning options section (The drop down box) is jsut a blank box that expands to fil lthe options. Also when I go to the user's oage in the admincp to warn them it has no option to do this in the user quick links.


EDIT:: Okay the queries are in the product xml file. What could be causing it not to run the right queries though?
Reply With Quote
  #13  
Old 09-09-2005, 04:37 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@Kru
Hmm, there is a Plugin that sets the Fields.
Did you import it as a Product?
And yre you using vBulletin 3.5?

@RoryF
No, it sends a PM or eMail.

@TruthElixirX
There should be a Warn-Button ad the bottom of the left Column in User Editor.
The Tables should be created automatically, did you import it as a Product?
Reply With Quote
  #14  
Old 09-09-2005, 04:48 PM
Kru's Avatar
Kru Kru is offline
 
Join Date: Nov 2002
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KirbyDE
@Kru
Hmm, there is a Plugin that sets the Fields.
Did you import it as a Product?
And yre you using vBulletin 3.5?
Yes I imported it as a Product and of course I am using vb 3.5. otherwise I would have some problems to install this hack.

Everything works fines besides of registering a new user after I install this hack.

I removed hack and reinstalled it again but still same error.
Reply With Quote
  #15  
Old 09-09-2005, 04:55 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Registering works fine for me. Where exactly do you get Problems?
Btw: I meant are you using RC3?
Reply With Quote
  #16  
Old 09-09-2005, 07:01 PM
TCM TCM is offline
 
Join Date: Dec 2004
Location: 3.6.8
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome! Thanks a ton!

* TCM installs.

EDIT: Or not, it bugged up my boards.
Reply With Quote
  #17  
Old 09-09-2005, 07:17 PM
Kirk Y's Avatar
Kirk Y Kirk Y is offline
 
Join Date: Apr 2005
Location: Tallahassee, Florida
Posts: 2,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yipee! I'm so glad you ported this over, this is what I've been waiting for. This is by far the best Warning Hack... ever.

* acidburn0520 jumps for joy!
Reply With Quote
  #18  
Old 09-09-2005, 07:45 PM
TruthElixirX's Avatar
TruthElixirX TruthElixirX is offline
 
Join Date: Sep 2004
Location: Oklahoma
Posts: 517
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KirbyDE
@TruthElixirX
There should be a Warn-Button ad the bottom of the left Column in User Editor.
The Tables should be created automatically, did you import it as a Product?

Yes it is set as a product and no that column is not there.
Reply With Quote
  #19  
Old 09-09-2005, 07:49 PM
TosaInu's Avatar
TosaInu TosaInu is offline
 
Join Date: Jul 2004
Posts: 256
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Same problem as Kru. I'm using vb 3.5 rc3 on a fresh database.

Fatal error: Field alerts is not defined in $validfields in class vb_datamanager_user in /includes/class_dm.php on line 485

It's so much easier to get this installed now. I think though that the template notes require a bit of an update (possibly because rc3 has some changes in postbit-legacy).

Example

-
Code:
	<td class="alt1">
	<if condition="$show['messageicon'] OR $post['title']">
			<!-- icon and title -->
			<div class="smallfont">
				<if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
				<if condition="$post['title']"><strong>$post[title]</strong></if>
			</div>
			<hr size="1" style="color:$stylevar[tborder_bgcolor]" />
			</if>
is without
Code:
<td class="alt1">
and the replace should also be without that.

-The warningpoints are added for postbit, but not for postbit-legacy.

-Need to find
Code:
   <div>$post[message]</div>
		<!-- / message -->
in postbit-legacy
But only
Code:
		<!-- message -->
		<div id="post_message_$post[postid]">$post[message]</div>
		<!-- / message -->
can be found.

I like this plugin system
Reply With Quote
  #20  
Old 09-09-2005, 07:58 PM
TosaInu's Avatar
TosaInu TosaInu is offline
 
Join Date: Jul 2004
Posts: 256
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm not a coder, but I guess the problem is in class_dm_user.php.
This hack adds 5 fields to the database table user, but the script doesn't know what to do with those when a new user is added.

Here's a fix (WAIT for a real coder to really fix it)

Open includes/class_dm_user.php and find (located at top of file in
Code:
var $validfields = array(
)

Code:
'pmunread'           => array(TYPE_UINT,       REQ_NO),
Add below that

Code:
		'warnings'     => array(TYPE_INT,       REQ_NO),
		'warning_level' => array(TYPE_INT,       REQ_NO),

		'warning_bans'            => array(TYPE_INT,        REQ_NO),
		'alerts'            => array(TYPE_INT,       REQ_NO),
		'warn_notes'           => array(TYPE_UINT,       REQ_NO),
This allows to add users.
Reply With Quote
  #21  
Old 09-10-2005, 03:48 AM
Michael-DLR Michael-DLR is offline
 
Join Date: Feb 2002
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TosaInu
Same problem as Kru. I'm using vb 3.5 rc3 on a fresh database.

Fatal error: Field alerts is not defined in $validfields in class vb_datamanager_user in /includes/class_dm.php on line 485

It's so much easier to get this installed now. I think though that the template notes require a bit of an update (possibly because rc3 has some changes in postbit-legacy).

Example

-
Code:
	<td class="alt1">
	<if condition="$show['messageicon'] OR $post['title']">
			<!-- icon and title -->
			<div class="smallfont">
				<if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
				<if condition="$post['title']"><strong>$post[title]</strong></if>
			</div>
			<hr size="1" style="color:$stylevar[tborder_bgcolor]" />
			</if>
is without
Code:
<td class="alt1">
and the replace should also be without that.

-The warningpoints are added for postbit, but not for postbit-legacy.

-Need to find
Code:
   <div>$post[message]</div>
		<!-- / message -->
in postbit-legacy
But only
Code:
		<!-- message -->
		<div id="post_message_$post[postid]">$post[message]</div>
		<!-- / message -->
can be found.

I like this plugin system
This is the one place I am stuck to get the code in the template correct. The rest I was able to figure out. Does anyone know the right code to put in the template for this one?

Also, after clicking add warning from a post I get the following error:
Fatal error: Call to a member function on a non-object in C:\Program Files\Ensim\Sitedata\***\forums\includes\functions _warning.php on line 581
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:21 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06284 seconds
  • Memory Usage 2,335KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (12)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete