Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > Premium Archives > Advanced Warning System (AWS)
FAQ Community Calendar Today's Posts Search

Closed Thread
 
Thread Tools
More upgrade instruction problems.. Details »»
More upgrade instruction problems..
Version: , by drumsy drumsy is offline
Developer Last Online: Apr 2019 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 04-22-2005 Last Update: Never Installs: 0
 
No support by the author.

I don't know what the problem is, but a lot of the instructions in the latest upgrade seem to be telling me to locate code that's a little bit different than before.

An examples:

From the installation instructions for 3.4.4, the version I installed two days ago:

PHP Code:
In the same filefind:

        
// ### NOT PREVIEW - ACTUAL POST ###
        
if ($newpost['visible'])
        {

Right below thatadd the following:

            
// Change for automatic warning
            // You have to use "ObsceneWords" as Title of the Warning.
            // You have to use a Hidden Warner.
            
if ($vboptions['warn_automatic'] == 1)
            {
                
$Protected_Usergroups explode("|",$vboptions['warn_protected_usergroups']);
                if(
$Protected_Usergroups[0])
                {
                    foreach(
$Protected_Usergroups as $pro)
                    {
                        if(
$pro == $bbuserinfo['usergroupid'])
                        {
                            
$userprotected 1;
                        }
                    }
                }
                if (
$bbuserinfo['userid'] != AND $userprotected != AND $wehavecensoredwords == 1)
                {
                    
// Get Warning Types
                    
$warn_type = array();
                    
$warn_type $DB_site->query_first("SELECT * FROM " TABLE_PREFIX "warning_types WHERE warn_name='ObsceneWords'");
                    
$thread1="[URL='{$vboptions['bburl']}/showthread.php?p={$_POST['postid']}']Warned Post[/URL]";
                    
$thread2="$vboptions[bburl]/showthread.php?p=$newpostid";
                    
$warnerdata=$DB_site->query_first("select username, email from ".TABLE_PREFIX."user where userid='{$vboptions['warn_automatic_warner']}'");
                    if (
$alert=='')
                    {
                        
$alert='No';
                    }
                    
warn_calculations($warn_type['tid'], $wcomment$newpostid$bbuserinfo$vboptions['warn_automatic_warner'], $alert);
            
                    
warn_notify($thread1$thread2$bbuserinfo$warnerdata['email'], $warnerdata['username'], $vboptions['warn_automatic_warner'], $warn_type$level$wcomment$alert);
                }
            }
            
// End of automated warnings things 
In the latest download, the upgrade instructions from 3.4.4 to 3.4.5 state this:

PHP Code:
3. Edit newreply.php and find:

            
$wcomment="(This is an automatic warning, no moderator was involved.)";
            if (
$alert=='')
            {
                
$alert='No';
            }
            
warn_calculations($warn_type['tid'], $wcomment$newpostid$bbuserinfo$vboptions['warn_automatic_warner'], $alert);
            
            
warn_notify($thread1$thread2$bbuserinfo$warnerdata['email'], $warnerdata['username'], $vboptions['warn_automatic_warner'], $warn_type$level$wcomment,$alert);

Replace this with:

            
$wcomment=$original_text;
            if (
$alert=='')
            {
                
$alert='No';
            }
            
warn_calculations($warn_type['tid'], $wcomment$newpostid$bbuserinfo$vboptions['warn_automatic_warner'], $alert);
            
            
$wcomment="(This is an automatic warning, no moderator was involved.)";
            
            
warn_notify($thread1$thread2$bbuserinfo$warnerdata['email'], $warnerdata['username'], $vboptions['warn_automatic_warner'], $warn_type$level$wcomment,$alert); 
Now, is it me, or was the following line never even in the 3.4.4 installation instructions?

PHP Code:
            $wcomment="(This is an automatic warning, no moderator was involved.)"
It's in the newest installation instructions, but not in the one I had. This makes it very confusing when upgrading. Please advise...

Also, for English users, in the pm_newpm, that line should read: You appear to be the Collector of this site. Under which ID do you want this message to be sent?

Show Your Support

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

Comments
  #2  
Old 04-23-2005, 05:25 AM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You are right. What happens is that I constantly work on this hack and improve it, correct errors etc. Sometimes I find something, and I correct it. Usually what I do, is create a new zip and upload it, perhaps using the same version number (else would would be in version 341.145.983 or something). I advise users to always download the latest zip, just before starting the installation. But even if you do that, there is no guarantee that something will not be added later on. Usually these are small things, which are in the hack's files, so next time you do an upgrade and the hack files will be uploaded, you will upload the latest version.

In this instance, it was in a standard file, so I apologize. What else can I say?

As for the template, please understand that English is not my first language, so sometimes my English are not perfect.

Rgds
  #3  
Old 04-23-2005, 11:59 AM
drumsy's Avatar
drumsy drumsy is offline
 
Join Date: Nov 2001
Location: Charlotte, NC
Posts: 292
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No problems, I just wanted to make sure that I was seeing things correctly, and also advise other installers to be vigilant.
Closed Thread


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 12:27 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.03552 seconds
  • Memory Usage 2,247KB
  • Queries Executed 16 (?)
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
  • (3)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (2)postbit
  • (3)postbit_onlinestatus
  • (3)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete