Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

Reply
 
Thread Tools
Advanced Warning System (Beta Version) Details »»
Advanced Warning System (Beta Version)
Version: 3.5.0, by sv1cec sv1cec is offline
Developer Last Online: Mar 2022 Show Printable Version Email this Page

Version: 3.5.0 RC3 Rating:
Released: 09-08-2005 Last Update: 05-30-2006 Installs: 221
DB Changes Uses Plugins Template Edits
Additional Files Is in Beta Stage  
No support by the author.

Advanced Warning System


IF YOU ARE RUNNING vB 3.6, THERE IS A NEW THREAD FOR THIS HACK UNDER THAT VERSION. vB 3.6 USERS GO HERE:

https://vborg.vbsupport.ru/showthread.php?t=124477


This is a direct port of the Advanced Warning System, as it was implemented in vB 3.0.x. This port has all the features of AWS version 3.4.16, except the Notes.

For a complete description of AWS capabilities, please refer to the following thread:

https://vborg.vbsupport.ru/showthread.php?p=574374

The vB 3.5 compliant version of AWS includes:

1 Product XML (17 Plugins, 107 Phrases, 26 Templates, 43 Settings)
1 ACP Navigation XML
1 PHP Functions File
3 Images
2 PHP Frontend Files
1 PHP Admin CP File
1 PHP Mod CP File
3 PHP Cronjob Files

This port would not be possible, without the help of KirbyDE, to whom I am greatful. KirbyDE will also be responsible for supporting you here, with questions related to this particular release. Also, this port would not have been possible, without the help of Juan P hernandez, who offered me a free test system, in which the porting was performed.

The hack has been tested and it is believed to be bug-free, however since this is a major hack, I release it today (September 9th 2005) as beta.

I hope you all enjoy it.

History (Productversion)
3.5.b
Initial Version

3.5.b1
Fixed a typo that caused Errors in User Datamanager.
Fixed a wrong object reference in functions_warning.php

3.5.b2
Fixed a Bug that caused PHP Error Messages.
Fixed a Typo in the Install Code that causes mySQL Errors.
Updated the Template Edit instructions to be (hopefully) compatible with RC3

3.5.b3
Fixed User not showing up in automatic warning PMs
Fixed 2 missing Phrases
Fixed Hidden Warner being Used for Automatic Warnings
Fixed "View x's Warnings" Button in Usermanager not working

3.5.b4
Removed one unsued Phrase, added one missing Phrase
Fixed a Typo that caused PHP Errors when sending PMs
Fixed a Typo that caused PHP Errors upon Installation
Changed Product ID for Admin CP Navigation XML from vbulletin to aws, so it won't show up any longer if AWS is uninstalled/disabled.

A bug was found which didn't allow you to delete an entered Warning Type. Bug fixed in the current distribution file.

If you found a Bug, please report it at http://bugs.kirbydemos.ath.cx

This helps to keep issues organized, which can't be guaranteed if it's only posted in the Thread.
Thank you.

P.S.1: After you install the hack per the instructions, please update your installation with the separate files listed. They are newer files not included in the zip.

P.S.2: If you want to use the Notes feature, as it existed in AWS 3.4.16, please install AWS per the instructions in the zip file, and THEN follow the instructions included in the warn_notes_update_instructions.txt.

IMPORTANT NOTE: Please keep in mind that this hack is not supported. What this means is that I have no obligation to support it. The reason for that, is because I have no access to a vB 3.5 system any more, so I can't work on this hack any more. Andreas (or KirbyDE) who undertook the support of this version of the AWS hack in the beginning, is obviously too busy to support it. So you are on your own, at least as far as the interaction with vB is concerned. If you have an issue with the hack files themselves, I'll do my best to solve it, but without a test environment, it is not easy. So users of vB 3.5 beware!

P.S. May 31st 2006: The zip file uploaded today, should contain all the debugging done by Delphi, so it should be fine as it is. You do not need the other files listed at the right, only the zip. Download it and follow the instructions in it, for installing the hack. I leave the other files there, just in case some one needs them, they will be deleted later.

SV1CEC

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #702  
Old 02-26-2006, 11:09 AM
Exitilus Exitilus is offline
 
Join Date: Jul 2004
Location: Spokane, WA
Posts: 432
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just rename them in that one file? or all the AWS Files?
Reply With Quote
  #703  
Old 02-26-2006, 11:15 AM
Delphiprogrammi Delphiprogrammi is offline
 
Join Date: Feb 2004
Location: Landen(Belgium)
Posts: 1,335
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Exitilus
Just rename them in that one file? or all the AWS Files?
if you rename a function you must find every call to the renamed function in all aws files (and plugings used by the system) or PHP will display something like "fatal error call to undefined function" Since this seems to be a problem for people using that inferno hacks and also like this hack i already renamed those AWS functions but it still needs some testing to see if it actually works running fine here on my board
Reply With Quote
  #704  
Old 02-26-2006, 12:33 PM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

As Delphi said, if you rename a function, you have to change every call to that function too.
Reply With Quote
  #705  
Old 02-26-2006, 03:28 PM
MorrisMcD's Avatar
MorrisMcD MorrisMcD is offline
 
Join Date: Nov 2003
Location: Cincinnati, Ohio
Posts: 415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sv1cec
@MorrisMcD, @Exitilus: If you do the renaming properly, there is no reason why this would happen. I may rename those routines in the new version, but this is the last of my priorities. Did you ask Inferno for a solution too? What did they say? And this is not a new problem, it's been known since the previous version of AWS.
When I do all the renaming, things work, except when I click view warnings on people's postbit, it shows nothing but a blank page.. I am pretty sure there were a couple other areas when I got nothing but a blank page.. The way I ended up having it working, was because I renamed everything on the QUIZ hack because it wouldnt work when I did it with AWS.. THEN I got RPG and it just got even messier..

This is a far superior warning hack imo.. You should really consider rereleasing it with prefixes on your functions. I think Inferno should be doing the same thing..

Great hack.. Dont take me as complaining.. I am really bummed I couldnt get it workin
Reply With Quote
  #706  
Old 02-26-2006, 04:37 PM
Delphiprogrammi Delphiprogrammi is offline
 
Join Date: Feb 2004
Location: Landen(Belgium)
Posts: 1,335
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi people,

try this.Open "/includes/functions_warning.php" and change this code

PHP Code:
function SendPM($message,$title,$to,$from)
{
    global 
$db;
    
    
// Permssions Crap XD your getting a damn PM!! XD
    // Parse It Out
    
$title addslashes(htmlspecialchars_uni(fetch_censored_text($title)));
    
$message addslashes(fetch_censored_text($message));
    
$to=$db->query_first("select * from ".TABLE_PREFIX."user where userid='{$to}'");  // Grab Member Its Going TO
    
$from=$db->query_first("select * from ".TABLE_PREFIX."user where userid='{$from}'"); // Grab Member Its Coming FROM
    
    // Insert The Message
    
$to_string["$to[userid]"] = $to['username'];
    
$now=time();
    
$db->query_write("insert into ".TABLE_PREFIX."pmtext (fromuserid,fromusername,title,message,touserarray,iconid,dateline,showsignature  ,allowsmilie) values ('{$from['userid']}','".addslashes($from['username'])."','{$title}','{$message}','".addslashes(serialize($to_string))."','4','{$now}','1','1')");
    
// id thingy
    
$db->query_write("insert into ".TABLE_PREFIX."pm (pmtextid, userid) values (".$db->insert_id().", '{$to['userid']}')");
    
    if (
$to['pmpopup'])
    {
        
$db->shutdown_query("UPDATE " TABLE_PREFIX "user SET pmtotal=pmtotal+1, pmunread=pmunread+1, pmpopup=2 WHERE userid='{$to['userid']}'");
    }
    else
    {
        
$db->shutdown_query("update ".TABLE_PREFIX."user set pmtotal=pmtotal+'1',pmunread=pmunread+'1' WHERE userid='{$to['userid']}'");
    }

    
    
// Update pm count
    

to (for example)
PHP Code:
function SendPmAws($message,$title,$to,$from
the rest off the code in that function doesn't need any changes

still in functions_warning.php

PHP Code:
function RunError($message)
{
    
// Theres probably some globals below not in use, uhm, who cares?
    
global $vbulletin$session$stylevar$_POST$vbphrase,$navbits,$show,$header;
    global 
$templatecache$db$vbulletin$style,$headinclude,$footer;
    global 
$tempusagecache$templateassoc$pmbox,$pmtext;
        eval(
'$warn_page .= "' fetch_template('warn_error') . '";');
    
$navbits construct_navbits($navbits);
    eval(
'$navbar = "' fetch_template('navbar') . '";');
    eval(
'print_output("' fetch_template('WARN') . '");');
    exit;

PHP Code:
function RunErrorAws($message
again no further changes are needed

files who needs an update
  • Warn.php(SendPm() and RunError())
  • /includes/cron/kill_wans.php (SendPM())
  • /admincp/admin_warn.php(name it SendPmAcp() there for example)

that should do it

Now don't shoot me if i forgot a place where those functions are called :speechless:
Reply With Quote
  #707  
Old 02-26-2006, 06:48 PM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Somehow, I do not believe that these are the only locations that need to be changed. Did you check the plugins too?
Reply With Quote
  #708  
Old 02-26-2006, 09:33 PM
Delphiprogrammi Delphiprogrammi is offline
 
Join Date: Feb 2004
Location: Landen(Belgium)
Posts: 1,335
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sv1cec
Somehow, I do not believe that these are the only locations that need to be changed. Did you check the plugins too?
yeah didn't find any that uses those RunError() or SendPM() i did found plugins that use warn_notify and warn_calculations but now John ... something else.I've found that if you want to remove a warning uing the "complete removal" option it will fail to function because the items are incorrectly linked i mean this code

PHP Code:
$cy="<a href='{$vbulletin->options[bburl]}/$admincpdir/admin_warn.php?act=completeremove&id={$warn[wid]}&userid={$warn[wuserid]}&uname={$warn[wusername]}&wname={$warn[warn_name]}&postid={$warn[warned_post]}&orderstring={$order}'>Complete Removal</a>"
$admincpdir variable doesn't excist anymore in 3.5.x this could be solved by

PHP Code:
$admincpdir=$vbulletin->config['Misc']['admincpdir'];
$cy="<a href='{$vbulletin->options[bburl]}/$admincpdir/admin_warn.php?act=completeremove&id={$warn[wid]}&userid={$warn[wuserid]}&uname={$warn[wusername]}&wname={$warn[warn_name]}&postid={$warn[warned_post]}&orderstring={$order}'>Complete Removal</a>"
now those links will work again as they should
Reply With Quote
  #709  
Old 02-27-2006, 04:44 AM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Darn man, that's why I hate 3.5. You have to learn mostly everything from scratch.

Thanks for the heads-up Delphi, maybe this is my problem with the removal in admincp. I'll work on it maybe today. I think I'll define $admincp as a global variable somewhere in the start, and leave the code alone. There is no reason to change every occurence of it. Is there any place, where all the obsolete variables and structures are collected, so that one can reference it and take it from there? The only thing I had found in the past, was a thread, where you had to scroll through all the posts to get that information. Hasn't Jellsoft released any official document with these changes?

Again, thanks.
Reply With Quote
  #710  
Old 02-27-2006, 12:44 PM
Delphiprogrammi Delphiprogrammi is offline
 
Join Date: Feb 2004
Location: Landen(Belgium)
Posts: 1,335
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi John ,

Found another problem.If you completely remove a warn and you send email about this

Quote:
Dear tester,

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:

you are crossposting
(Warning Type = 'CrossPosting')

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

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

With this warning being removed, 4 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
i think that is caused by a template in templates it is still $vboptions and not $vbulletin->options no sure however i'll try to find the problem

update

problem found it's the $thread2 variable causing the failing url's in admin_warn.php
Reply With Quote
  #711  
Old 02-27-2006, 03:00 PM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think I've spotted that too, and corrected it. Thanks for the heads-up though.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:13 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.12357 seconds
  • Memory Usage 2,357KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete