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 07-17-2007 08:47 PM

Quote:

Originally Posted by provedel (Post 1293004)
I am getting this error after install of AWS and wanto to change anything in profile of users...

Code:

Database error in vBulletin 3.6.7:
 
Invalid SQL:
UPDATE user SET
    ### Bitfield: user.options ###
        options = IF(options & 8, options - 8, options),
        options = IF(options & 1024, options, options + 1024),
        options = IF(options & 16, options, options + 16),
        options = IF(options & 256, options - 256, options),
        options = IF(options & 512, options, options + 512),
        options = IF(options & 32, options - 32, options),
        options = IF(options & 2048, options - 2048, options),
        options = IF(options & 131072, options - 131072, options),
        options = IF(options & 4096, options - 4096, options),
        options = IF(options & 1, options, options + 1),
        options = IF(options & 2, options, options + 2),
        options = IF(options & 4, options, options + 4),
        options = IF(options & 64, options, options + 64),
        options = IF(options & 128, options - 128, options),
        options = IF(options & 32768, options - 32768, options),
    ### Bitfield: user.adminoptions ###
        adminoptions = IF(adminoptions & 1, adminoptions, adminoptions + 1),
        adminoptions = IF(adminoptions & 2, adminoptions - 2, adminoptions),
    usertitle = 'Administra??o',
    customtitle = 1,
    username = 'Fabio',
    email = 'fabiosz@ig.com.br',
    languageid = 0,
    homepage = '',
    birthday_search = '0000-01-04',
    birthday = '01-04-0000',
    showbirthday = 3,
    icq = '',
    aim = '',
    yahoo = '',
    msn = '',
    skype = '',
    parentemail = '',
    referrerid = 0,
    ipaddress = '200.165.254.57',
    posts = 3167,
    alerts = 0,
    warns = 0,
    warning_level = 0,
    warning_bans = 0,
    usergroupid = 6,
    displaygroupid = 0,
    membergroupids = '34',
    reputationlevelid = 12,
    reputation = 180,
    warnings = 0,
    infractions = 0,
    ipoints = 0,
    pmpopup = 0,
    autosubscribe = -1,
    threadedmode = 0,
    showvbcode = 2,
    styleid = 0,
    timezoneoffset = '-3',
    daysprune = -1,
    joindate = 1088773200,
    lastactivity = 1184613480,
    lastpost = 1184349060
WHERE userid = 270;
 
MySQL Error  : Unknown column 'alerts' in 'field list'
Error Number : 1054
Date        : Monday, July 16th 2007 @ 03:41:05 PM
Script      : http://forum.plurall.org/admincp/user.php?do=update
Referrer    : http://forum.plurall.org/admincp/user.php?do=edit&u=270
IP Address  : 201.37.21.114
Username    : Sauron
Classname    : vb_database

Any help?

[SQL]
ALTER TABLE user ADD COLUMN alerts INT(5) DEFAULT '0';
[/SQL]

Delphiprogrammi 07-17-2007 08:50 PM

my server crashed today after looking for the problem for hours my host tech support found and solved it.I corrected the reported problems but i'm taking some time to test the changes as to "speedy" releases are never good

Bravo 07-18-2007 12:37 AM

Quote:

Originally Posted by Delphiprogrammi (Post 1292657)
yes you're right the first is a spelling error the second (the counter thing) is because of not correctly processing phrases that will be updated later today

Hey Delphi, Just wondering if you fixed the counter thing? cause I updated to (B) and it still wont show the counter :confused:

provedel 07-18-2007 03:31 PM

Hey Delphi, where I manage the warnings types?

Delphiprogrammi 07-18-2007 03:35 PM

Quote:

Originally Posted by Bravo2007 (Post 1294162)
Hey Delphi, Just wondering if you fixed the counter thing? cause I updated to (B) and it still wont show the counter :confused:

i have just updated it

Delphiprogrammi 07-18-2007 03:36 PM

Quote:

Originally Posted by provedel (Post 1294703)
Hey Delphi, where I manage the warnings types?

admincp => Advanced Warning System => manage warning types or just type admin_warn.php?do=view

Bravo 07-18-2007 10:20 PM

Quote:

Originally Posted by Delphiprogrammi (Post 1294709)
i have just updated it

Thanks everything works perfect so far :)

BTW it seem this update also took care of the problem I was having eariler
with the BAN COUNT dispearing whenever I checked that Members Profile.
:)

Delphiprogrammi 07-19-2007 08:49 AM

hi,

if a member warningsinfo is greater then 0 (zero) and you warning him again the "current warninginfo" displayed on the warningforms is not working as it should .I corrected this to fetch te update redownload and import product-aws.xml (set allow overwrite to yes) and make sure there is this code

HTML Code:

<phrase 1="{$user['alerts']}">$vbphrase[aws_alerts_npr]</phrase><br>
<phrase 1="{$user['warns']}">$vbphrase[aws_warnings_npr]</phrase><br>
<phrase 1="{$user['warning_level']}">$vbphrase[aws_warnpoints_npr]</phrase><br>
<phrase 1="{$user['warning_bans']}">$vbphrase[aws_bans_npr]</phrase>

in the warn_addwarn and warn_addwarn_nopost templates

that's all folks

:)

provedel 07-19-2007 03:14 PM

Quote:

Originally Posted by Delphiprogrammi (Post 1294711)
admincp => Advanced Warning System => manage warning types or just type admin_warn.php?do=view

Its strange, cannot see Advanced Warning System on admincp... :confused:

I missed anything?:erm:

Delphiprogrammi 07-19-2007 03:18 PM

Quote:

Originally Posted by provedel (Post 1295766)
Its strange, cannot see Advanced Warning System on admincp... :confused:

I missed anything?:erm:

did you uploaded cpnav_aws.xml to /forums/includes/xml and refreshed your admincp ? anyway i found another problem in the current package and i took i temporarly away i will put it back when i fixed it

NFLfbJunkie 07-19-2007 05:53 PM

After I installed this MOD information on my profile page got moved to the left. I tried changing some of the code around in the memberinfo template, but I can not figure it out. Can this be fixed?

Delphiprogrammi 07-19-2007 07:26 PM

those instructions for modifying the templates are outdated i know but updating documentation is one of the tasks i hate the most but i will update them

oooh Junkie now i get what you mean your lastactivity value is shown in a new line (it looks like that in the screenshot) i will check right now

NFLfbJunkie 07-19-2007 08:06 PM

So are you saying there is a template fix for this cosmetic problem?

Delphiprogrammi 07-19-2007 08:38 PM

Quote:

Originally Posted by Junkie (Post 1295994)
So are you saying there is a template fix for this cosmetic problem?

This is being caused by vBulletin itself i reverted the aws modifications to it and it still shows the lastactivity the verry same way as before ... code is around line 103 of MEMBERINFO template so it looks like this hack is innocent

Bravo 07-20-2007 02:18 AM

Code:

PostBit
Warnings: 1
Warning level 8
Warning bans: 1

Code:

Members Page
Warnings 1
Warning level: 8
Warning bans:1

where can I fix it so that I can add ":" to Warning level 8 and Warnings 1

Delphiprogrammi 07-20-2007 10:51 AM

Quote:

Originally Posted by Bravo2007 (Post 1296202)
Code:

PostBit
Warnings: 1
Warning level 8
Warning bans: 1

Code:

Members Page
Warnings 1
Warning level: 8
Warning bans:1

where can I fix it so that I can add ":" to Warning level 8 and Warnings 1

you can change that to whatever you want by editing the corrosponding phrases through you phrases manager.

admincp => language & phrases =>search in phrases there in the field "search for text enter the phrases variable name

postbit phrases
  • $vbphrase[aws_alerts]
  • $vbphrase[aws_warnings]
  • $vbphrase[aws_warning_level]
  • $vbphrase[aws_warning_bans]
member profile phrases
  • $vbphrase[aws_alerts_member_profile]
  • $vbphrase[aws_warnings_member_profile]
  • $vbphrase[aws_warninglevel_member_profile]
  • $vbphrase[aws_warningbans_member_profile]
at the buttom check "phrase text and phrase variable name" click search on the next page there will be an edit button click it now you can edit the phrase change it to your liking and save just be carefull you do not touch the parameters {1} (that are the parameters passed to it which contain the values for the counters)

provedel 07-20-2007 01:15 PM

Quote:

Originally Posted by Delphiprogrammi (Post 1295769)
did you uploaded cpnav_aws.xml to /forums/includes/xml and refreshed your admincp ? anyway i found another problem in the current package and i took i temporarly away i will put it back when i fixed it

Hi, I found the problem...

In your package the folder for xml is XML, with capital letter, and in vB installation the folder was xml...

So, my ftp program put the files in a new XML folder...

Another error is a typo in the link in modcp to View issued warnings.

The link point to http://yoursite/modcp/mod_Warn.php but the file is without the W in capital letter.

Delphiprogrammi 07-20-2007 01:53 PM

Quote:

Originally Posted by provedel (Post 1296564)
Hi, I found the problem...

In your package the folder for xml is XML, with capital letter, and in vB installation the folder was xml...

So, my ftp program put the files in a new XML folder...

Another error is a typo in the link in modcp to View issued warnings.

The link point to http://yoursite/modcp/mod_Warn.php but the file is without the W in capital letter.

fixed both of them you can edit that in the plugin at hook mod_index_navigation

Delphiprogrammi 07-21-2007 11:34 AM

package has been updated when you import product-aws.xml now it will automatically add a link to Warn.php?do=ViewMyWarnings in your navbars quick links menu (this done through a template hook) and this is new in use to me maybe in th future i can make it more automatic and kill a few more template edits as this hack requirers allot of them

Delphiprogrammi 07-21-2007 03:10 PM

hi,

Anybody have uncached templates when you try to warn a user through th quick links drop down menu "warn user" in the admincp => users => all users (your user) ? vBulletin requirers an extra MySQL query for each uncached template so every query you can kill does count ... just need a confirm before i fix it

EdQ 07-21-2007 03:36 PM

Quote:

Originally Posted by sv1cec (Post 1288906)
The members can not see the details of the warnings, they can see how many warning points other members have and how many warnings, but not the details.

The cron job will either render the warnings "Inactive" or it will remove them all together. It depends on your settings in the AdminCP. If you are using the Historical option, warnings are never deleted completely. They always remain in the members accounts, so that (a) they act as reminders for the members and (b) they show the members past history to the admin team. If you want the warnings to be completely deleted, you may select not to maintain historical data.

Quote:

I tried not maintaining the historical data. The warnings drop of when they mature (which is what I want) But now the bans drop off when the ban ends. Not when they mature.
Is there a option for this?

ymy 07-21-2007 04:41 PM

Quote:

Originally Posted by Delphiprogrammi (Post 1297321)
package has been updated when you import product-aws.xml now it will automatically add a link to Warn.php?do=ViewMyWarnings in your navbars quick links menu (this done through a template hook) and this is new in use to me maybe in th future i can make it more automatic and kill a few more template edits as this hack requirers allot of them


Thanks for updated :up:


ymy

SilverBoy 07-21-2007 09:08 PM

in cron jobs I get this error

Quote:

Fatal error: Call to undefined function: datamanagr_init() in /home/alhandas/public_html/forum/includes/cron/kill_alerts.php on line 53

SilverBoy 07-21-2007 11:29 PM

Strange problem !!

I have a test account on my board, and gave it a warning and everything ok, but when I loged in with that account I can't see the warning, and get nopermission error page (sefault template of vBulletin).

and that happen everytime I tried to press on view my warnnings link !!

I put (Can view warnings) option in usergroup to yes, and did the same with other secondary groups that user has.

anyway in showthread page user can see warnings and warnings level of other members !! Is it work as designed??

Delphiprogrammi 07-22-2007 08:26 AM

Quote:

Originally Posted by SilverBoy (Post 1297728)
in cron jobs I get this error

that's a typo on my end it should be

PHP Code:

$userdm=& datamanager_init('User',$vbulletin,ERRTYPE_CP); 


Delphiprogrammi 07-22-2007 08:28 AM

Quote:

Originally Posted by SilverBoy (Post 1297809)
Strange problem !!

I have a test account on my board, and gave it a warning and everything ok, but when I loged in with that account I can't see the warning, and get nopermission error page (sefault template of vBulletin).

and that happen everytime I tried to press on view my warnnings link !!

I put (Can view warnings) option in usergroup to yes, and did the same with other secondary groups that user has.

anyway in showthread page user can see warnings and warnings level of other members !! Is it work as designed??

Depends on your settings if you set setting "who can view the warnings points and bans" to all people can see that if you set that to Mgm only mods and up will see it

Magnumutz 07-22-2007 11:19 AM

Hi, i've got this problem, when i try to warn someone, i get this error:
PHP Code:

You do not enter sufficient symbols into the  comment field to issue warning

And this warning looks like this:
Quote:

Double/Triple post or thread Includes anything that does not belong where it was posted. 2 99999 No Yes No No
Any clues?

SilverBoy 07-22-2007 11:45 AM

Quote:

Originally Posted by Delphiprogrammi (Post 1298049)
Depends on your settings if you set setting "who can view the warnings points and bans" to all people can see that if you set that to Mgm only mods and up will see it

my setting is Mgm, and still user can't see his warning page and get the default no permissions page.

and in the thread that he began and get his warning, he can see the warnings for other users under thier names only in that page, but can't see it in the second page of the same thread !!!!

anyeway the most imprtant point for me now is letting users to see there warnings, so what I can do?

SilverBoy 07-22-2007 11:49 AM

now I get this error too,


Quote:

Fatal error:
النص الذي أدخلته كبير جداً ($postlength حروف). الرجاء تقليله إلى $vboptions[postmaxchars] حروف .
$user[username] قام بإلغاء خاصية إستقبال رسائل خاصة . أو أنه غير مسموح لك بإرسال رسائل خاصة .
Unable to proceed with save while $errors array is not empty in class vb_datamanager_pm in /includes/class_dm.php on line 765
the arabic letters said your text is too long.
or you can't send pm maybe the user disabled recieving pms.

SilverBoy 07-22-2007 11:54 AM

me again :p

after deleting a warning I redirected to eeror page (The page cannot be found)

I get the reason of this error, because the link have a capital letters and in redirection we get the link in small case warn.php?&do=viewwarnings&id=xxx

it must be Warn.php?&do=ViewWarnings&id=

Delphiprogrammi 07-22-2007 03:11 PM

Quote:

Originally Posted by Magnumutz (Post 1298137)
Hi, i've got this problem, when i try to warn someone, i get this error:
PHP Code:

You do not enter sufficient symbols into the  comment field to issue warning

And this warning looks like this:

Any clues?

when you warn a user the moderator comments field must contain whatever you have defined as minium comment length

SilverBoy 07-22-2007 04:01 PM

Iam still waiting Delphiprogrammi :confused:

Delphiprogrammi 07-22-2007 04:25 PM

Quote:

Originally Posted by SilverBoy (Post 1298329)
Iam still waiting Delphiprogrammi :confused:

1)The redirection error is fixed
2)if a user disabled to receive pm's an email will be send instead
3)i have checked a dozen times and i just did again only moderators and up and the user who whas warned(remember permissions) can see warning details did you edited the templates correctly ?

Magnumutz 07-22-2007 04:33 PM

Quote:

Originally Posted by Delphiprogrammi (Post 1298293)
when you warn a user the moderator comments field must contain whatever you have defined as minium comment length

Dude, i don't SEE a comment field.
This is how it looks when i try to warn a member, i've done all the updates.
I've attached a screenshot, for you to see. I'll try re-installing it if you donno what's up.

Delphiprogrammi 07-22-2007 05:08 PM

Quote:

Originally Posted by Magnumutz (Post 1298352)
Dude, i don't SEE a comment field.
This is how it looks when i try to warn a member, i've done all the updates.
I've attached a screenshot, for you to see. I'll try re-installing it if you donno what's up.

admincp => Advanced Warning System => manage warning options => automation options => Use warning type description, as moderator comment, in post-related warnings => No

that will restore the field

Magnumutz 07-22-2007 05:18 PM

Oh... my bad, thanks. This worked like a charm ;)

SilverBoy 07-23-2007 12:31 AM

thanks for your help, actually iam familiar with AWS from ages, I upgraded to vb3.6.7 last week and I was working with 3.0.x for a while and installed AWS, and not upgraded my vBulletin version until I get your port of the original hack.

Any way, let me continue debuging with u (Iam computer engineer ;))

1- now kill alert cron job works without errors.
2- Iam not testing remove warning yet.
3- Iam sure I put view warning for mgm not all, and my test account have permission to view warning as you suggest, for template Iam sure from my installation, and no way to mistake because viewing warnings page installed with product not just manual editing.

I checked the Warn.php file and find the error for no permissin page

Code:

if($_GET['do'] != 'viewmywarnings')
{
        if(!can_moderate())
        {
                print_no_permission();
        }
}

from this part of code you can note only admins, mods and supermods can view page, so it's work as it designed, and that's why my test account get this error even with all right permisions.

and I will repeate, in showthread page, the user who warned can see how many warning, alerts, .... for all users which reply in the same page, and if the thread destributed on alot of pages he can see that information only in the page that get warning in the post he out in it, or maybe that happend because he is the starter of the thread !!

4- for error message when give warning for a user, I remove one errors by let private messages in my board have no character limit (It was 1600 character) and I think you have to look on this case.
but the other one still remains, because some users can't use PM yet (less than 10 posts) and I dont want to use email feature, because in old version it sends the email of the warner and I don't to let my users to know the personals emails of my staff.

SilverBoy 07-23-2007 12:35 AM

I solved one problem
Code:

if($_GET['do'] != 'viewmywarnings')
{
        if(!can_moderate())
        {
                print_no_permission();
        }
}

again you have capital letters missed ;)

SilverBoy 07-23-2007 01:28 AM

I tried removing warning and redirect works ok.

now I can say the problem of seeing other users warnings exist because the user is the starter of the thread and get warning in it !!! (but only in the first page of the thread)

another point :p

when give a user warning we missed warning level in "Current warnings info:" I think it is important to be there.

again for errors when give a warning with pm, the old version of this hack was ignored pm lenght and if the user can read pm :)

NFLfbJunkie 07-23-2007 02:18 AM

I uploaded the updated plugin and now have two "Warnings > View Your Warnings" showing in my quick links menu.


All times are GMT. The time now is 08:58 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.01700 seconds
  • Memory Usage 1,872KB
  • 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
  • (7)bbcode_code_printable
  • (1)bbcode_html_printable
  • (3)bbcode_php_printable
  • (24)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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