vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Advanced Warning System (AWS) (https://vborg.vbsupport.ru/forumdisplay.php?f=105)
-   -   Not working correctly (https://vborg.vbsupport.ru/showthread.php?t=77591)

sv1cec 03-19-2005 01:48 PM

First of all, please delete those files from here, if you do not want to hear from the forums moderators. You are not supposed to post complete vB files or templates here, it is a breech of your license agreement.

Second, before anything else, and because this thing reminds me of something I've fixed before, please download the latest zip file. Make sure you upload Warn.php and includes/function_warning.php files to your server. Let me know if this helped.

Rgds

DaveBeel 03-19-2005 02:08 PM

Quote:

Originally Posted by sv1cec
First of all, please delete those files from here, if you do not want to hear from the forums moderators. You are not supposed to post complete vB files or templates here, it is a breech of your license agreement.

Second, before anything else, and because this thing reminds me of something I've fixed before, please download the latest zip file. Make sure you upload Warn.php and includes/function_warning.php files to your server. Let me know if this helped.

Rgds

By uploading those two files I now get the following when I try to warn someone.

Database error in vBulletin 3.0.7:

Invalid SQL:
UPDATE vb3_user SET
usergroupid = ,
displaygroupid = ,
warnings=1,
warning_bans = 1,
usertitle = 'Temporarily Banned'
WHERE userid = 39

mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '
displaygroupid = ,
warnings=1,
warning_bans = 1,


mysql error number: 1064

Date: Saturday 19th of March 2005 04:09:37 PM
Script: http://www.webcadets.com/forum/Warn.php
Referer: http://www.webcadets.com/forum/Warn....id=39&post=245
Username: Dave
IP Address: 217.44.114.125


I haven't done the full install using version 3.3.0 but have using 3.2.0 before now, just had a two little problems above. Seems I have a big problem now though mate.
cheers

sv1cec 03-19-2005 02:38 PM

Quote:

Originally Posted by DaveBeel
By uploading those two files I now get the following when I try to warn someone.

Database error in vBulletin 3.0.7:

Invalid SQL:
UPDATE vb3_user SET
usergroupid = ,
displaygroupid = ,
warnings=1,
warning_bans = 1,
usertitle = 'Temporarily Banned'
WHERE userid = 39

mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '
displaygroupid = ,
warnings=1,
warning_bans = 1,


mysql error number: 1064

Date: Saturday 19th of March 2005 04:09:37 PM
Script: http://www.webcadets.com/forum/Warn.php
Referer: http://www.webcadets.com/forum/Warn....id=39&post=245
Username: Dave
IP Address: 217.44.114.125


I haven't done the full install using version 3.3.0 but have using 3.2.0 before now, just had a two little problems above. Seems I have a big problem now though mate.
cheers

You really got me confused. You have been using version 3.2.0 before with no problems. Then you upgraded to version 3.3.0, following the instructions in the UpdateToLatestVersion.txt file. Is that right? But in the beginning of your thread, you said you just install 3.3.0 from scratch!

What is it? I can't help if you are giving me contradictory information.

Have you set your Warning Options properly, in the admincp?

DaveBeel 03-19-2005 03:12 PM

Quote:

Originally Posted by sv1cec
You really got me confused. You have been using version 3.2.0 before with no problems. Then you upgraded to version 3.3.0, following the instructions in the UpdateToLatestVersion.txt file. Is that right? But in the beginning of your thread, you said you just install 3.3.0 from scratch!

What is it? I can't help if you are giving me contradictory information.

Have you set your Warning Options properly, in the admincp?

Okay just to clear things up. Sorry if I was confusing. The one I installed from scratch was 3.2.0. I have now followed the full instructions for 3.3.0 and things seem to be working okay.

I still for some reason have two lots of Warn user and View User warnings on each post.

Everything else seems to be working okay apart from when I issue a warning I am getting a parse error at the top of the confirmation of issue page.

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/dbeel/public_html/forum/includes/functions_warning.php(475) : eval()'d code on line 19

The warning is still issued however.

sv1cec 03-19-2005 03:43 PM

For the two sets of Warn/View Warnings links, check your changes in your postbit/postbit_legacy templates.

For your second issue, check your warn_pm template. Make sure there is no warn_opts in there.

Also, how many styles are you using in your forums?

DaveBeel 03-19-2005 04:04 PM

Quote:

Originally Posted by sv1cec
For the two sets of Warn/View Warnings links, check your changes in your postbit/postbit_legacy templates.

For your second issue, check your warn_pm template. Make sure there is no warn_opts in there.

Also, how many styles are you using in your forums?

only using one style for all.

In regards to checking my warn_pm template where do you mean mate? Through the CP cos I can't find it?? :disappointed:

Blootix 03-20-2005 05:12 AM

1 Attachment(s)
Quote:

Originally Posted by DaveBeel
Okay just to clear things up. Sorry if I was confusing. The one I installed from scratch was 3.2.0. I have now followed the full instructions for 3.3.0 and things seem to be working okay.

I still for some reason have two lots of Warn user and View User warnings on each post.

Everything else seems to be working okay apart from when I issue a warning I am getting a parse error at the top of the confirmation of issue page.

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/dbeel/public_html/forum/includes/functions_warning.php(475) : eval()'d code on line 19

The warning is still issued however.

I have the exact same problem as his second issue. And the warning is also still issued. And I checked warn_pm and there was no warn_opts.

[b]EDIT: ALSO: the Warn PM doesn't contain anything. See screenshot for more information.

sv1cec 03-20-2005 05:59 AM

Replace the contents of your warn_pm template with the code below:

HTML Code:

Dear $user[username],

You have been warned for one of your posts, which violated $vboptions[bbtitle] Rules. The reason you have been warned is because:

[b][i] $warn_type[warn_desc] [/i][/b]
(Warning Type = $warn_type[warn_name])

For this violation, you have been given : [b]$warn_type[warn_points][/b] point(s).
The point(s) will remain in your account for [b]$warn_type[warn_maturity] days[/b].
After that, they will be removed automatically.

The post for which you are warned can be seen here:

$thread1

The admin/moderator who warned you, entered this comment:

=======================================
[i]$_POST[comment][/i]
=======================================

Your total Warning Level at the moment is: [b] $level [/b] point(s).

If you reach the maximum of [b]$vboptions[warn_points_before_banned][/b], you will be banned from the Forums, for [b] $peruserbanlimit [/b] days.

To see details about all the warnings you have received, until now, please click [URL="$vboptions[bburl]/Warn.php?do=ViewMyWarnings"]here[/URL].

Please reply back if you have a dispute.

Quote:

Originally Posted by Blootix
I have the exact same problem as his second issue. And the warning is also still issued. And I checked warn_pm and there was no warn_opts.

[b]EDIT: ALSO: the Warn PM doesn't contain anything. See screenshot for more information.

If your PM does not contain text, and this is a first-time installation, please open your private.php file and find:

PHP Code:

warn_notify($thread1$thread2$bbuserinfo$warnerdata['email'], $warnerdata['username'], $vboptions['warn_automatic_warner'], $warn_type$level$wcomment);
}
}
// End of automated warnings things 

Right below that, add:

PHP Code:

    $message=$pm_message


Blootix 03-20-2005 06:10 AM

Quote:

Originally Posted by sv1cec
add the following in your warn_pm template

HTML Code:

Dear $user[username],

You have been warned for one of your posts, which violated $vboptions[bbtitle] Rules. The reason you have been warned is because:

[b][i] $warn_type[warn_desc] [/i][/b]
(Warning Type = $warn_type[warn_name])

For this violation, you have been given : [b]$warn_type[warn_points][/b] point(s).
The point(s) will remain in your account for [b]$warn_type[warn_maturity] days[/b].
After that, they will be removed automatically.

The post for which you are warned can be seen here:

$thread1

The admin/moderator who warned you, entered this comment:

=======================================
[i]$_POST[comment][/i]
=======================================

Your total Warning Level at the moment is: [b] $level [/b] point(s).

If you reach the maximum of [b]$vboptions[warn_points_before_banned][/b], you will be banned from the Forums, for [b] $peruserbanlimit [/b] days.

To see details about all the warnings you have received, until now, please click [URL="$vboptions[bburl]/Warn.php?do=ViewMyWarnings"]here[/URL].

Please reply back if you have a dispute.


If your PM does not contain text, and this is a first-time installation, please open your private.php file and find:

PHP Code:

warn_notify($thread1$thread2$bbuserinfo$warnerdata['email'], $warnerdata['username'], $vboptions['warn_automatic_warner'], $warn_type$level$wcomment);
}
}
// End of automated warnings things 

Right below that, add:

PHP Code:

    $message=$pm_message


It was specifically the warning PM that did not contain anything. Every other PM contained their contents.

Thank you everything seems to be in order except for the "\" problem but I think that'll be fixed soon. No sweat.

Thanks!

sv1cec 03-20-2005 06:18 AM

Most welcome!


All times are GMT. The time now is 07:00 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.01448 seconds
  • Memory Usage 1,796KB
  • 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_html_printable
  • (4)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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