vb.org Archive

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

Mosh 08-17-2008 10:00 PM

Banned Members Log
 
Hack Support

This hack is now discontinued - this means that while it will remain available for download and use, there will be no further updates, nor will support be provided as the thread is no longer monitored. You can now check out the 3.8.x version of this hack, as it also works with v3.7.3 PL1, v3.6.11 PL1 (and maybe even earlier versions).

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


Branding

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.


vBulletin Version Compatibility

This hack can be used with v3.6.10 and v3.7.x. This has not been tested with earlier versions of v3.6.x, but should work.


What Does This Hack Do?

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 7-9 queries (depending on options selected and if logged out/logged in) on the ban_log.php page.


Installation Instructions

The InstallInstructions.txt instructions file is included in attached .zip file.

Uninstall Instructions
  1. Delete ban_log.php from your forum's root directory.
  2. Delete ban_log_cron.php from your forum's /includes/cron directory.
  3. Delete hooks_ban_log.xml from your forum's /includes/xml directory.
  4. Edit config.php in your forum's /includes directory.
    Find and delete:
    PHP Code:

        // add Mosh's datastore to specialtemplates, so it is loaded on with the main datastore
        
    $GLOBALS['specialtemplates'][] = 'ms_datastore'

  5. Uninstall the product in vB using the AdminCP Product Manager.


Translations

I would like to thank the following people for their translations:NOTE: If you would like to make a translation into your language and have it posted here, then send me a PM for a list of phrases that you will need to translate.


Version History

v3.7.007 - Friday 29th August 2008
-- Final Release
-- Fixed: Usergroup permission checkboxes not working with vBulletin v 3.6.x

v3.7.006 - Wednesday 27th August 2008
-- Changed: Banned Members Log (2) plugin, to get banned members count from the new datastore instead
-- Changed: ban_log.php
-- Changed: ban_log_cron.php, added new query to cron job
-- Changed: Usergroup permissions, now checkboxes instead of comma seperated numbers
-- Added: Extra phrase
-- Added: File edit in config.php, to allow new datastore to be loaded with the main datastore
-- Added: Banned Members Log (6) plugin, for processing usergroup permissions
-- Added: Users Awaiting Email Confirmation member count

v3.7.005 - Sunday 24th August 2008
-- Changed: Banned Member Count on forumhome page, now a datastore item
-- Changed: variable name changed in Banned Members Log (3) plugin, in case of naming conflict
-- Changed:ban_log.php
-- Added: ban_log_cron.php
-- Added: Scheduled cron job

v3.7.004 - Thursday 21st August 2008
-- Changed: banned_count template
-- Changed: banned_log template
-- Changed: Banned Members Log (2) plugin
-- Changed: ban_log.php
-- Changed: AdminCP Options that displays banned members count on forumhome page
-- Updated: Screenshots
-- Added: Pagination
-- Added: Page count on banned members section (if more than 1 page of results)
-- Added: AdminCP Option for amount of results per page

v3.7.003 - Wednesday 20th August 2008
-- Changed: banned_none template again
-- Changed: banned_log template
-- Changed: ban_log.php
-- Changed: Query that calculates members and banned members on forumhome page
-- Changed: Different messages now, when there are no temporary and/or banned members
-- Updated: Screenshots
-- Added: Counts for temporary and permanent banned members on the Banned Members Log page
-- Added: Extra AdminCP Options on display order of permanent banned members on Banned Member Log page
-- Added: Couple of extra phrases

v3.7.002 - Tuesday 19th August 2008
-- Changed: banned_none template
-- Changed: SQL queries in ban_log.php
-- Updated: Screenshots
-- Added: Message if no banned usergroups have been defined
-- Added: AdminCP Option to display or not display the split member count on forum home page
-- Added: AdminCP Options on display order of banned members on Banned Member Log page

v3.7.001 - Monday 18th August 2008
-- Initial Release


Show Your Appreciation

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.

macc 08-18-2008 12:03 PM

Thanks !

How to manually add links in navybar and stats?

reg

macc

KURTZ 08-18-2008 02:01 PM

thx Mosh .... just installed ;)

macc 08-18-2008 04:53 PM

that destroys my forum statistics...


reg

macc

suvari1794 08-18-2008 06:14 PM

thanks but i have suggestions.

if there is no temporary banned member, not seems this part.

can be page navigation. for example; 20 banned members in 1 page.

the last one and the important one; the list order must be banned time. the latest banned member on the top.

sorry for my english :)

Mosh 08-18-2008 08:54 PM

Quote:

Originally Posted by macc (Post 1601386)
Thanks !

How to manually add links in navybar and stats?

reg

macc

Look at the Banned Members Log (3) for the code for the navbar.
There is manual process for the stats at the moment. It is automatically added.

Mosh 08-18-2008 08:54 PM

Quote:

Originally Posted by macc (Post 1601596)
that destroys my forum statistics...


reg

macc

Please elaborate.

Mosh 08-18-2008 08:58 PM

Quote:

Originally Posted by suvari1794 (Post 1601641)
thanks but i have suggestions.

if there is no temporary banned member, not seems this part.

can be page navigation. for example; 20 banned members in 1 page.

the last one and the important one; the list order must be banned time. the latest banned member on the top.

sorry for my english :)

If there are no banned members temporary or permanent, then the following message is displayed "There are no banned members to view"

There is no pagination at the moment, and I may add that in to a later version.

The list is ordered as it would be in the AdminCP or ModCP [s]so I will not be changing that[/s], should not be too difficuit, had a rethink, and I will add it to the next version of the hack :)

macc 08-18-2008 09:16 PM

before this mod i had in my forum statistics

Threads: xxxx, Posts: xxxx, Members: xxxx

after your mod i get this

Threads: xxxxx, Posts: xxxx, Banned: xxxx Members: x


reg


macc

KURTZ 08-18-2008 09:43 PM

italian translation ;)

Mosh 08-18-2008 10:02 PM

Quote:

Originally Posted by macc (Post 1601777)
before this mod i had in my forum statistics

Threads: xxxx, Posts: xxxx, Members: xxxx

after your mod i get this

Threads: xxxxx, Posts: xxxx, Banned: xxxx Members: x


reg


macc

I am not quite sure why that happen, it looks as if you manually added stats to your homepage, as Banned should appear after Members, and not before it.

Is that the case?

Mosh 08-18-2008 10:03 PM

Quote:

Originally Posted by KURTZ (Post 1601812)
italian translation ;)

Thanks KURTZ :) Am adding a link to your post in the main hack.

macc 08-18-2008 10:23 PM

Quote:

Originally Posted by Mosh (Post 1601835)
I am not quite sure why that happen, it looks as if you manually added stats to your homepage, as Banned should appear after Members, and not before it.

Is that the case?


no ...i do not add manually nothing ...that come up after i installed mod ... unistalled and come back normal ...

reg

macc

Mosh 08-18-2008 10:29 PM

Quote:

Originally Posted by macc (Post 1601861)
no ...i do not add manually nothing ...that come up after i installed mod ... unistalled and come back normal ...

reg

macc

I can not recreate this problem, [s]so I am going to have to look at your installation.

If you want me to take a look then feel free to PM me your site address, a temp admin user (with admin permissions - Can Administer Settings for editing options, Can Administer Styles for editing templates, Can Administer Language Settings for editing phrases and finally Can Administer Plugins for editing products and plugins), and ftp access details, without these I can not help you. I will look when I have time, and even if I have a look, I can not guarantee that I will be able to fix it, if your site is not in English (I only read/write in English), so it is up to you what you want to do. You can revoke these after I have helped you out.[/s]

Mosh 08-19-2008 02:59 AM

Update: v3.7.002
-- Changed: banned_none template
-- Changed: SQL queries in ban_log.php
-- Updated: Screenshots
-- Added: Message if no banned usergroups have been defined
-- Added: AdminCP Option to display or not display the split member count on forum home page
-- Added: AdminCP Options on display order of banned members on Banned Member Log page

NeitherSparky 08-19-2008 06:01 AM

Thanks, looks good...it's very late now but I'll install this tomorrow. :)

macc 08-19-2008 06:44 AM

hello!

now is like this: Forum Statistics: 267, Banned: 8 Members, 166 Threads, 1,742 Posts

Here is phrase
PHP Code:

Forum Statistics: <b>{1}</bMembers, <b>{2}</bThreads, <b>{3}</bPosts<br /> 

in $vbphrase[wp_forum_stats]
in my " welcome templete rewrite " mod


reg

macc

Mosh 08-19-2008 10:08 AM

Quote:

Originally Posted by macc (Post 1602109)
hello!

now is like this: Forum Statistics: 267, Banned: 8 Members, 166 Threads, 1,742 Posts

Here is phrase
PHP Code:

Forum Statistics: <b>{1}</bMembers, <b>{2}</bThreads, <b>{3}</bPosts<br /> 

in $vbphrase[wp_forum_stats]
in my " welcome templete rewrite " mod


reg

macc

This works with an un-altered forumhome template, you have altered yours, so may have to fiddle with it to get it working. If you can not, you can always disable the banned member count from your AdminCP options, and the rest will still work fine.

KURTZ 08-19-2008 10:10 AM

thx for the update Mosh :)

ps. the 'show banned members in forumhome' needs 1 query ...

Mosh 08-19-2008 10:14 AM

Quote:

Originally Posted by KURTZ (Post 1602201)
thx for the update Mosh :)

ps. the 'show banned members in forumhome' needs 1 query ...

I know, I had noted that in the original thread since I released it yesterday :)

lostguy 08-19-2008 11:06 AM

This is one good Script ! Thankyou for create this addon easy for us compare another scripter .

Good job !

lg

Mosh 08-19-2008 09:15 PM

Quote:

Originally Posted by lostguy (Post 1602222)
This is one good Script ! Thankyou for create this addon easy for us compare another scripter .

Good job !

lg

If you are using this, then please click Mark as Installed.

Mosh 08-19-2008 11:16 PM

Updated: v3.7.003
-- Changed: banned_none template again
-- Changed: banned_log template
-- Changed: ban_log.php
-- Changed: Query that calculates members and banned members on forumhome page
-- Changed: Different messages now, when there are no temporary and/or banned members
-- Updated: Screenshots
-- Added: Counts for temporary and permanent banned members on the Banned Members Log page
-- Added: Extra AdminCP Options on display order of permanent banned members on Banned Member Log page
-- Added: Couple of extra phrases

NeitherSparky 08-20-2008 04:43 AM

I installed this, but I wound up putting the other mod back (the Total Member Count Excluding Banned Members) - I don't want the number of banned members to show on the front page, but I do want the number of members MINUS the banned members to show. I just think it looks tacky to tell the world we've had to ban 85 people. :P Am I doing something wrong, is it possible to not show this Banned Log thing, but just show the number of members MINUS the banned members? Basically what I want is what the other mod does, but you said that one wouldn't be supported so I'd rather use one you do support. Thanks. :)

Mosh 08-20-2008 04:54 AM

Quote:

Originally Posted by NeitherSparky (Post 1602831)
I installed this, but I wound up putting the other mod back (the Total Member Count Excluding Banned Members) - I don't want the number of banned members to show on the front page, but I do want the number of members MINUS the banned members to show. I just think it looks tacky to tell the world we've had to ban 85 people. :P Am I doing something wrong, is it possible to not show this Banned Log thing, but just show the number of members MINUS the banned members? Basically what I want is what the other mod does, but you said that one wouldn't be supported so I'd rather use one you do support. Thanks. :)

You can probably do it with just deleting the contents of the banned_count template. It should then just display the adjusted member count :)

KURTZ 08-20-2008 05:51 AM

Quote:

Originally Posted by Mosh (Post 1602677)
Updated: v3.7.003
-- Changed: banned_none template again
-- Changed: banned_log template
-- Changed: ban_log.php
-- Changed: Query that calculates members and banned members on forumhome page
-- Changed: Different messages now, when there are no temporary and/or banned members
-- Updated: Screenshots
-- Added: Counts for temporary and permanent banned members on the Banned Members Log page
-- Added: Extra AdminCP Options on display order of permanent banned members on Banned Member Log page
-- Added: Couple of extra phrases

thx ;)

KURTZ 08-20-2008 07:17 PM

italian translation ... :) (with ACP)

Hornstar 08-20-2008 08:44 PM

I thought there was one just like this only the other day. But if not, thanks for sharing :)

NeitherSparky 08-20-2008 09:56 PM

Quote:

Originally Posted by Mosh (Post 1602836)
You can probably do it with just deleting the contents of the banned_count template. It should then just display the adjusted member count :)

You were right, that worked fine. :) Thanks a lot. And the banned members log still exists, so I can just post the link to it on my staff board.

Mosh 08-20-2008 11:38 PM

Updated: v3.7.004 - Thursday 21st August 2008
-- Changed: banned_count template
-- Changed: banned_log template
-- Changed: Banned Members Log (2) plugin
-- Changed: ban_log.php
-- Changed: AdminCP Options that displays banned members count on forumhome page
-- Updated: Screenshots
-- Added: Pagination
-- Added: Page count on banned members section (if more than 1 page of results)
-- Added: AdminCP Option for amount of results per page

This should be the last release (as it is now feature complete) unless a bug is discovered or a feature request is made that I like and want to add :)

Mosh 08-20-2008 11:40 PM

Quote:

Originally Posted by NeitherSparky (Post 1603327)
You were right, that worked fine. :) Thanks a lot. And the banned members log still exists, so I can just post the link to it on my staff board.

Install the latest version, and it is now selectable in the AdminCP :)

Mosh 08-20-2008 11:41 PM

Quote:

Originally Posted by hornstar1337 (Post 1603274)
I thought there was one just like this only the other day. But if not, thanks for sharing :)

Yes there was, read the first post for more details as to why my take on things is better.

Mosh 08-20-2008 11:57 PM

Quote:

Originally Posted by suvari1794 (Post 1601641)
thanks but i have suggestions.

if there is no temporary banned member, not seems this part.

can be page navigation. for example; 20 banned members in 1 page.

the last one and the important one; the list order must be banned time. the latest banned member on the top.

sorry for my english :)

Now has pagination :)

NeitherSparky 08-21-2008 12:48 AM

Okay, works good. I tried installing a new skin and I see that the banned_count template changed, so I copied that back over to my empty banned_count templates on all my skins, and everything is fine. :)

NeitherSparky 08-21-2008 02:16 AM

Mosh. :( This mod did something to my board...It disabled posting visitor messages on people's profiles, and it made it so that when you try to send someone a PM, even if you had clicked on "Send so-and-so a PM" you would have to manually enter the person's username. I disabled the mod and the issues went away. What do you think?

suvari1794 08-21-2008 07:37 AM

woow. this is very good now. thanks much for updates :) installed.

Mosh 08-21-2008 09:55 AM

Quote:

Originally Posted by NeitherSparky (Post 1603457)
Mosh. :( This mod did something to my board...It disabled posting visitor messages on people's profiles, and it made it so that when you try to send someone a PM, even if you had clicked on "Send so-and-so a PM" you would have to manually enter the person's username. I disabled the mod and the issues went away. What do you think?

We need to find out if it is this hack conflicting with another hack or a style or if it is actually a bug.

So, with that in mind we need to do a bit of isolation testing, and what I need you to do is:
  1. Disable all hacks apart from this one, and change to the default style (as long as it is unaltered, if not then create a new style with no parent style). If there is still a problem, then something is wrong with the hack.
  2. If it works fine, then it is not a bug with this hack and we need to find out if it is a style or hack it is conflicting. So, then test all other styles, again with all the hacks disabled apart from this one, if it still works, then it is a conflict with another hack.
  3. If we get this far, then enable hacks one at a time until there is a problem, and we will have narrowed down where the problem lays.
  4. At this stage, if we get this far, then disable Banned Members Log (3) plugin (as it is the only plugin that affects every page forum wide), and if then works, we have narrowed down to the plugin in this hack and the hack it is conflicting with.
The reason I did not say to disable the other plugins, and between them, they affect only two pages only:
  • Banned Members Log (1) and Banned Members Log (2) only affects the forum home page.
  • Banned Members Log (4) and Banned Members Log (5) only affects the WOL page.
Let me know what step you get to when the problem occurs and then we can hopefully get it fixed.

NeitherSparky 08-21-2008 07:58 PM

Quote:

Originally Posted by Mosh (Post 1603683)
Disable all hacks apart from this one, and change to the default style (as long as it is unaltered, if not then create a new style with no parent style). If there is still a problem, then something is wrong with the hack.

Thanks for your instructions, I appreciate you taking the time. So I did the step above, creating a new style with no parent style, and yes both issues I described before happen. ALL plugins disabled except this one.

If anyone else sees this, can you try it on your forum? Again, the 2 issues (that I know of) are: 1) when you try to post a visitor message on someone's profile you get the message "No User specified. If you followed a valid link, please notify the administrator" and 2) when you click on "send this user a PM" the recipient box is blank and you have to type in the person's username. Thanks.

Mosh 08-21-2008 10:22 PM

Quote:

Originally Posted by NeitherSparky (Post 1603988)
Thanks for your instructions, I appreciate you taking the time. So I did the step above, creating a new style with no parent style, and yes both issues I described before happen. ALL plugins disabled except this one.

If anyone else sees this, can you try it on your forum? Again, the 2 issues (that I know of) are: 1) when you try to post a visitor message on someone's profile you get the message "No User specified. If you followed a valid link, please notify the administrator" and 2) when you click on "send this user a PM" the recipient box is blank and you have to type in the person's username. Thanks.

Disable Banned Members Log (3) plugin, again with all other hacks disabled and on the default style, is it still happening?

[s]If it is still a problem, I can not duplicate this problem (on a board full of active hacks), so I am going to have to look at your installation.

If you want me to take a look then feel free to PM me your site address, a temp admin user (with admin permissions - Can Administer Settings for editing options, Can Administer Styles for editing templates, Can Administer Language Settings for editing phrases and finally Can Administer Plugins for editing products and plugins), and ftp access details, without these I can not help you. I will look when I have time, and even if I have a look, I can not guarantee that I will be able to fix it, if your site is not in English (I only read/write in English), so it is up to you what you want to do. You can revoke these after I have helped you out.[/s]

NeitherSparky 08-22-2008 12:41 AM

Quote:

Originally Posted by Mosh (Post 1604069)
Disable Banned Members Log (3) plugin, again with all other hacks disabled and on the default style, is it still happening?

No, when this hack is disabled, those problems do not occur.

I guess I'll just use your old hack, that works fine. Thanks though. :)


All times are GMT. The time now is 05:03 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.01711 seconds
  • Memory Usage 1,889KB
  • 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
  • (3)bbcode_php_printable
  • (20)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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