vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Advanced Warning System (AWS) (https://vborg.vbsupport.ru/showthread.php?t=71992)

sv1cec 01-03-2005 05:54 AM

Quote:

Originally Posted by jonnerd154
I need a little help. I followed the install directions perfectly (I think, I may have made a mistake.) Everything LOOKS ok in the mod and admincp's and the warn [user] links are at the top of all posts, etc. When I click on the Ban [user] links I am directed to (EG) http://mahplace.com/forums/Warn.php?...28&post=769427 but the output of that page is just <html><body></body></html>

Any ideas why the page is not parsing?

EDIT: Note that I am using an installer package I downloaded yesterday.

Check that you have the template warn_addwarn. What does it contain?

Rgds

jonnerd154 01-03-2005 06:18 AM

Quote:

Originally Posted by sv1cec
Check that you have the template warn_addwarn. What does it contain?

Rgds

oh crap, I'm the one at fault here. I am also creating a new layout at the moment and I did not have the new layout (the one I view my forum in) selected as the default when I ran the install script. I defaulted it and ran it again, now it is working!

Thanks, sorry to bother you with a non-existant problem!

*clicks Install*

jonnerd154 01-03-2005 06:21 AM

++++, cancel the above. Now everything is parcing but when I try to search for users in the admincp I get the PHP error "Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /usr/local/apache/dev/forums/admincp/user.php on line 643" is that another one of my mistakes? If so, any pointers?

jonnerd154 01-03-2005 06:30 AM

Nevermind....I lost a comma in the update. Sorry. You have a great hack here and it's just my stupidity that kept it from working. Thanks!

bold 01-03-2005 06:51 AM

Quote:

Originally Posted by sv1cec
Check your modifications in private.php, you must have missed something.

Rgds

i've re-checked many times over. does my error message give you any idea where i could've made a mistake?

sv1cec 01-03-2005 07:51 AM

Quote:

Originally Posted by bold
i've re-checked many times over. does my error message give you any idea where i could've made a mistake?

Can you please tell me when you get that error message? I think I've found a problem, but I need to be sure from you.

Rgds

sv1cec 01-03-2005 08:17 AM

Quote:

Originally Posted by bold
i've re-checked many times over. does my error message give you any idea where i could've made a mistake?

Bold,

Try this and let me know if it works. In file private.php, as you have already changed it, find:

PHP Code:

        $w=$warn_opts['automatic_warner'];
        
$autowarner=$DB_site->query_first("select username from ".TABLE_PREFIX."user where userid=$w");
        
$autowarner=vbstrtolower($autowarner['username']);
        
        
$w=$warn_opts['warner'];
        
$warner=$DB_site->query_first("select username from ".TABLE_PREFIX."user where userid=$w");
        
$warner=vbstrtolower($warner['username']);
        
        
$w=$warn_opts['collector'];
        
$collector=$DB_site->query_first("select username from ".TABLE_PREFIX."user where userid=$w");
        
$collector=vbstrtolower($collector['username']); 

Replace that with:

PHP Code:

        if (!$warn_opts['collector']=='' OR !$warn_opts['collector']=='0')
        {
            if (!
$warn_opts['automatic_warner']=='')
            {
                
$w=$warn_opts['automatic_warner'];
                
$autowarner=$DB_site->query_first("select username from ".TABLE_PREFIX."user where userid=$w");
                
$autowarner=vbstrtolower($autowarner['username']);
            }
            if (!
$warn_opts['warner']=='')
            {
                
$w=$warn_opts['warner'];
                
$warner=$DB_site->query_first("select username from ".TABLE_PREFIX."user where userid=$w");
                
$warner=vbstrtolower($warner['username']);
            }
            
$w=$warn_opts['collector'];
            
$collector=$DB_site->query_first("select username from ".TABLE_PREFIX."user where userid=$w");
            
$collector=vbstrtolower($collector['username']);
        } 

I assume that your problem arises, because you have not defined a collector or an automatic warner or a hidden warner, and the program does not check for their existence. Unfortunatelly, I have these defined in my system, and the program didn't complained when I was checking it.

Please let me know if it works.

Rgds

bold 01-03-2005 04:09 PM

Quote:

Originally Posted by sv1cec
Bold,

Try this and let me know if it works. In file private.php, as you have already changed it, find:

PHP Code:

        $w=$warn_opts['automatic_warner'];
        
$autowarner=$DB_site->query_first("select username from ".TABLE_PREFIX."user where userid=$w");
        
$autowarner=vbstrtolower($autowarner['username']);
        
        
$w=$warn_opts['warner'];
        
$warner=$DB_site->query_first("select username from ".TABLE_PREFIX."user where userid=$w");
        
$warner=vbstrtolower($warner['username']);
        
        
$w=$warn_opts['collector'];
        
$collector=$DB_site->query_first("select username from ".TABLE_PREFIX."user where userid=$w");
        
$collector=vbstrtolower($collector['username']); 

Replace that with:

PHP Code:

        if (!$warn_opts['collector']=='' OR !$warn_opts['collector']=='0')
        {
            if (!
$warn_opts['automatic_warner']=='')
            {
                
$w=$warn_opts['automatic_warner'];
                
$autowarner=$DB_site->query_first("select username from ".TABLE_PREFIX."user where userid=$w");
                
$autowarner=vbstrtolower($autowarner['username']);
            }
            if (!
$warn_opts['warner']=='')
            {
                
$w=$warn_opts['warner'];
                
$warner=$DB_site->query_first("select username from ".TABLE_PREFIX."user where userid=$w");
                
$warner=vbstrtolower($warner['username']);
            }
            
$w=$warn_opts['collector'];
            
$collector=$DB_site->query_first("select username from ".TABLE_PREFIX."user where userid=$w");
            
$collector=vbstrtolower($collector['username']);
        } 

I assume that your problem arises, because you have not defined a collector or an automatic warner or a hidden warner, and the program does not check for their existence. Unfortunatelly, I have these defined in my system, and the program didn't complained when I was checking it.

Please let me know if it works.

Rgds

Hey that worked! Thanks for taking the time to work on my problem. Thanks!

sv1cec 01-03-2005 05:21 PM

Quote:

Originally Posted by bold
Hey that worked! Thanks for taking the time to work on my problem. Thanks!

It was not your problem Sir, it was a problem with my hack, so I had to fix it.

I'll release a new version tonight, after I put the twins to bed and get something to eat.

Rgds

mojo8850 01-03-2005 11:27 PM

Hey Is This A Complete Different Package..

I Mean Do I Have To Install The Warning Hack 1.0 Then Upgrade 1.5 Then Install This..

Or Can I Install This As It's Own..!


All times are GMT. The time now is 05:35 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.02666 seconds
  • Memory Usage 1,794KB
  • 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
  • (4)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (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