vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Major Additions - Banned Members Log (https://vborg.vbsupport.ru/showthread.php?t=195054)

Mosh 06-23-2009 12:57 AM

Quote:

Originally Posted by Jon1422 (Post 1829951)
Quick word of advice... when installed, the "ban time remaining" and "lift ban" column headers for temp bans are over the wrong columns ;)

To correct, edit the .xml file prior to installing and locate the code lines:

<td class='thead' align='center'>$vbphrase[ban_time_remaining]</td>
<td class='thead' align='center'>$vbphrase[lift_ban]</td>

and swap these around so they read...

<td class='thead' align='center'>$vbphrase[lift_ban]</td>
<td class='thead' align='center'>$vbphrase[ban_time_remaining]</td>

Done ;)

Thanks for pointing that out :)

I have been able to replicate this. I will release an updated version that fixes this in the next couple of days.

Mosh 06-24-2009 07:18 AM

Update: v3.8.004 - Wednesday 24th June 2009
-- Fixed: banned_log template (column mismatch)

ragarcia87 08-12-2009 01:34 PM

1 Attachment(s)
After I upgraded to vBulletin 3.8.4 the number of banned users at the bottom shows 0 instead of 33 which it should be. Any help would be awesome :D

toonysnn 08-12-2009 04:33 PM

For anyone who has the issue that ragarcia87 has, I've made a temporary fix, adding a SQL query.

Replace plugin "Banned Members Log (2)" contents with:
PHP Code:

if ($vbulletin->options['bml_display_banned_membercount'] != 0)
{
    
    
$qqqqqq $vbulletin->db->query_read("SELECT COUNT(*) FROM `" TABLE_PREFIX "user` WHERE usergroupid='8'");
    
$qqqqqq $vbulletin->db->fetch_array($qqqqqq);
    
    
// assign the member counts from the datastore to some variables
    
$bannedmembercount intval(($vbulletin->ms_datastore['bml_counter'] > $vbulletin->ms_datastore['bml_counter'] : $qqqqqq['COUNT(*)']));
    
$unconfirmedmembercount intval($vbulletin->ms_datastore['bml_unconfirmed']);
    
$propermembercount $vbulletin->userstats['numbermembers'];

    
// set all display flags to true
    
$show['banned_count_url'] = true;
    
$show['banned_count'] = true;
    
$show['unconfirmed_count'] = true;

    
// work out if the user is in a usergroup that has permissions to get the banned member link
    // if the user does not have permission, then set the display flag are set to false
    
$banned_allowed_groups explode(',',$vbulletin->options['bml_grps']); 
    if (
$vbulletin->options['bml_all_grps'] == 1)
    {
        if(!
is_member_of($vbulletin->userinfo,$banned_allowed_groups)) 
        {
            
$show['banned_count_url'] = false;
        }
    }

    
// change flags to false, depending on what counts we want to display
    // also calculate the altered member count, based on selection
    
if ($vbulletin->options['bml_display_banned_membercount'] == 1)
    {
        
$show['banned_count'] = false;
        
$show['unconfirmed_count'] = false;
        
$newmembercount $propermembercount $bannedmembercount;
    }
    if (
$vbulletin->options['bml_display_banned_membercount'] == 2)
    {
        
$show['banned_count'] = false;
        
$newmembercount $propermembercount $unconfirmedmembercount $bannedmembercount;
    }
    if (
$vbulletin->options['bml_display_banned_membercount'] == 3)
    {
        
$show['unconfirmed_count'] = false;
        
$newmembercount $propermembercount $bannedmembercount;
    }
    if (
$vbulletin->options['bml_display_banned_membercount'] == 4)
    {
        
$newmembercount $propermembercount $unconfirmedmembercount $bannedmembercount;
    }

    
// here is the correct members count
    
$numbermembers vb_number_format($newmembercount);

    
// spit out the resulting template
    
eval('$numbermembers .= "' fetch_template('banned_count') . '";');


ragarcia87: I've applied this to our board.

Mosh 08-13-2009 02:45 AM

Quote:

Originally Posted by ragarcia87 (Post 1865828)
After I upgraded to vBulletin 3.8.4 the number of banned users at the bottom shows 0 instead of 33 which it should be. Any help would be awesome :D

I will look into it and get back to you.

Quote:

Originally Posted by toonysnn (Post 1865969)
For anyone who has the issue that ragarcia87 has, I've made a temporary fix, adding a SQL query.

Replace plugin "Banned Members Log (2)" contents with:
PHP Code:

if ($vbulletin->options['bml_display_banned_membercount'] != 0)
{
    
    
$qqqqqq $vbulletin->db->query_read("SELECT COUNT(*) FROM `" TABLE_PREFIX "user` WHERE usergroupid='8'");
    
$qqqqqq $vbulletin->db->fetch_array($qqqqqq);
    
    
// assign the member counts from the datastore to some variables
    
$bannedmembercount intval(($vbulletin->ms_datastore['bml_counter'] > $vbulletin->ms_datastore['bml_counter'] : $qqqqqq['COUNT(*)']));
    
$unconfirmedmembercount intval($vbulletin->ms_datastore['bml_unconfirmed']);
    
$propermembercount $vbulletin->userstats['numbermembers'];

    
// set all display flags to true
    
$show['banned_count_url'] = true;
    
$show['banned_count'] = true;
    
$show['unconfirmed_count'] = true;

    
// work out if the user is in a usergroup that has permissions to get the banned member link
    // if the user does not have permission, then set the display flag are set to false
    
$banned_allowed_groups explode(',',$vbulletin->options['bml_grps']); 
    if (
$vbulletin->options['bml_all_grps'] == 1)
    {
        if(!
is_member_of($vbulletin->userinfo,$banned_allowed_groups)) 
        {
            
$show['banned_count_url'] = false;
        }
    }

    
// change flags to false, depending on what counts we want to display
    // also calculate the altered member count, based on selection
    
if ($vbulletin->options['bml_display_banned_membercount'] == 1)
    {
        
$show['banned_count'] = false;
        
$show['unconfirmed_count'] = false;
        
$newmembercount $propermembercount $bannedmembercount;
    }
    if (
$vbulletin->options['bml_display_banned_membercount'] == 2)
    {
        
$show['banned_count'] = false;
        
$newmembercount $propermembercount $unconfirmedmembercount $bannedmembercount;
    }
    if (
$vbulletin->options['bml_display_banned_membercount'] == 3)
    {
        
$show['unconfirmed_count'] = false;
        
$newmembercount $propermembercount $bannedmembercount;
    }
    if (
$vbulletin->options['bml_display_banned_membercount'] == 4)
    {
        
$newmembercount $propermembercount $unconfirmedmembercount $bannedmembercount;
    }

    
// here is the correct members count
    
$numbermembers vb_number_format($newmembercount);

    
// spit out the resulting template
    
eval('$numbermembers .= "' fetch_template('banned_count') . '";');


ragarcia87: I've applied this to our board.

Thanks for the temp fix ;)

But it introduces two problems:
  1. It adds an extra query per page
  2. It does not take into account all ban groups, just usergroupid 8

As I said above for ragarcia87, I will look into it and get back to you asap (hopefully with a solution).

Mosh 08-13-2009 04:08 AM

Quote:

Originally Posted by ragarcia87 (Post 1865828)
After I upgraded to vBulletin 3.8.4 the number of banned users at the bottom shows 0 instead of 33 which it should be. Any help would be awesome :D

I can not replicate your issue.

I just upgraded a forum to vBulletin v3.8.4 and the number of banned users still shows up fine and correct.

As the number of banned members shown on the homepage is stored in the datastore and as far as I know vBulletin v3.8.4 has not altered how the datastore works, upgrading your forum should not affect this hack at all.

OK, from the installation instructions, can you ensure that you have done step 4 (i.e. file edit has not been accidentally been removed), then follow it by step 6.

Let me know if this fixes your issue.

dothanhtrung 08-16-2009 07:08 AM

In Automatic Link Creation (ACP ===> Banned Members Log), can you add "Create Link in Community" ?

Thanks,

Mosh 08-16-2009 07:28 AM

Quote:

Originally Posted by dothanhtrung (Post 1868350)
In Automatic Link Creation (ACP ===> Banned Members Log), can you add "Create Link in Community" ?

Thanks,

I thought about that before I released v3.8.004 of this hack, but as the Community menu was not added until vBulletin v3.8, the option would not work with v3.7.x nor v3.6.x, I would definitely get unnecessary posts asking this was not working on 3.x.x and how to get it working with it.

So, to maintain full compatibility over all 3 versions of vBulletin this hack is supported on, I will not be adding your request to the hack, sorry :(

Mosh 11-25-2009 02:08 AM

The vBulletin v4.0.x version of this hack is available here.

Mosh 01-02-2010 01:36 AM

Hi all,

It is with regret that after over 4 years (and thousands of hours) spent providing free support for my free hacks released here, as of today I will no longer be able to provide support for free.

This is due to being unemployed for a while, being strapped for cash and unable to rely on the virtually non-existent donations from here to help to pay the bills or put food on the table for my family. I am now providing all support for my free hacks released here over at Wolfshead Solutions via an annual support subscription (for a small fee).

It does not mean I will be no longer release free hacks, I will, but I will just no longer be supporting them for free.

My free hacks have and always will remain free to download and use. And so will updates/bug fixes.

I will be releasing more free hacks, but if you require any support at all for those free hacks, you will need to purchase an annual support subscription over at Wolfshead Solutions to receive support.

I am really sorry I have to do this, but revenue generated by my programming gigs are now my only source of income, and I can no longer afford the luxury of providing free support here, when that time can be spent creating new commercial products, doing paid work requests or providing paid support to pay the bills.

Thank you for the understanding.

Regards,

Mosh.


All times are GMT. The time now is 03:57 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.01158 seconds
  • Memory Usage 1,820KB
  • 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_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (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