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)

Andreas 10-18-2005 06:11 AM

can_moderate() seems to be the correct way, as only this assures that the User is really a moderator. Therefore I'd vote not to change that.

klinsek 10-18-2005 07:33 PM

Ive been racking my brain trying to figure out why the install queries wouldn't run and add tables. Then it dawned on me that even though I am using a clean install of Gold, that our DB still has reminances of Zero's old warning system.

Anyone know off the top of thier head which columns I should dump from the previous version to allow a clean install of this KICK BUTT mod?

Thanks much.

akanevsky 10-18-2005 07:48 PM

Quote:

Removed one unsued Phrase
"unsued".. lol :)

Xplorer4x4 10-18-2005 08:31 PM

@Kirby and Sv1

Good news guys, it seems that i went through the options for the AWS and enabled "Do you want to use the Notes sub-system?" and as of now both the notes and view warnings funtions are showing up in my postbits.

I STILL can not make warnings for Non-Post related offenses even though the funtion is disabled.

Xplorer4x4 10-18-2005 08:38 PM

Quote:

Originally Posted by Darat
Is it possible to allow all registered users to view the warnings issued to a member as the Mods can? (But obviously not warn someone. :) )

@Dart and Sv1 shouldn;t changing this option Who can view the Warning Points and bans? to all rather then mnament work rather the making code changes to the plug ins?

cynix2 10-19-2005 09:50 AM

i dont know if this was suggested yet or not, but a possible auto warn type could be double posting (shouldnt be too hard to make)

Xplorer4x4 10-19-2005 06:02 PM

Although the notes function is showing up in the template, it pulls up a page with no body to it. Just my Navbar and my footer templates.

kall 10-19-2005 07:48 PM

Quote:

Originally Posted by Xplorer4x4
Although the notes function is showing up in the template, it pulls up a page with no body to it. Just my Navbar and my footer templates.

Isn't it that we are supposed to use the link in the AdminCP side bar, and not the one in Vbulletin Options?

ie: Where you have enabled Notes is the part that is not supposed to be used.

akanevsky 10-19-2005 07:54 PM

Uhh... Double posting should not be punished, because it is prevented by vB and is not usually done on purpose :)

Xplorer4x4 10-19-2005 08:26 PM

Quote:

Originally Posted by kall
Isn't it that we are supposed to use the link in the AdminCP side bar, and not the one in Vbulletin Options?

ie: Where you have enabled Notes is the part that is not supposed to be used.

You lost me. Bassicly from what I see the add note in the postbit is calling to
http://mypage.net/forums/Warn.php?do...=136&post=9550
instead of
http://mypage.net/forums/usernote.php?do=newnote&u=136

Quote:

Uhh... Double posting should not be punished, because it is prevented by vB and is not usually done on purpose
Is this a stock feature because I seem to have missed it?:confused: I thought this was a hack for vB.org?

sv1cec 10-20-2005 12:35 PM

I am totally lost here, so a few clarifications:

- The Notes IS NOT implemented yet in AWS 3.5. It's a feature I added in the last release of AWS 3.4.x but has not been ported. So either edit your templates to remove the Note button ir just don't use it.

Double posting, as someone suggested, can be two things: (A) The same post, twice, in the same thread, which is prevented by vB but sometimes occurs and (B) The same post in more than one threads in more than one forums. The second can not be trapped by AWS, at least not in an easy way.

Quote:

Originally Posted by Xplorer4x4
@Dart and Sv1 shouldn;t changing this option Who can view the Warning Points and bans? to all rather then mnament work rather the making code changes to the plug ins?

This option does not allow you to see what particular warnings a member has received, only how many warnings.

cynix2 10-20-2005 09:51 PM

i have been trying to make a slight modification to the AWS
i want additional users in admin/mod/smod usergroups to also have warn powers

for example, i subhost forums, each forum i subhost gets a moderation group and someone is set as group leader (joinable group) others request to join the group and the leader approves (they are now additional users) they should also have warn powers where ever the group leader (who is a primary user) does

i've made a few changes to the product xml file and marked where they are with "//membergroupids" (it should be pretty obvious what i did)

anyways i think this would be a good feature, something to consider adding permanently

*EDIT*
i almost forgot - it doesnt work, so i need someone to look at it and see if they can fix it - right now it doesnt show the warn buttons to additional OR primary users (so i broke it)

*EDIT AGAIN*
okay here is a working version (non working version removed)

cynix2 10-20-2005 11:05 PM

ok uhm, after re importing the original AWS product i still dont see the warn buttons, so i think there's a problem...

*EDIT*
it was a config issue i sorted out

marcjd 10-22-2005 01:13 AM

Quote:

Originally Posted by Andreas
can_moderate() seems to be the correct way, as only this assures that the User is really a moderator. Therefore I'd vote not to change that.

It checks to see if they are a forum moderator, but not an actual moderator that belongs to a moderator usergroup. The private forums holders I have are not in that usergroup, just assigned to moderate a particular forum, which allows them to see information that only management should be able to see.

If there any simple way you know to change the code from the canmoderate to a check on whether they belong to a specific usergroup? ...such as Super Mods?

Thank you very much...I love this system. :)

sv1cec 10-23-2005 02:21 PM

I am not very familiar with how the access rights work etc, but from looking at the can_moderate function code, I would expect the primary member of a forum (as you describe it), to be able to warn the other members of that forum. But I can be wrong, so if someone else has any more experience in this field, please join in and help marcjd.

marcjd 10-23-2005 06:00 PM

It seems like if the code was replaced with ismemberof with the usergroup id of the supermods then it would work the way I need it to. I am not sure exactly how to make the change, but may experiment around.

GoTTi 10-24-2005 07:24 AM

i am getting this error when i import the product .xml

Code:

Database error in vBulletin 3.5.0:

Invalid SQL:

                                INSERT INTO setting
                                (varname, grouptitle, value, defaultvalue, datatype, optioncode, displayorder, advanced, volatile, product)
                                VALUES
                                (
                                        'warn_version',
                                        'version',
                                        '3.4.16',
                                        '3.5.0',
                                        'free',
                                        '',
                                        1,
                                        0,
                                        1,
                                        'aws'
        );

MySQL Error  : Duplicate entry 'warn_version' for key 1
Error Number : 1062
Date        : Monday, October 24th 2005 @ 01:21:07 AM
Script      : http://www.SITE.com/forums/admincp/plugin.php
Referrer    : http://www.SITE.com/forums/admincp/plugin.php?do=productadd
IP Address  : XXXXX
Username    : GoTTi
Classname    : vb_database

ideas?

GoTTi 10-24-2005 07:27 AM

i looked in my setting table for warn and got these results.

i had the aws for 3.0x installed. do i need to uninstall that first before doing this?

im on 350 now, so what do i gotta do if i have to remove all traces of the old warn hack?

ManuYamin 10-24-2005 08:35 AM

Hi,

Sorry to ask such a stupid question but how is it possible to see all phrases related to a product in order to translate it easily instead of searching them one by one ?

jluerken 10-24-2005 04:35 PM

Quote:

Originally Posted by ManuYamin
Hi,

Sorry to ask such a stupid question but how is it possible to see all phrases related to a product in order to translate it easily instead of searching them one by one ?

Good question and not a stupid one. I wanna know also :D

TJFweb 10-25-2005 07:14 AM

This extension is incredibly messy with anything but the original vBulletin style...

I tried my best to manually edit sections of templates (such as the postbit) instead of replacing huge slabs, but even the Warn.php files have tables all over the place.

Uninstalling until this becomes more user friendly :P

It's a real shame because this is exactly what I was looking for.

Snoop-It 10-25-2005 01:48 PM

Quote:

Originally Posted by GoTTi
i am getting this error when i import the product .xml

Code:

Database error in vBulletin 3.5.0:

Invalid SQL:

                                INSERT INTO setting
                                (varname, grouptitle, value, defaultvalue, datatype, optioncode, displayorder, advanced, volatile, product)
                                VALUES
                                (
                                        'warn_version',
                                        'version',
                                        '3.4.16',
                                        '3.5.0',
                                        'free',
                                        '',
                                        1,
                                        0,
                                        1,
                                        'aws'
        );

MySQL Error  : Duplicate entry 'warn_version' for key 1
Error Number : 1062
Date        : Monday, October 24th 2005 @ 01:21:07 AM
Script      : http://www.SITE.com/forums/admincp/plugin.php
Referrer    : http://www.SITE.com/forums/admincp/plugin.php?do=productadd
IP Address  : XXXXX
Username    : GoTTi
Classname    : vb_database

ideas?


I have the exactly same problem!! Please help some one... :nervous:

Andreas 10-25-2005 02:18 PM

@TJFweb
Hmm, feel free to provide better Templates :)
What exactly don't you like regarding them?

sv1cec 10-25-2005 03:05 PM

Quote:

Originally Posted by TJFweb
This extension is incredibly messy with anything but the original vBulletin style...

I tried my best to manually edit sections of templates (such as the postbit) instead of replacing huge slabs, but even the Warn.php files have tables all over the place.

Uninstalling until this becomes more user friendly :P

It's a real shame because this is exactly what I was looking for.

I am not sure I understand what your problem is. Clearly your error message, indicates that your settings table has already the appropriate settings and you are trying to re-insert them. I haven't written the installation procedure for version 3.5.0, so you will have to wait for KirbyDE to give you more specific instructions, but I would say that AWS is already in your system.

sv1cec 10-25-2005 03:06 PM

Quote:

Originally Posted by TJFweb
This extension is incredibly messy with anything but the original vBulletin style...

I tried my best to manually edit sections of templates (such as the postbit) instead of replacing huge slabs, but even the Warn.php files have tables all over the place.

Uninstalling until this becomes more user friendly :P

It's a real shame because this is exactly what I was looking for.

I guess that what this user was complaining about, is that it is difficult to edit the templates to include the AWS controls.

As Andreas said, please feel free to provide for a better location of the controls and information.

DannyMilner 10-25-2005 06:06 PM

Everytime I try to add a warning...

I always get this
Quote:

Error
An Error Has Occured!
An error has occured, the following message has been left below:

Invalid Warning Type Specified
[ Back ]
Anyone no whats up?

Thanks ;)

sv1cec 10-25-2005 06:28 PM

Have you defined any warning types in AdminCP?

Snoop-It 10-25-2005 06:36 PM

sv1cec - could you please help me out on how to install the AWS on my board as i have posted the error i recieved and i don't know how to go about this problem. Please helppppppppppppppp

Thanks!!

DannyMilner 10-25-2005 06:36 PM

Ahhh... Thats the one. Great help mate, thanks ;)

Andreas 10-25-2005 08:35 PM

The vBulletin 3.5 product system does handle settings that are attached to products.
However, if you already have the settings from the 3.0 Version in your database, you will run into problems.

Running this query before installing the product XML should take care of this:
[sql]
UPDATE setting SET product='aws', volatile=1 WHERE varname IN ('warn_version', 'warn_hierarchical', 'warn_automatic', 'warn_automaticpm', 'warn_autocomments', 'warn_automatic_warner', 'warn_warner', 'warn_collector', 'warn_banned_limit', 'warn_points_before_banned', 'warn_warnings_before_banned', 'warn_banned_usergroup_id', 'warn_protected_usergroups', 'warn_troll_usergroup_id', 'warn_restore_groupid', 'warn_incr_ban_days', 'warn_max_no_bans', 'warn_bans_mature', 'warn_viewoption', 'warn_multiple_per_post', 'warn_send_em_warning', 'warn_send_pm_warning', 'warn_email_on_ban', 'warn_historical', 'warn_allowoffpost', 'warn_warnings_per_page', 'warn_textbutoption', 'warn_modoption', 'warn_sig_thresshold', 'warn_avatar_thresshold', 'warn_aprotected_usergroups', 'warn_pmcutoff', 'warn_admingroups', 'warn_smodgroups', 'warn_modgroups', 'warn_savecopy', 'warn_savecopyforum', 'warn_allowalerts', 'warn_allowalertscomment', 'warn_alertslifetime', 'warn_savecopyalert', 'warn_includepost', 'warn_allownotes')[/sql]

Scout 10-25-2005 08:53 PM

Hello from Russia!

Members can`t read warn-lists?

Snoop-It 10-25-2005 09:56 PM

Quote:

Originally Posted by Andreas
The vBulletin 3.5 product system does handle settings that are attached to products.
However, if you already have the settings from the 3.0 Version in your database, you will run into problems.

Running this query before installing the product XML should take care of this:
[sql]
UPDATE setting SET product='aws' WHERE varname IN ('warn_version', 'warn_hierarchical', 'warn_automatic', 'warn_automaticpm', 'warn_autocomments', 'warn_automatic_warner', 'warn_warner', 'warn_collector', 'warn_banned_limit', 'warn_points_before_banned', 'warn_warnings_before_banned', 'warn_banned_usergroup_id', 'warn_protected_usergroups', 'warn_troll_usergroup_id', 'warn_restore_groupid', 'warn_incr_ban_days', 'warn_max_no_bans', 'warn_bans_mature', 'warn_viewoption', 'warn_multiple_per_post', 'warn_send_em_warning', 'warn_send_pm_warning', 'warn_email_on_ban', 'warn_historical', 'warn_allowoffpost', 'warn_warnings_per_page', 'warn_textbutoption', 'warn_modoption', 'warn_sig_thresshold', 'warn_avatar_thresshold', 'warn_aprotected_usergroups', 'warn_pmcutoff', 'warn_admingroups', 'warn_smodgroups', 'warn_modgroups', 'warn_savecopy', 'warn_savecopyforum', 'warn_allowalerts', 'warn_allowalertscomment', 'warn_alertslifetime', 'warn_savecopyalert', 'warn_includepost', 'warn_allownotes')[/sql]


Sorry to say, but that didn't solve the problem and on my database in the phpmyadmin part... there arnt any of those warn_ tables.. apart from..

vb3_warn_notes
vb3_warning_types
vb3_warnings

And i ran the query any way and it didn't work - it just gave me an error. i dont want to uninstall the old version as mydata on those tables will be gone.. the settings the options the people banned / warned etc...

Help... :ermm:

Andreas 10-25-2005 10:20 PM

Send me a PM with ACP details.

Andreas 10-25-2005 10:50 PM

Query fixed ;)
Should be installed now.

Snoop-It 10-25-2005 11:05 PM

:banana: :D should i install it?? or would you like to do it?? lols :nervous: :o

Andreas 10-25-2005 11:52 PM

Erm ... as stated it is already installed.

Michael-DLR 10-26-2005 02:26 AM

Hi!

Let me start off by saying this is the best hack for VB in my opinion and I appreciate Andreas and sv1cec for working on this hack for us.

I do have an issue and are in need of some guideance. Moderators and SuperModerators are receiving auto warns even though they are in the correct usergroup id's assigned by VB. The set-up explains not to put them in the protected usergroup which I did not. I have tried though adding the id to the protected usergroup to see if it would help and it did not.

Any ideas what I am doing wrong? Thank you.

TJFweb 10-26-2005 02:53 AM

Quote:

Originally Posted by Andreas
@TJFweb
Hmm, feel free to provide better Templates :)
What exactly don't you like regarding them?

Hi,

This is no doubt a very good hack but I'll need to spend some time working out the necessary template edits (as I am using a non standard vB template) to get AWS to work. I think my custom style also affects the colspan of some of the tables in Warn.php.

kangta 10-26-2005 03:08 AM

Hello,

For some reason the install is taking forever for me. I go to upload the XML as a new product, and it sits there forever. I don't get the little expanding dots while it's installing or the finish notification or anything. I've just now figured out that the longer I let it sit, the more plugins/hooks get installed, not sure about templates, but I'll let it sit for longer than 5 minutes before interrupting it this time and see if it ever actually finishes.

Just wanted to point this out and/or see if anyone else was having the problem. I had the system for 3.0.x installed before we upgraded to 3.5.0. Didn't think of removing the old DB entries before I installed the new warning system, so that could have been part of my problem. Not sure at this point... :p

TJFweb 10-26-2005 03:56 AM

I've managed to get it installed on my board ;-) Just had to manually sift through the edits to make sure that everything gets inserted in the right place. It's just that I'm not very comfortable with instructions that involve replacing huge slabs of code because I use a lot of custom hacks and have a non-standard vB style running on my board which I don't want to mess up.

Here's a tip for everyone who's installed this (fixes the colspan on Warn.php):

Open warn_viewtype_end template:

Replace
Code:

<tr>
        <td class="tfoot" colspan="7" align="right">Warning limit before being banned: $vboptions[warn_points_before_banned] points. Initial banning period: $vboptions[warn_banned_limit] days.</td>
</tr>
</tbody>
</table>

with
Code:

<tr>
        <td class="tfoot" colspan="8" align="right">Warning limit before being banned: $vboptions[warn_points_before_banned] points. Initial banning period: $vboptions[warn_banned_limit] days.</td>
</tr>
</tbody>
</table>



All times are GMT. The time now is 09:38 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.02071 seconds
  • Memory Usage 1,856KB
  • 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
  • (4)bbcode_code_printable
  • (14)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