vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Administrative and Maintenance Tools - Advanced Warning System 3.6.7 (https://vborg.vbsupport.ru/showthread.php?t=124477)

Delphiprogrammi 08-19-2006 10:00 PM

Advanced Warning System 3.6.7
 
Advaned Warning System

This is a port of aws and i release this with permission...(yes i did ask the original author)

This version of the warning includes
  • 1 vbulletin 3.6.x product file (XML)
  • 1 admincp navigation XML
  • 1 functions file(functions_warning.php)
  • 3 images
  • 3 cronjobs
  • 1 modcp file to allow moderators to view warnings information without having to give admincp access(mod_warn.php)
  • 1 admincp file to manage the system options(admin_warn.php)
  • 1 XML to control permissions(bitfield_aws.xml)
For a completer list of the system features you can refer to this

This version will also require vbulletin 3.6.x to run.If you run 3.5.x or any other release then 3.6.x you will see a message.

This system is tested for a long time and i believe it's stable enough for a public release HOWEVER since this is a major hack and i'm just human please consider this first public run still as "beta"

instructions ow howto install can be found in the docs directory within the zip

statistics
  • 25 plugins
  • 27 templates
  • 5 new MySQL tables
  • 3 standard vbulletin tables alterd (user,post,and usergroup)
  • 827 phrases
  • 47 settings
updates

A problem has been found where no link is provided to view your own warnings(normal users) in the member profile only i fixed this.To get the fix you will need to reedit your "MEMBERINFO" template and reimport product-aws.xml (set allow overwrite to yes)

15-9-2006
I moved the cron jobs from the install/uinstall code to the product file.
version check url now uses https://vborg.vbsupport.ru/misc.php?...rsion&t=124477

to upgrade read upgrade.txt in the docs directory

24-9-2006

a product depency whas added the system will no longer install on PHP 5 (in response to continued error reports on that PHP version)

to report a possible bug

please go the system bugtracker here you can use the folowwing account

username:bugreporter
password:awsbug

no need to register yourself


30-11-2006
People on PHP 5 can follow this instructions to avoid the PHP version related error message BUT remember you are on your own if you do this.I won't upgrade my PHP until PHP 5 is there main stable release (www.php.net)


1-1-2007
A bug has been reported in the system.This bug whas causing vbulletin to throw an error when you try to use admincp => users=> add a new user

Quote:

Fatal error: Call to a member function clean_gpc() on a non-object in class_dm_user.php(2385) : eval()'d code on line 35
Solution

Edit plugin "AWS:warn link in usermanager" and replace all code with this

PHP Code:

$quicklinks["../Warn.php?" $vbulletin->session->vars['sessionurl'] . "do=WarnUserNoPost&id=" $vbulletin->GPC['userid']] = $vbphrase['aws_warn_user_admin']; 

i'll update the package when i get home ;)


Another Bug is fixed

This release includes a fix for the problem "call to member function on a non object class_dm_user.php)" when you try to add a new user manaually (after submitting the form)

kru89 08-20-2006 04:52 PM

thanks.. first one to install.. the only problem is i can't see the buttons.. look at the attached file.. plz help.. otherwise.. good release!

Shouzen 08-20-2006 05:10 PM

dammit, I can;t install this, if someone can help me it would be apprecited.

Delphiprogrammi 08-20-2006 05:29 PM

Quote:

Originally Posted by kru89
thanks.. first one to install.. the only problem is i can't see the buttons.. look at the attached file.. plz help.. otherwise.. good release!

you are using normal textlinks.You can't see both at the same time.You need to make a choice buttons or normal links in the manageoptions page there's a setting that controls this

Delphiprogrammi 08-20-2006 05:33 PM

Quote:

Originally Posted by Shouzen
dammit, I can;t install this, if someone can help me it would be apprecited.

are you trying to install on 3.5.x ? that's impossible

bashy 08-20-2006 05:38 PM

I have just uninstalled this (well the 3.5 one) it worked ok after the upgrade, its just that there is the infraction system now so i didnt see a need for this.

does this differ much from the infraction system that is already built in?

Delphiprogrammi 08-20-2006 05:46 PM

Quote:

Originally Posted by bashy
I have just uninstalled this (well the 3.5 one) it worked ok after the upgrade, its just that there is the infraction system now so i didnt see a need for this.

does this differ much from the infraction system that is already built in?

the infraction system is much more complicated.I don't recommend using both as this can cause confusion.You need to make a choice here however installing this (for trying for example) will not mess things up.I have made sure this works completely independent

Shouzen 08-20-2006 05:54 PM

I dont know how to install it. I have a 3.6.0 version. I was wondering if someone can help me?

bashy 08-20-2006 06:22 PM

Cheers for thie info Delphi

Shouzen, there is or will be a readme in the zip file, please read the instructions.

If your new to installing hacks then perhaps you should try a lighter hack 1st to get the hang of things.....Please ALWAYS BACKUP your DATABASE before trying any hacks!!!

jdk10 08-21-2006 03:51 AM

If you use postbit_legacy can you only do the steps for postbit_legacy, or do you have to do both postbit and postbit_legacy steps?

BETIServices 08-21-2006 05:33 AM

Anyone has a list of rules for warnings etc? that we could use as example to start.

Thanks!

Excellent MOD ++++++a Plus +++++

Installed :D

BETIServices 08-21-2006 06:29 AM

o.k after sometime copying and pasting as it was advised it was only one thing I did not find and is as follow:

PHP Code:

in template postbit_legacy find
   
<if condition="$show['reputation']"><div><if condition="$show['reppower']"><span id="reppower_$post[postid]_$post[userid]">$vbphrase[reppower]</span>: $post[reppower]</if><span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></if>
   ----------------------------------------------------------------------------------
   
below that 
   
<!-- Show warning points -->
   <if 
condition="$showpoints==1">
   <if 
condition="$post[alerts]>0">
   <
font color="#ff0000">
   <
phrase 1="$post[alerts]">$vbphrase[aws_alerts]</phrase>
   <
font color="#000000">
   </if>
   <if 
condition="$post[warns]>0">
   <
font color="#ff0000">
   <
phrase 1="$post[warns]">$vbphrase[aws_warnings]</phrase>
   <
font color="#000000">
   </if>
   <if 
condition="$post[warning_level]>0">
   <
font color="#ff0000">
   <
phrase 1="$post[warning_level]">$vbphrase[aws_warning_level]</phrase>
   <
font color="#000000">
   </if>
   <if 
condition="$post[warning_bans]>0">
   <
font color="#ff0000">
   <
phrase 1="$post[warning_bans]">$vbphrase[aws_warning_bans]</phrase>
   <
font color="#000000">
   </if>
   </if>
   <!-- 
End of show warning points --> 

Please let me know if anyone has the same problem or is just me.

Delphiprogrammi 08-21-2006 08:42 AM

Quote:

Originally Posted by BETIServices
Anyone has a list of rules for warnings etc? that we could use as example to start.

Thanks!

Excellent MOD ++++++a Plus +++++

Installed :D


https://vborg.vbsupport.ru/attachmen...7&d=1101243281

Delphiprogrammi 08-21-2006 08:45 AM

Quote:

Originally Posted by BETIServices
o.k after sometime copying and pasting as it was advised it was only one thing I did not find and is as follow:

PHP Code:

in template postbit_legacy find
<if condition="$show['reputation']"><div><if condition="$show['reppower']"><span id="reppower_$post[postid]_$post[userid]">$vbphrase[reppower]</span>: $post[reppower]</if><span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></if>
----------------------------------------------------------------------------------
below that 
<!-- Show warning points -->
<if 
condition="$showpoints==1">
<if 
condition="$post[alerts]>0">
<
font color="#ff0000">
<
phrase 1="$post[alerts]">$vbphrase[aws_alerts]</phrase>
<
font color="#000000">
</if>
<if 
condition="$post[warns]>0">
<
font color="#ff0000">
<
phrase 1="$post[warns]">$vbphrase[aws_warnings]</phrase>
<
font color="#000000">
</if>
<if 
condition="$post[warning_level]>0">
<
font color="#ff0000">
<
phrase 1="$post[warning_level]">$vbphrase[aws_warning_level]</phrase>
<
font color="#000000">
</if>
<if 
condition="$post[warning_bans]>0">
<
font color="#ff0000">
<
phrase 1="$post[warning_bans]">$vbphrase[aws_warning_bans]</phrase>
<
font color="#000000">
</if>
</if>
<!-- 
End of show warning points --> 

Please let me know if anyone has the same problem or is just me.

that code is there but its spread overal several line maybe it's just your editor search function that doesn't find it you could use one of the words like "reputation" to search for and see where you get

I just checked it.The code is there (line 85 on my postbit_legacy) but offcource you could have some other modifications in that template.However it is a little below the infractions stuff

Snake 08-21-2006 09:55 AM

Wow thanks a ton!

outlaw621 08-21-2006 01:20 PM

Been waiting on this. Thanks a bunch.

GoTTi 08-21-2006 03:04 PM

nice delphi -

that infraction system the new forum got is nothing compared to this still.

/me claps

Mirage Guardian 08-21-2006 03:29 PM

Quote:

instructions ow howto install can be found in the docs directory within the zip
Sorry, but what about upgrading instructions?

I'm using AWS3.5.0 (with 17 Plugins, 107 Phrases, 26 Templates, 43 Settings)

So, is there any new features?

apokphp 08-21-2006 04:39 PM

I used this back on 3.5. But since using 3.6 I don't understand why this mod is still around. Am I missing out on somethin here?

What is the benefit of using the mod over vb's built in system other than what seems to be a couple different options (that don't seem to be all that important IMO) and the overall "look" of the system?

Is there a significant benefit? Better features?

Delphiprogrammi 08-22-2006 12:44 PM

Quote:

Originally Posted by Mirage Guardian
Sorry, but what about upgrading instructions?

I'm using AWS3.5.0 (with 17 Plugins, 107 Phrases, 26 Templates, 43 Settings)

So, is there any new features?

it says in your profile you are running vbulletin 3.6.0 then it is impossible to use the 3.5.x version of this hack because that will mess up the database ....

admincp => products & plugins => add product => product-aws.xml

allow overwrite=> yes

Mirage Guardian 08-22-2006 01:30 PM

Quote:

Originally Posted by Delphiprogrammi
it says in your profile you are running vbulletin 3.6.0 then it is impossible to use the 3.5.x version of this hack because that will mess up the database ....

I've upgrade to vB 3.6.0 from a vB 3.5.x and ?AWS? was installed on the old ver.
It is still working like fire without any problem.
Actually I LOVE ?AWS? that much to modify its files for translation (It takes a week to do it) and I?ll never replace it with the built-in infraction system. ?AWS? is much customizable.

about the upgrading, you said:
Quote:

admincp => products & plugins => add product => product-aws.xml
allow overwrite=> yes
Is this will keep the current warnings database or would remove the old one?
In addition, what about template modifications? does it different from the old ver? or the old modifications will work fine?
I checked the new ver. And found that you did add many phrases (good work mate)
So, I think the template modifications won?t be the same all the way.
If you add a specific upgrading steps, that would be very helpful for people in my case.

Best Regards

ymy 08-22-2006 01:59 PM

thanks, Delphi-

nice job > I installed it and everything looks good .

Clicked install

xtreme-mobile 08-22-2006 02:45 PM

i cant see the buttons and cant see how many warning points people have got in the postbit thing

ive done the edits as posted before in this thread but nothing works

any ideas or is there instructions missing in zip? this is a clean install by the way :D

cheers

Delphiprogrammi 08-22-2006 02:53 PM

Quote:

Originally Posted by xtreme-mobile
i cant see the buttons and cant see how many warning points people have got in the postbit thing

ive done the edits as posted before in this thread but nothing works

any ideas or is there instructions missing in zip? this is a clean install by the way :D

cheers

did you set the permissions ? also that information in the postbit and MEMBERINFO templates only show up if there values are greater then 0
and keep in mind admincp =>advanced warning system => manage warning options => viewing options =>Who can view the Warning Points and bans? this should be set to mod

outlaw621 08-22-2006 03:39 PM

I did notice that in order for ANY member to see there own warnings you have to set "Can View Warnings" in "aws(Advanced Warning System) Permissions " to yes for each usergroup. Is this correct or is it a bug?
Again, great product.

Delphiprogrammi 08-22-2006 05:19 PM

Quote:

Originally Posted by Mirage Guardian
I've upgrade to vB 3.6.0 from a vB 3.5.x and “AWS” was installed on the old ver.
It is still working like fire without any problem.
Actually I LOVE “AWS” that much to modify its files for translation (It takes a week to do it) and I’ll never replace it with the built-in infraction system. “AWS” is much customizable.

about the upgrading, you said:Is this will keep the current warnings database or would remove the old one?
In addition, what about template modifications? does it different from the old ver? or the old modifications will work fine?
I checked the new ver. And found that you did add many phrases (good work mate)
So, I think the template modifications won’t be the same all the way.
If you add a specific upgrading steps, that would be very helpful for people in my case.

Best Regards

the zipfile is updated and there are instruction on howto upgrade an existing installation

Delphiprogrammi 08-22-2006 05:20 PM

Quote:

Originally Posted by outlaw621
I did notice that in order for ANY member to see there own warnings you have to set "Can View Warnings" in "aws(Advanced Warning System) Permissions " to yes for each usergroup. Is this correct or is it a bug?
Again, great product.

correct but you will not see anything if there are no warnings issued

outlaw621 08-22-2006 06:59 PM

Fantastic. Just wanted to make sure it was correct. Thanks for your quick reply.

Delphiprogrammi 08-22-2006 08:19 PM

Quote:

Originally Posted by outlaw621
Fantastic. Just wanted to make sure it was correct. Thanks for your quick reply.

Seems there is indeed a problem.If you login as a normal user (registerd without any special rights) a link should be provided to view your own warnings and this is missing.I just spotted this bug trying to fix it right now

problem found and fixed updating zip file ...

rinkrat 08-23-2006 04:41 AM

Great job!

jian 08-23-2006 11:37 AM

It doesn't work properly.

Whenever I try to change something in the admincp for a user, it gives.

Invalid SQL:
UPDATE vb3_user SET
### Bitfield: vb3_user.options ###
options = IF(options & 8, options - 8, options),
etc etc etc
MySQL Error : Unknown column 'warns' in 'field list'

Delphiprogrammi 08-23-2006 04:42 PM

Quote:

Originally Posted by jian
It doesn't work properly.

Whenever I try to change something in the admincp for a user, it gives.

Invalid SQL:
UPDATE vb3_user SET
### Bitfield: vb3_user.options ###
options = IF(options & 8, options - 8, options),
etc etc etc
MySQL Error : Unknown column 'warns' in 'field list'

hmmmz your warns field is gone ?

Code:

ALTER TABLE vb3_user ADD COLUMN warns INT(5) DEFAULT '0';

outlaw621 08-23-2006 07:09 PM

Quote:

Originally Posted by Delphiprogrammi
Seems there is indeed a problem.If you login as a normal user (registerd without any special rights) a link should be provided to view your own warnings and this is missing.I just spotted this bug trying to fix it right now

problem found and fixed updating zip file ...

Thank you. Updated and will advise if there are any problems.

sv1cec 08-24-2006 07:41 PM

Hey Delphi, congratulations on this! Nice work!

From what I read, you also added some permission features, good! One thing I changed in my forum site, was that I made the name of the Automatic Warning variable. As you may remember, the old AWS required you to create a warning type called "ObsceneWords", for the automatic warnings. With a few changes, it is now up to the admin to decide how this warning type should be called.

Again, nice work buddy!

Mirage Guardian 08-25-2006 04:58 PM

I did the upgrade & the old warnings sill ok.
But I got this database error:
Quote:

Database error in vBulletin 3.6.0:
Invalid SQL:
SELECT COUNT(*) AS users FROM user WHERE warns>0 OR alerts>0;
MySQL Error : Unknown column 'warns' in 'where clause'
Error Number : 1054
now what to do?

Delphiprogrammi 08-25-2006 05:59 PM

Quote:

Originally Posted by Mirage Guardian
I did the upgrade & the old warnings sill ok.
But I got this database error:

now what to do?

you did not reimport the product xml.Wheter you set "allow overwrite to" yes or no my guess is that you didn't touched the products system.Because if you try to add a product that's already there (and allow overwrite is set to no) vbulletin will stop you.....

you need to run

Code:

ALTER TABLE user ADD COLUMN warns INT(5) DEFAULT '0';
and you should be up and running again.That error most likely occources when you click the statistics link (warings per user) in the admincp

valuemdsupport 08-26-2006 08:24 AM

Hi,

Can you please look into my problem. The problem is warnings and alerts aren't correct. When i deleted a warning or an alert, the warnings or the alerts didn't decrease. See the attachment, you'll understand my problem. So, can you please tell me how to fix this by myseft or wait for new updates from you.

Thanks.

chipet 08-26-2006 10:26 PM

PHP Code:

$stylevar[htmldoctype]
<
html dir="$stylevar[textdirection]lang="$stylevar[languagecode]">
<
head>
    <
title>$vboptions[bbtitle] - $pagetitle</title>
$headinclude
</head>
<
body>
$header
$navbar
<BR>
<if 
condition="$bbuserinfo[userid]=='0'">


<
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center">
<
tr>
    <
td class="tcat" colspan="3">Guest No Permissions</td>
</
tr>
<
tr>
    <
td class="thead">Unable To View</td>
</
tr>
<
tr>
    <
td class="alt1" colspan="1">$vbphrase[aws_nopermissions]</td>
</
tr>
</
table>
<
br/>

<else />


$warn_page
<br />
</if>

$footer
</body>
</
html

This is the WARN style templet, whats wrong? Because I cant se the warn person text in the threads. :(
should it look like this in the 3.6.0 version?

Delphiprogrammi 08-27-2006 02:25 PM

Quote:

Originally Posted by valuemdsupport
Hi,

Can you please look into my problem. The problem is warnings and alerts aren't correct. When i deleted a warning or an alert, the warnings or the alerts didn't decrease. See the attachment, you'll understand my problem. So, can you please tell me how to fix this by myseft or wait for new updates from you.

Thanks.

can i ask ? when you deleted the warnings did you used the checkboxes and click the "complete removal" button or did you did you do it through the confirmation pages all one by one.Seems to be working ok here

Delphiprogrammi 08-27-2006 02:27 PM

Quote:

Originally Posted by chipet
PHP Code:

$stylevar[htmldoctype]
<
html dir="$stylevar[textdirection]lang="$stylevar[languagecode]">
<
head>
    <
title>$vboptions[bbtitle] - $pagetitle</title>
$headinclude
</head>
<
body>
$header
$navbar
<BR>
<if 
condition="$bbuserinfo[userid]=='0'">
 
 
<
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center">
<
tr>
    <
td class="tcat" colspan="3">Guest No Permissions</td>
</
tr>
<
tr>
    <
td class="thead">Unable To View</td>
</
tr>
<
tr>
    <
td class="alt1" colspan="1">$vbphrase[aws_nopermissions]</td>
</
tr>
</
table>
<
br/>
 
<else />
 
 
$warn_page
<br />
</if>
 
$footer
</body>
</
html

This is the WARN style templet, whats wrong? Because I cant se the warn person text in the threads. :(
should it look like this in the 3.6.0 version?

you should only get that error when you are not logged in ... remember to set the proper permissions for each usergroup


All times are GMT. The time now is 05:22 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
  • Page Generation 0.01891 seconds
  • Memory Usage 1,927KB
  • 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_code_printable
  • (5)bbcode_php_printable
  • (20)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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