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)

Curzon564 12-14-2004 12:08 PM

Quote:

Originally Posted by sv1cec
Yes, you have not run the query that adds the "caused_ban" column in your warnings table. Run it now:

ALTER TABLE `".TABLE_PREFIX."warnings` ADD COLUMN `caused_ban` char(1) AFTER warned_warning_id

Rgds


Thanks for your help.
This fixed the problem.

SamirDarji 12-14-2004 01:42 PM

Quote:

Originally Posted by sv1cec
What you mean "fix this hack"? I am doing my best!!!

Rgds

It was a joke! :D I actually thought I was looking at the thread for the vb Articles (too many open windows) and thought this reply was there. My mistake! Please take no offense!

I downloaded the hack today to completely install on my test server before rollout on the live server. I've seen quite a few hacks, and read a lot of the documentation that comes with it. By far, this is most thorough and detailed bit of instructions that I've ever seen. I thought you were awesome from just the quick replys to have to issues with the hack, but your hack has gone above and beyond any hack I've seen. I mean, vb itself doesn't have this detailed documentation, lol. If this doesn't make hack of the year (if there is such a thing), I would think the judges to be crazy.

Any luck on the job? If not, pm me because I need some hacks made for my site. Two of them are very simple. I even have the logic for them laid out. But a third one is killer hard and will require some real thinking and development. I was looking into paying someone to do it, and if you work this way with all your clients, I think you're the man for the job.

SamirDarji 12-14-2004 02:31 PM

While I was changing the templates for postbit, I ran into the following:
HTML Code:

"In the same template, find:

$post[reputationdisplay]</if>"

Mine had:
HTML Code:

$post[reputationdisplay]</div></if>
Did you want the additional code put in before the last div tag or did you want it after it? Thank you again John. It's been a smooth install so far.

SamirDarji 12-14-2004 02:47 PM

Another issue. For some reason when setting the warning options, it won't show the "Banned Users" usergroup in the drop-down box for the Permanent Ban Group. It appears fine in the drop-down box above. This one's stumping me.

SamirDarji 12-14-2004 02:53 PM

Ok, something's definitely wrong here. I saved the Warning Options and it just gave me a blank screen on the side of the frame. Sometimes my test server does stuff like that, so I didn't pay it any mind. But I went back to check if my options were saved, and none of them were. It also did the blank screen thing when I did the last step on the upgrade_warn.php (I believe I had some version of ZT's hack installed). Something tells me the db didn't get modded. :( Any assistance appreciated.

SamirDarji 12-14-2004 02:57 PM

Man, I'm just racking these up. When trying to View Warning Logs, get the following error
Code:

Warning: Division by zero in e:\wampp13cs\htdocs\vb3\admincp\admin_warn.php on line 283
I know the logs are empty because I haven't warned anyone. Could that be the problem?

SamirDarji 12-14-2004 03:10 PM

When I went to view warned users, I got the same error:
Code:

Warning: Division by zero in e:\wampp13cs\htdocs\vb3\admincp\admin_warn.php on line 463
Again, it could be because there are no warned users.

sv1cec 12-14-2004 03:12 PM

Let's take your question in the order they came.

- postbit template. Mine (3.0.3) doesn't have any div there, so I can't be sure. I suggest you experiment.

- banned user group not appearing, you are right, I haven't seen that, I'll look it up and post a correction here.

- your last error is a result of not saving the warning options properly. One of the parameters defined there, is the records per page, so if that is not set, the program tries to divide by nothing.

Let's see what we can do to help here:

First of all, try to see if you have the proper tables. Check the following tables by comparing the results of the "describe tablename" command with the columns described in the installation instructions. Second, check to see if the required templates have been added.

We'll take it from there.

Rgds

sv1cec 12-14-2004 03:31 PM

What was I thinking?????

OK, to fix the issue with the banned users group not appearing in the drop-down menus of the other options, please open your admin_warn.php file and find:

PHP Code:

    if($usergroup['usergroupid']!=$warn_opts['banned_usergroup_id'] AND $usergroup['usergroupid']!=$warn_opts['troll_usergroup_id'] AND $usergroup['usergroupid']!=$warn_opts['restore_groupid'])
{
    
$uoption.="<option value='{$usergroup['usergroupid']}'>{$usergroup['title']} (ID: {$usergroup['usergroupid']})</option>";
    
$tuoption.="<option value='{$usergroup['usergroupid']}'>{$usergroup['title']} (ID: {$usergroup['usergroupid']})</option>";
    
$restoreoption.="<option value='{$usergroup['usergroupid']}'>{$usergroup['title']} (ID: {$usergroup['usergroupid']})</option>";
    } 

Replace that part of code with:

PHP Code:

if($usergroup['usergroupid']!=$warn_opts['banned_usergroup_id'])
    {
        
$uoption.="<option value='{$usergroup['usergroupid']}'>{$usergroup['title']} (ID: {$usergroup['usergroupid']})</option>";
    }
    if(
$usergroup['usergroupid']!=$warn_opts['troll_usergroup_id'])
    {
        
$tuoption.="<option value='{$usergroup['usergroupid']}'>{$usergroup['title']} (ID: {$usergroup['usergroupid']})</option>";
    }
    if(
$usergroup['usergroupid']!=$warn_opts['restore_groupid'])
    {
        
$restoreoption.="<option value='{$usergroup['usergroupid']}'>{$usergroup['title']} (ID: {$usergroup['usergroupid']})</option>";
    } 

I'll post a new version in the zip file, in a minute.

beano33 12-14-2004 03:36 PM

Quote:

Originally Posted by sv1cec
A whole usergroup for yourself!!!

Why didn't you just add yourself in the admins?

Just add that group in the "Protected Usergroups" option, in the Warning Options.

Rgds

Protected Usergroups isn't working on my installation. I have Use Hierarchical Schema set to no and added 13|18 as protected usergroups, but it's having no effect. Any suggestions? Everything else seems to be working as intended.


All times are GMT. The time now is 01: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.01867 seconds
  • Memory Usage 1,769KB
  • 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_code_printable
  • (2)bbcode_html_printable
  • (2)bbcode_php_printable
  • (3)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