Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons

Reply
 
Thread Tools
Banned Members Log Details »»
Banned Members Log
Version: 3.8.004, by Mosh Mosh is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Major Additions - Version: 3.8.x Rating:
Released: 10-30-2008 Last Update: 06-23-2009 Installs: 172
Uses Plugins Auto-Templates
Re-useable Code Code Changes Additional Files Translations  
No support by the author.

Please click Mark as Installed if you are using this hack.


What Does This Hack Do?[hr]hr[/hr]
It is a update of my v3.7.x hack available here, with the addition of file hooks, hack authors can now use hooks to expand this hack if needed, and a new column for the usergroup the banned user has been put in.

This hack displays a log of all temporary and permanently banned members on it's own page, it is paginated (with page count on the permanent bans section) if there are more results than you selected per page in the AdminCP, temporary bans are only displayed on page 1 (if you have more temporary banned members than one page, you must be doing something wrong), along with a count on how many temporary and permanent banned members there are. Any users displayed on the page(s) will have links to display their profile, if clicked on.

It can also show an altered total member count on your forum's homepage (if enabled) to either show the altered members count (exclude all banned members), show the altered members and unconfirmed (Users Awaiting Email Confirmation) members count, show the altered members, unconfirmed members and banned members count, or you can disabled it altogether (so it shows the unaltered members count). Enabled or disabled, it does not generate any extra queries.

You can optionally add a link on either the navbar proper or quick links.

This hack is controlled by usergroup permissions.

As an added bonus (if enabled), if a usergroup has permissions to view the banned members log, then the banned members count on the forumhome page will be clickable and will load the banned members log if clicked on (if no permission, then it will not be clickable).


This hack was created because I liked the idea of this hack by jredrum, and as it is not supported, not phrased at all, has no pagination, and has no usergroup permissions to speak of, I decided to use the idea of that hack and rewrite it from scratch based on the ModCP file banning.php, I have also integrated my Total Member Count Excluding Banned Members hack into this one and have now retired it.

There is only one file change (to config.php), but no template changes at all and is fully phrased. This generates no extra queries on the forum homepage at all, and generates 9-11 queries (depending on options selected and if logged out/logged in) on the ban_log.php page.


vBulletin Version Compatibility[hr]hr[/hr]
This hack can be used with vBulletin versions 3.6.0 - 3.8.8.

For the v4.0.x version of this hack - check here.



Hack Support/Feature Requests[hr]hr[/hr]
IMPORTANT: This hack is no longer supported.


Branding[hr]hr[/hr]
There is a small unobtrusive block of copyright branding text at the bottom of each page generated by this hack, which is there to promote my work and allow you to use this hack for free.

You are NOT allowed to remove my copyright branding from this hack.


Install/Uninstall Instructions[hr]hr[/hr]
The InstallInstructions.txt instructions file is included in attached .zip file.


Screenshots[hr]hr[/hr]
Shown in this order:
  • AdminCP Options
  • Banned Members Log (with temporary and permanent bans)
  • Banned user count shown in forum statistics on the forum homepage
  • Banned Members Log (with no temporary and permanent bans)
  • Message if there are no Banned Usergroups defined
  • Banned Members Log (with permanent bans and pagnation)

Version History[hr]hr[/hr]
v3.8.004 - Wednesday 24th June 2009
-- Fixed: banned_log template (column mismatch)

v3.8.003 - Wednesday 25th February 2009
-- Fixed: Banned Members Log (3) plugin - replaced 2 x ? with (c) to prevent parse errors (rare cases)
-- Changed: Files - ban_log.php (streamlined a couple of SQL queries)
-- Changed: banned_log template (column display order)
-- Changed: banned_perm_row template (column display order)
-- Changed: banned_temp_row template (column display order)
-- Updated: Files - ban_log_cron.php, hooks_ban_log.xml
-- Updated: Installation Instructions
-- Updated: Screenshots

v3.8.002 - Thursday 19th February 2009
-- Changed: Files - ban_log.php (updated SQL queries)
-- Changed: banned_log template
-- Changed: banned_none template
-- Changed: banned_perm_row template
-- Changed: banned_temp_row template
-- Updated: Banned Members Log (3) plugin
-- Updated: Files - ban_log_cron.php, hooks_ban_log.xml
-- Updated: Installation Instructions (now includes un-install instructions)
-- Updated: Screenshots
-- Added: New column - Usergroups
-- Added: bangroup phrase
-- Added: VersionHistory.txt

v3.8.001 - Friday 31st October 2008
-- Added: File Hooks
-- Initial vBulletin v3.8.x release


Show Your Appreciation [hr]hr[/hr]
Although not required, if you have enjoyed the benefits of this hack, and would like show your appreciation for my efforts, then please feel free to click on the Support Developer link and donate any amount you feel is appropriate.


Donations[hr]hr[/hr]
I would like to thank the following people for their kind donations:

Download Now

File Type: zip ms_banned_member_log.zip (11.6 KB, 526 views)

Screenshots

File Type: png screenshot1.png (57.6 KB, 0 views)
File Type: jpg screenshot2.jpg (57.1 KB, 0 views)
File Type: png screenshot3.png (4.1 KB, 0 views)
File Type: jpg screenshot4.jpg (56.5 KB, 0 views)
File Type: jpg screenshot5.jpg (64.4 KB, 0 views)
File Type: jpg screenshot6.jpg (31.0 KB, 0 views)

Show Your Support

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

Comments
  #42  
Old 02-22-2009, 06:21 PM
HolyKiller HolyKiller is offline
 
Join Date: Dec 2006
Posts: 172
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

2 Mosh: Yes, after disabling Banned Members Log (3) the indexpage loads correctly.

EDIT: I tested something and i am rly confused about this...

1)
- Installed FRESH vBulletin 3.8.0 on my localhost. Don't make any changes, just install. Then used this MOD and it works perfectly. No errors on index page, ban_log.php works OK.
- Saved (exported) vBulletin options


2)
- Backuped whole DB and all files from my "life" forum and copied it on my localhost.
- Installed this MOD
- Disabled AdSense integration
- Disabled and UnInstalled ALL products and ALL plugins
- Reverted ALL template changes and ALL CSS definitions
- UnInstalled ALL nondefault templates. (So only Default skin remained without any customizations)
- Deleted ALL forums and child forums and created only one new category and one new forum
- Deleted ALL nondefault usergroups
- Deleted ALL notifications
- Deleted ALL thread prefixes
- Imported vBulletin options from fresh vB instalation
- In Maintenance used "Repair / Optimize Tables" on all tables
- In Maintenance used all of the "Update Counters"
- Again used "Repair / Optimize Tables"
- So now i should have forum equal to fresh instalation, but the problem still remains
- Unsintalled MOD, again used "Repair / Optimize Tables", browser cache deleted and Apache restarted
- Problem is still here

So now i rly don't know what to do
Reply With Quote
  #43  
Old 02-22-2009, 07:42 PM
Mosh's Avatar
Mosh Mosh is offline
 
Join Date: Aug 2004
Location: Melbourne, Australia
Posts: 1,968
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by HolyKiller View Post
2 Mosh: Yes, after disabling Banned Members Log (3) the indexpage loads correctly.
I suspected that. But there is not actually a parse error, it is something to do with your installation, but I don't know what is causing it.

All that plugin does is to add a link to the navbar or quick links menu on the navbar. So, all you need to do, is leave that plugin disabled and if you want to add the link manually added to the navbar template, paste the following where you want the link to display:

HTML Code:
<!-- $vbphrase[banned_members_log] v3.8.002 ? Mosh Shigdar 2008 - 2009 --><td class="vbmenu_control"><a href="$vbulletin->options[bburl]/ban_log.php?$session[sessionurl]">$vbphrase[banned_members_link]</a></td><!-- end of Banned Members Log -->
Reply With Quote
  #44  
Old 02-22-2009, 08:11 PM
HolyKiller HolyKiller is offline
 
Join Date: Dec 2006
Posts: 172
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

2 Mosh: Ok, thanks, i will try it.

BTW: Edited my previous post


EDIT: ARGHHHHHHH!!!

Now i rlly DON'T KNOW WHY, but if now i'm looking in code of Banned Members Log (3) of my copy of life forum i see uncomplete code!!

PHP Code:
// version information
$bml_version 'v3.8.002'

// set display link flag to false
$show_bml_nav_link false;

// if allow show to all usergroups, then set display link flag to true
if ($vbulletin->options['bml_all_grps'] == 0)
{
    
$show_bml_nav_link true;
}

// if user in allowed usergroup, then set display link flag to true
$banned_allowed_groups explode(',',$vbulletin->options['bml_grps']); 
if (
$vbulletin->options['bml_all_grps'] == && (is_member_of($vbulletin->userinfo,$banned_allowed_groups)))
{
    
$show_bml_nav_link true;
}

// if the display link flag is true, then add the link to the navbar or quicklinks
if ($show_bml_nav_link)
{
    if (
$vbulletin->options['bml_nav_link'] == 1)
    {
        
$template_hook['navbar_buttons_left'] .= '<!-- '.$vbphrase['banned_members_log'].' '.$bml_version.'. 
BTW: The lastest row missing one ' here in PHP tag ... accualy i see this:
$template_hook['navbar_buttons_left'] .= '<!-- '.$vbphrase['banned_members_log'].' '.$bml_version.'.


And if i look into fresh vBull instalation with this MOD i see this (correct code). And ofcourse, after i copy&pasted full code to my forum, problem solved, everything is FINE ... so, there is some &ł@$&!!! mistake in plugin importation.

PHP Code:
Plugin PHP Code
// version information
$bml_version 'v3.8.002'

// set display link flag to false
$show_bml_nav_link false;

// if allow show to all usergroups, then set display link flag to true
if ($vbulletin->options['bml_all_grps'] == 0)
{
    
$show_bml_nav_link true;
}

// if user in allowed usergroup, then set display link flag to true
$banned_allowed_groups explode(',',$vbulletin->options['bml_grps']); 
if (
$vbulletin->options['bml_all_grps'] == && (is_member_of($vbulletin->userinfo,$banned_allowed_groups)))
{
    
$show_bml_nav_link true;
}

// if the display link flag is true, then add the link to the navbar or quicklinks
if ($show_bml_nav_link)
{
    if (
$vbulletin->options['bml_nav_link'] == 1)
    {
        
$template_hook['navbar_buttons_left'] .= '<!-- '.$vbphrase['banned_members_log'].' '.$bml_version.'. ? Mosh Shigdar 2008 - 2009 --><td class="vbmenu_control"><a href="'.$vbulletin->options['bburl'].'/ban_log.php?'.$session['sessionurl'].'">'.$vbphrase['banned_members_link'].'</a></td><!-- end of Banned Members Log -->';
    }
    if (
$vbulletin->options['bml_nav_link'] == 2)
    {
        
$template_hook['navbar_quick_links_menu_pos1'] .= '<!-- '.$vbphrase['banned_members_log'].' '.$bml_version.'. ? Mosh Shigdar 2008 - 2009 --><tr><td class="vbmenu_option"><a href="'.$vbulletin->options['bburl'].'/ban_log.php?'.$session['sessionurl'].'">'.$vbphrase['banned_members_link'].'</a></td></tr><!-- end of Banned Members Log -->';
    }

Reply With Quote
  #45  
Old 02-22-2009, 08:57 PM
HolyKiller HolyKiller is offline
 
Join Date: Dec 2006
Posts: 172
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, i find the problem ... the problem is in the symbol "?" in XML file on line 230 and 234.

Code:
        $template_hook['navbar_quick_links_menu_pos1'] .= '<!-- '.$vbphrase['banned_members_log'].' '.$bml_version.'. ? Mosh Shigdar 2008 - 2009 --><tr><td class="vbmenu_option"><a href="'.$vbulletin->options['bburl'].'/ban_log.php?'.$session['sessionurl'].'">'.$vbphrase['banned_members_link'].'</a></td></tr><!-- end of Banned Members Log -->';
Exactly here:
? Mosh Shigdar 2008 - 2009


The plugin import system just don't go thru this and does NOT import the whole code.

After i deleted the ? symbol 230 and 234 in XML file and imported the plugin again, everything is fine.


Now all works fine and i'm so happy. Thanks again for great hack

Holy
Reply With Quote
  #46  
Old 02-23-2009, 05:09 AM
Mosh's Avatar
Mosh Mosh is offline
 
Join Date: Aug 2004
Location: Melbourne, Australia
Posts: 1,968
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by HolyKiller View Post
Okay, i find the problem ... the problem is in the symbol "?" in XML file on line 230 and 234.

Code:
        $template_hook['navbar_quick_links_menu_pos1'] .= '<!-- '.$vbphrase['banned_members_log'].' '.$bml_version.'. ? Mosh Shigdar 2008 - 2009 --><tr><td class="vbmenu_option"><a href="'.$vbulletin->options['bburl'].'/ban_log.php?'.$session['sessionurl'].'">'.$vbphrase['banned_members_link'].'</a></td></tr><!-- end of Banned Members Log -->';
Exactly here:
? Mosh Shigdar 2008 - 2009


The plugin import system just don't go thru this and does NOT import the whole code.

After i deleted the ? symbol 230 and 234 in XML file and imported the plugin again, everything is fine.


Now all works fine and i'm so happy. Thanks again for great hack

Holy
No wonder I could not replicate it

Oh well, I will just have to change it for the next version, as I am assuming that will only happen in very limited cases, as apart from yours I have not come across a case where it would not parse the copyright symbol (just me trying to be fancy).

Thanks for tracking it down
Reply With Quote
  #47  
Old 02-24-2009, 10:28 PM
Mosh's Avatar
Mosh Mosh is offline
 
Join Date: Aug 2004
Location: Melbourne, Australia
Posts: 1,968
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Update: v3.8.003 - Wednesday 25th February 2009
-- Fixed: Banned Members Log (3) plugin - replaced 2 x © with (c) to prevent parse errors (rare cases)
-- Changed: Files - ban_log.php (streamlined a couple of SQL queries)
-- Changed: banned_log template (column display order)
-- Changed: banned_perm_row template (column display order)
-- Changed: banned_temp_row template (column display order)
-- Updated: Files - ban_log_cron.php, hooks_ban_log.xml
-- Updated: Installation Instructions
-- Updated: Screenshots
Reply With Quote
  #48  
Old 03-01-2009, 10:11 PM
Sunka Sunka is offline
 
Join Date: Mar 2008
Location: Croatia
Posts: 400
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sunka View Post
Installed, but disabled untill this errors gone

When this MOD is enable this errors shows on top of the page:

On portal page:

Code:
Parse error: syntax error, unexpected T_STRING in /home/pijanitv/public_html/forum/global.php(614) : eval()'d code on line 1445

Warning: array_diff() [function.array-diff]: Argument #2 is not an array in [path]/modules/currentpoll.php on line 39

Warning: array_diff() [function.array-diff]: Argument #2 is not an array in [path]/modules/news.php on line 127
On forum index page:

Code:
Parse error: syntax error, unexpected T_STRING in /home/pijanitv/public_html/forum/global.php(614) : eval()'d code on line 1445
What to do?
Quote:
Originally Posted by Mosh View Post
One of your other hacks seems to be conflicting with the Banned Members Log (3) plugin which displays the banned members on the forumhome page.

You need to check any other hacks that are using the parse_templates hook to see if they are the cause of the issue. If you can not track it down, you can always disable the Banned Members Log (3) plugin and live without the banned member count on the forumhome page.
Quote:
Originally Posted by Mosh View Post
Update: v3.8.003 - Wednesday 25th February 2009
-- Fixed: Banned Members Log (3) plugin - replaced 2 x ? with (c) to prevent parse errors (rare cases)
-- Changed: Files - ban_log.php (streamlined a couple of SQL queries)
-- Changed: banned_log template (column display order)
-- Changed: banned_perm_row template (column display order)
-- Changed: banned_temp_row template (column display order)
-- Updated: Files - ban_log_cron.php, hooks_ban_log.xml
-- Updated: Installation Instructions
-- Updated: Screenshots
Quote:
Originally Posted by HolyKiller View Post
Okay, i find the problem ... the problem is in the symbol "?" in XML file on line 230 and 234.

Code:
        $template_hook['navbar_quick_links_menu_pos1'] .= '<!-- '.$vbphrase['banned_members_log'].' '.$bml_version.'. ? Mosh Shigdar 2008 - 2009 --><tr><td class="vbmenu_option"><a href="'.$vbulletin->options['bburl'].'/ban_log.php?'.$session['sessionurl'].'">'.$vbphrase['banned_members_link'].'</a></td></tr><!-- end of Banned Members Log -->';
Exactly here:
? Mosh Shigdar 2008 - 2009


The plugin import system just don't go thru this and does NOT import the whole code.

After i deleted the ? symbol 230 and 234 in XML file and imported the plugin again, everything is fine.


Now all works fine and i'm so happy. Thanks again for great hack

Holy
Quote:
Originally Posted by Mosh View Post
No wonder I could not replicate it

Oh well, I will just have to change it for the next version, as I am assuming that will only happen in very limited cases, as apart from yours I have not come across a case where it would not parse the copyright symbol (just me trying to be fancy).

Thanks for tracking it down

Now is working OK Mosh...
Reply With Quote
  #49  
Old 06-11-2009, 04:34 PM
Jon1422's Avatar
Jon1422 Jon1422 is offline
 
Join Date: Jun 2009
Location: Hampshire, UK
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent Hack - thank you Mosh ...and good luck with the exams

One thing I would like to change is to remove the 'banned by' column - it doesn't really fit in on our forum. If anyone could advise how to go about that I'd appreciate it
Reply With Quote
  #50  
Old 06-15-2009, 07:04 AM
Jon1422's Avatar
Jon1422 Jon1422 is offline
 
Join Date: Jun 2009
Location: Hampshire, UK
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #51  
Old 06-23-2009, 12:53 AM
Mosh's Avatar
Mosh Mosh is offline
 
Join Date: Aug 2004
Location: Melbourne, Australia
Posts: 1,968
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Jon1422 View Post
Excellent Hack - thank you Mosh ...and good luck with the exams

One thing I would like to change is to remove the 'banned by' column - it doesn't really fit in on our forum. If anyone could advise how to go about that I'd appreciate it
In the banned_log template, find and delete the two instances of:
HTML Code:
<td class='thead' align='center'>$vbphrase[banned_by]</td>
In the banned_perm_row and banned_temp_row templates, find and delete:
HTML Code:
<td><div class='smallfont'><a href="member.php?$session[sessionurl]u=$user[adminid]">$user[adminname]</a></div></td>
That is all that is needed
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 11:24 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.09390 seconds
  • Memory Usage 2,406KB
  • 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
  • (5)bbcode_code
  • (3)bbcode_html
  • (2)bbcode_php
  • (8)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (7)postbit_attachment
  • (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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete