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)

MThornback 04-03-2006 02:55 PM

Quote:

Originally Posted by MThornback
I think its been stable for awhile....the few tweaks that have been made along the way could have been fixed and it still could have been called a stable release.

The only suggestion I have....maybe to put this over the top....is to be able to ban users from x page....which would be useful more for hacked boards than anything I think....say for example someone has googlemap and ibproarcade installed....the arcade comes with the ability to ban users or groups of users from the arcade, the googlemap doesn't....its not permission based at all really....not on the front end. Maybe a script where you can put in a username, and ban x user from x page? I dunno if anyone else might find that useful....but I would :bunny:


aside from my little thought...i'd say go for it :)

*bump suggestion*

I didn't see an awnser to this....is it possible?

(incedentally...sorry to double post)

Delphiprogrammi 04-03-2006 03:06 PM

Quote:

Originally Posted by MThornback
That happened to me...and I reimported the product because the add note template was missing. See if doing that fixes it for you :)

nope the template is there this is strange :surprised:

Delphiprogrammi 04-03-2006 04:07 PM

Quote:

Originally Posted by MThornback
*bump suggestion*

I didn't see an awnser to this....is it possible?

(incedentally...sorry to double post)

that's not supported and i doubt that would even be possible

Nathan2006 04-03-2006 05:52 PM

Quote:

Originally Posted by Delphiprogrammi
hi people,

those 'warn_notes' do not work for me. i mean i edit all files and templates like the ".txt" says but it doesn't show me anything in my postbit_legacy all i see is a button called "add a note" when i click it nothing is displayed even the navbits array is empty is this 3.5.x acting strange again ????

I did not understand half of that info in that txt file lol:tired:

But I managed to get it working:D

This is what should be there (Screenshot added)

Also uploaded the 2 files I edited you could always add these and see if it works - Make sure you backup the other ones tho ;)

Still going to do a few tests with it tho :)

Delphiprogrammi 04-03-2006 06:46 PM

Quote:

Originally Posted by Nathan2006
I did not understand half of that info in that txt file lol:tired:

But I managed to get it working:D

This is what should be there (Screenshot added)

Also uploaded the 2 files I edited you could always add these and see if it works - Make sure you backup the other ones tho ;)

Still going to do a few tests with it tho :)


nope even with your files it doesn't work what the ++++ man :down: :down:

Nathan2006 04-03-2006 07:17 PM

Quote:

Originally Posted by Delphiprogrammi
nope even with your files it doesn't work what the ++++ man :down: :down:

It was working for me and then when I went add a note and saved it There was no way of viewing it :cross-eyed:

The next thing the add note button vanished altogether :confused:

I'm going to revert back without the notes cos I don't wanna mess anything up:( Just going to keep the warning system for now.

I have tried 2 times and no luck so I am going to stick it at the bottom of my list because its a pain to install.

robert_2004 04-05-2006 03:50 PM

how do i go about getting AWS to work on my board?
i upgraded from vb3.0.9 and the AWS released around that time.
should i remove certain database entries? which ones?
or can i edit the XML to update and replace instead?

Delphiprogrammi 04-06-2006 11:11 AM

Quote:

Originally Posted by robert_2004
how do i go about getting AWS to work on my board?
i upgraded from vb3.0.9 and the AWS released around that time.
should i remove certain database entries? which ones?
or can i edit the XML to update and replace instead?

you must first delete the old system ... everything except your issued warnings information or you loose that

vampireus 04-09-2006 03:54 PM

Where is the issued warnings information stored? I want to delete it.

Delphiprogrammi 04-09-2006 05:39 PM

Quote:

Originally Posted by vampireus
Where is the issued warnings information stored? I want to delete it.

the warnings table .... if you want to delete that you'll also want to check pmtext_warned , warn_notes (if you are using this ) warn_alerts ... you could set the "prune warnings" setting to 0 days which will delete all issued warnings ...

SHalliday 04-09-2006 06:03 PM

Is this plugin ready to go or is it still in beta?

I upgraded to 3.5 about 6 weeks ago and when I did the older version of this hack stopped working. Have been wanting to upgrade to this plugin but from reading this thread, it looks like there are still problems with this version. Am nervous about upgrading since I am no php or vb expert.

Is upgrading to this AWS plugin straight forward or are there still problems that need to be worked out?

sv1cec 04-09-2006 07:14 PM

Delphi, if you use the postbit template, does it work?

Delphiprogrammi 04-09-2006 08:00 PM

Quote:

Originally Posted by sv1cec
Delphi, if you use the postbit template, does it work?

yes the warning system works fine i just deactivated the notes thing .... all good

MThornback 04-09-2006 09:53 PM

I'm trying to make a plugin for this that will force mods and admins to enter a comment for warnings....but its not working! Whats wrong with this?

Code:

        // Require Comment //
if ($vbulletin->GPC['comment']==0)
{
        $message_left="{$user['username']} could not be warned because you did not enter a reason for the warning. Please  go <a href='javascript:history.go(-1)'>back</a> and try again.";
}
elseif  ($vbulletin->GPC['comment']==1)
{
        eval('$warn_page .= "' . fetch_template('warn_redirect') . '";');
}


Luxury 04-09-2006 10:17 PM

Why are there warning system settings in vBulletin options? Also, the description for some fields is wrong.

vampireus 04-10-2006 02:11 PM

Save copy of Warning Message in a predefined forum? Yes

I got this error when issue a warn with the above option Enable, the warning is still made, but no copy of Warning Message sent to a predefined forum

Fatal error: Only variables can be passed by reference in /home/yancom/public_html/music/includes/functions_warning.php on line 600

Line 600 : $destforum = verify_id('forum', intval($vbulletin->options['warn_savecopyforum']));


PHP Code:

if ((($vbulletin->options['warn_savecopy']=='1' AND ($alert=='No' OR $alert=='')) or ($vbulletin->options['warn_savecopyalert']=='1' AND $alert=='Yes')) AND $vbulletin->options['warn_savecopyforum']!='')
    {
        require_once(
'./includes/functions_databuild.php');
        
$destforum verify_id('forum'intval($vbulletin->options['warn_savecopyforum']));
                
$newforuminfo fetch_foruminfo($destforum);
                if (!
$newforuminfo['cancontainthreads'] OR $newforuminfo['link'])
                {
                    eval(
standard_error(fetch_error('error_moveillegalforum')));
                } 


Delphiprogrammi 04-10-2006 03:44 PM

Quote:

Originally Posted by vampireus
Save copy of Warning Message in a predefined forum? Yes

I got this error when issue a warn with the above option Enable, the warning is still made, but no copy of Warning Message sent to a predefined forum

Fatal error: Only variables can be passed by reference in /home/yancom/public_html/music/includes/functions_warning.php on line 600

Line 600 : $destforum = verify_id('forum', intval($vbulletin->options['warn_savecopyforum']));


PHP Code:

if ((($vbulletin->options['warn_savecopy']=='1' AND ($alert=='No' OR $alert=='')) or ($vbulletin->options['warn_savecopyalert']=='1' AND $alert=='Yes')) AND $vbulletin->options['warn_savecopyforum']!='')
    {
        require_once(
'./includes/functions_databuild.php');
        
$destforum verify_id('forum'intval($vbulletin->options['warn_savecopyforum']));
                
$newforuminfo fetch_foruminfo($destforum);
                if (!
$newforuminfo['cancontainthreads'] OR $newforuminfo['link'])
                {
                    eval(
standard_error(fetch_error('error_moveillegalforum')));
                } 


did you set the forumid where you want to save the copys of issued warnings and alerts under "forumid"

vampireus 04-10-2006 08:40 PM

I did, I got this error after I replaced the PHP files inside the zip file by those outside. Some old errors are fixed, but this new error occurs

MarcusTangh 04-11-2006 02:36 PM

STupid... stupid thing.
I added warning options via admincp, but the warning options aren't there when you try and warn someone. Useful hack, eh?
anyway.
It's also interfearing with RPG Inferno:

Fatal error: Cannot redeclare sendpm() (previously declared in /home/khinforu/public_html/inferno.php:592) in /home/khinforu/public_html/includes/functions_warning.php on line 23

Delphiprogrammi 04-11-2006 02:40 PM

Quote:

Originally Posted by vampireus
I did, I got this error after I replaced the PHP files inside the zip file by those outside. Some old errors are fixed, but this new error occurs

verry odd that function works fine on my test board and my live board

sv1cec 04-11-2006 05:26 PM

MarcusTangh, I am sure you are capable of writing a better hack than this. Please go ahead and do it.

sv1cec 04-11-2006 05:30 PM

MThornback,

'comment' is a string, why are you comparing to with zero? Try comparing it with ''.

MThornback 04-12-2006 03:16 AM

Quote:

Originally Posted by sv1cec
MThornback,

'comment' is a string, why are you comparing to with zero? Try comparing it with ''.

That would be because I am an admirer and editor of code...more than I am good at writing it :p

So this should work then? Cause it doesn't

Code:

// Require Comment //
if ($vbulletin->GPC['comment']=='')
{
        $message_left="{$user['username']} could not be warned because you did not enter a reason for the warning. Please  go <a href='javascript:history.go(-1)'>back</a> and try again.";
}
else
{
        eval('$warn_page .= "' . fetch_template('warn_redirect') . '";');
}


sv1cec 04-12-2006 03:56 AM

LoL, I'll have to look at the code to see how this Javascript needs to be called. Did you verify that the comparison works? In other words, with the above code, does the program goes into the IF statement or in the ELSE statement?

MThornback 04-12-2006 04:23 PM

It goes right to the else...it seems to ignore the IF altogether....it went to the IF when I was comparing it to zero...for obvious reasons :p

sv1cec 04-12-2006 05:32 PM

Try this.

In Warn.php find:

Code:

$slcomment=$vbulletin->GPC['comment'];
Add below that:

Code:

if ($slcomment=='')
{
        $message_left="{$user['username']} could not be warned because you did not enter a reason for the warning. Please  go <a href='javascript:history.go(-1)'>back</a> and try again.";
}
else
{

Then in the same file, find:

Code:

$url="showthread.php?p={$post}";
eval('$warn_page .= "' . fetch_template('warn_redirect') . '";');

Replace that with:

Code:

}
$url="showthread.php?p={$post}";
eval('$warn_page .= "' . fetch_template('warn_redirect') . '";');

Let me know if it works. Note that I edited the code this morning, so please make sure you are using the latest one, as it appears above.

Also, you do not have to use the "Back" javascript, it will redirect you automatically.

akanevsky 04-12-2006 05:46 PM

Quote:

Originally Posted by Psionic Vision
Is ever going to be a non-beta?

Apparently not, but oh well. I don't need it anymore.

sv1cec 04-13-2006 09:11 AM

Another fed-up customer.

akanevsky 04-13-2006 02:02 PM

Yup, what can be done... :-/

Delphiprogrammi 04-13-2006 06:45 PM

hi people,

i got the warn_notes to work !!!!!! and added it to the product XML.I hate half work and keep playing with it till i found what went wrong

those notes do work fine :D :cool:

sv1cec 04-13-2006 07:03 PM

Congrats buddy!

Since the test forum I used is shut down, I guess users are now relying on you for a complete package, ready for installation.

MThornback 04-14-2006 05:24 AM

Quote:

Originally Posted by sv1cec
Try this.

In Warn.php find:

Code:

$slcomment=$vbulletin->GPC['comment'];
Add below that:

Code:

if ($slcomment=='')
{
        $message_left="{$user['username']} could not be warned because you did not enter a reason for the warning. Please  go <a href='javascript:history.go(-1)'>back</a> and try again.";
}
else
{

Then in the same file, find:

Code:

$url="showthread.php?p={$post}";
eval('$warn_page .= "' . fetch_template('warn_redirect') . '";');

Replace that with:

Code:

}
$url="showthread.php?p={$post}";
eval('$warn_page .= "' . fetch_template('warn_redirect') . '";');

Let me know if it works. Note that I edited the code this morning, so please make sure you are using the latest one, as it appears above.

Also, you do not have to use the "Back" javascript, it will redirect you automatically.

worked famously! :) thanks muchly!


for the non-post related warnings the last bit should be:
Quote:

}
$url="member.php?u={$vbulletin->GPC['id']}";
eval('$warn_page .= "' . fetch_template('warn_redirect') . '";');

Delphiprogrammi 04-15-2006 06:00 PM

hi people,

I have implemented phrases so the system should be "translation ready" into any language you wish.Just done so gonna leave it running for it while to see if any problems show up(like phrases i forgot) :D after that i'll attach the XML you just need to reimport it (and like always BACKUPPPPPPP your database)

ciao :cool:

Dr.Viggy 04-17-2006 12:39 AM

well this thing took forever to go through it all and put in but as soon as i did, it worked perfectly. GREAT product. thanks

Delphiprogrammi 04-17-2006 12:05 PM

hi people,

A thing new to this hack are the bitfield permissions.Just like vbulletin uses itself "can view forum" etc etc.....

Nathan2006 04-18-2006 03:24 AM

When an email is received after removing a warning the email does not show the warned post or the board name:

Quote:

Dear user,

A warning you have received for violating Array[bbtitle] Rules has
been totally removed from your account, by the Forums team. The removed
warning concerned:

Banned
(Warning Type = 'Permanent Ban')

The post for which you were warned, and whose warning has now been
totally removed, can be seen here:

Array[bburl]/showthread.php?p=81

With this warning being removed, 15 point(s) have been removed from
your total.

Your total Warning Level at the moment is: 0 point(s).

Please reply back if you have a dispute.

----------------

Array[bbtitle] Team
Thank you for any help :)

Delphiprogrammi 04-18-2006 05:46 PM

Quote:

Originally Posted by Nathan2006
When an email is received after removing a warning the email does not show the warned post or the board name:



Thank you for any help :)

did you enabled that option for including the warned post ?

as for the links (Array['bbtitle']) i've spotted that to and already fixed it

that package will be availible in a few days if i complete my tests successfully

Nathan2006 04-19-2006 01:00 AM

Quote:

Originally Posted by Delphiprogrammi
did you enabled that option for including the warned post ?

as for the links (Array['bbtitle']) i've spotted that to and already fixed it

that package will be availible in a few days if i complete my tests successfully

Yeah I have set that to yes in the admincp also when you remove an alert

From a post that was within the members area

Quote:

Dear Example,

An Alert you have received for violating Array[bbtitle] Rules has
been totally removed from your account, by the Forums team. The removed
Alert concerned:

Spamming the forums
(Warning Type = 'Spam')

The post for which you were alerted, and whose alert has now been
totally removed, can be seen here:

Array[bburl]/showthread.php?p=72

Kind regards

----------------

Array[bbtitle] Team

dai-kun 04-19-2006 05:41 AM

is it possible to have a post that's been warned soft/completly deleted after the warning expires? My users keep getting warned twice cus the warn post image disappears.

Nathan2006 04-19-2006 06:10 AM

Quote:

Originally Posted by dai-kun
is it possible to have a post that's been warned soft/completly deleted after the warning expires? My users keep getting warned twice cus the warn post image disappears.

The best thing to do is go to:

Admincp > Advanced Warning System > Manage Warning Options>

Then have a look down the list and you will find:

4th option on the list

Quote:

Allow multiple warnings for the same post?If set to No, you will not be allowed to warn a user more than once, for the same post, even if there were several violations in that post.
Set that to "NO" and it should stop multipost warnings :)


All times are GMT. The time now is 09:31 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.02388 seconds
  • Memory Usage 1,868KB
  • 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
  • (10)bbcode_code_printable
  • (2)bbcode_php_printable
  • (21)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