Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Lt - Ban Info Details »»
Lt - Ban Info
Version: 1.1.3, by Leftenant Leftenant is offline
Developer Last Online: Dec 2022 Show Printable Version Email this Page

Category: Profile Enhancements - Version: 4.2.x Rating:
Released: 11-10-2012 Last Update: 11-15-2012 Installs: 19
Uses Plugins Auto-Templates
Additional Files Translations  
No support by the author.

Desc:
Show ban info on user profile..
Installation:
  1. Download Lt_Ban_Info_113.zip.
  2. Copy 'Leftenant' folder to Forum root directory
  3. Import product-lacyc_ban_bilgileri_english.xml file on Product Manamegent.
  4. Go to vBulletin Options/Lt - Ban Info and change variables.

Note:if you upgrade for Lt - Ban Info 1.1.1, go to forum root directory and rename Lt folder to Leftenant or copy Leftenant folder to Forum root...
This product id is changed. Please don't forget to delete the others version before your install version 1.1.3

Change Log:
Version 1.0:
  • First release.
Version 1.1:
  • Added vBulletin 4 compatible.
  • Added Lift ban and edit reason options.

Version 1.1.1:
  • Unnecessary query's removed.
  • Some bugs fixed.
  • Lt folder renamed to Leftenant.

Version 1.1.2:
  • Query problems fixed.

Version 1.1.3:
  • Added Appearance At Permanent Ban User Option.

For vBulletin 3.8: https://vborg.vbsupport.ru/showthread.php?t=235675

Download Now

File Type: zip Lt_Ban_Info_113.zip (23.7 KB, 139 views)

Screenshots

File Type: jpg lt_ban_info_acp.jpg (154.1 KB, 0 views)
File Type: jpg lt_ban_info_mem.jpg (89.1 KB, 0 views)
File Type: jpg lt_ban_info_msc.jpg (32.2 KB, 0 views)
File Type: jpg lt_ban_info_pbt.jpg (16.3 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
3 благодарности(ей) от:
Alan_SP, CELIX, megabink

Comments
  #12  
Old 11-13-2012, 07:01 PM
Alan_SP's Avatar
Alan_SP Alan_SP is offline
 
Join Date: Nov 2009
Posts: 1,122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Leftenant View Post
Take care of the problems. Thank you for attention.
Just tested it for queries. Problem isn't solved.

My index page (forum.php) now has 149-150 queries, but without your mod I have 21-24 queries (it depends). It also rises a bit (about 5-10%) page generation time, but it is maybe because all this queries.

On showthread pages, each post has two queries, so, as I have 25 post per page, I have additional 50 queries if that thread page has all posts.

This is too much queries. Please, try to solve it. If not, however I like your mod and it's usefulness, it's a too big impact on server for my liking.

Didn't tested other things (queries are too serious problem for me). And, if you be able to sort this queries out, please add check if user is permanently banned and option that such user's don't show banning info.

I really hope you'll be able to solve this problem with queries, like your mod very much.
Reply With Quote
  #13  
Old 11-13-2012, 07:12 PM
Leftenant Leftenant is offline
 
Join Date: Jul 2009
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Alan_SP View Post
Just tested it for queries. Problem isn't solved.

My index page (forum.php) now has 149-150 queries, but without your mod I have 21-24 queries (it depends). It also rises a bit (about 5-10%) page generation time, but it is maybe because all this queries.

On showthread pages, each post has two queries, so, as I have 25 post per page, I have additional 50 queries if that thread page has all posts.

This is too much queries. Please, try to solve it. If not, however I like your mod and it's usefulness, it's a too big impact on server for my liking.

Didn't tested other things (queries are too serious problem for me). And, if you be able to sort this queries out, please add check if user is permanently banned and option that such user's don't show banning info.

I really hope you'll be able to solve this problem with queries, like your mod very much.
Event is now realized. Just interested...
Reply With Quote
  #14  
Old 11-13-2012, 10:23 PM
Leftenant Leftenant is offline
 
Join Date: Jul 2009
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Alan_SP View Post
Just tested it for queries. Problem isn't solved.

My index page (forum.php) now has 149-150 queries, but without your mod I have 21-24 queries (it depends). It also rises a bit (about 5-10%) page generation time, but it is maybe because all this queries.

On showthread pages, each post has two queries, so, as I have 25 post per page, I have additional 50 queries if that thread page has all posts.

This is too much queries. Please, try to solve it. If not, however I like your mod and it's usefulness, it's a too big impact on server for my liking.

Didn't tested other things (queries are too serious problem for me). And, if you be able to sort this queries out, please add check if user is permanently banned and option that such user's don't show banning info.

I really hope you'll be able to solve this problem with queries, like your mod very much.
Ok. Problem is fixed. Thank you for attention.
Reply With Quote
  #15  
Old 11-14-2012, 11:01 AM
Skyrider Skyrider is offline
 
Join Date: Feb 2006
Location: Netherlands
Posts: 1,392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed, though currently disabled.

By Visiting a "&mode=threaded" URL, this pops up:

Quote:

Database error in vBulletin 4.2.0:

Invalid SQL:

SELECT
post.*, post.username AS postusername, post.ipaddress AS ip, IF(post.visible = 2, 1, 0) AS isdeleted,
user.*, userfield.*, usertextfield.*,
icon.title as icontitle, icon.iconpath,
avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustomavatar, customavatar.dateline AS avatardateline,


editlog.userid AS edit_userid, editlog.username AS edit_username, editlog.dateline AS edit_dateline,
editlog.reason AS edit_reason, editlog.hashistory,
postparsed.pagetext_html, postparsed.hasimages,
sigparsed.signatureparsed, sigparsed.hasimages AS sighasimages,
sigpic.userid AS sigpic, sigpic.dateline AS sigpicdateline, sigpic.width AS sigpicwidth, sigpic.height AS sigpicheight,

IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid, infractiongroupid

, lt_userban.userid AS lt_ban_id
FROM post AS post
LEFT JOIN user AS user ON(user.userid = post.userid)
LEFT JOIN userfield AS userfield ON(userfield.userid = user.userid)
LEFT JOIN usertextfield AS usertextfield ON(usertextfield.userid = user.userid)
LEFT JOIN icon AS icon ON(icon.iconid = post.iconid)
LEFT JOIN avatar AS avatar ON(avatar.avatarid = user.avatarid) LEFT JOIN customavatar AS customavatar ON(customavatar.userid = user.userid)


LEFT JOIN editlog AS editlog ON(editlog.postid = post.postid)
LEFT JOIN postparsed AS postparsed ON(postparsed.postid = post.postid AND postparsed.styleid = 3 AND postparsed.languageid = 1)
LEFT JOIN sigparsed AS sigparsed ON(sigparsed.userid = user.userid AND sigparsed.styleid = 3 AND sigparsed.languageid = 1)
LEFT JOIN sigpic AS sigpic ON(sigpic.userid = post.userid)

LEFT JOIN userban AS lt_userban ON ( lt_userban.userid = post.userid )
WHERE post.postid IN (1312708,1315013,1316647,1317613,1317778,1319370,1 320438,1320483,1323953,1325486,1326748,1326766,132 7288,1330991,1335287,1335964,1336122,1336131,13361 45,1336482,1336526,1336957,1337061,1337303,1337893 ,1339027,1339483,1340754,1340832,1341819,1342339,1 356457,1356473,1356505,1356621,1358098,1358567,135 8909,1359817,1360056);

MySQL Error : Column 'displaygroupid' in field list is ambiguous
Error Number : 1052
Request Date : Wednesday, November 14th 2012 @ 03:55:22 AM
Error Date : Wednesday, November 14th 2012 @ 03:55:23 AM
Script : http://xxx.xxx.com/threads/109622-Lo...&mode=threaded
Referrer :
Username : Unregistered
Classname : vB_Database
MySQL Version :
Reply With Quote
  #16  
Old 11-14-2012, 01:52 PM
Leftenant Leftenant is offline
 
Join Date: Jul 2009
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FF|Skyrider View Post
Installed, though currently disabled.

By Visiting a "&mode=threaded" URL, this pops up:
Temporary Workaround:
Goto AdminCp->plugin management->Lt - Ban Info - SQ
Replace All to:
PHP Code:
$cid htmlspecialchars($_GET["mode"]); 
if(
$cid != 'threaded' AND $cid != 'hybrid')
{
$hook_query_fields .= ", lt_userban.userid AS lt_ban_id";
$hook_query_joins .= " LEFT JOIN " TABLE_PREFIX "userban AS lt_userban ON ( lt_userban.userid = post.userid ) ";

Note: Hack only work on normal mode.
Reply With Quote
  #17  
Old 11-15-2012, 12:36 AM
Alan_SP's Avatar
Alan_SP Alan_SP is offline
 
Join Date: Nov 2009
Posts: 1,122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent, problem with queries is fixed, so I started using your mod.

But, there's still bug with postbit.

Just tested it, showing info in pop-up is "stuck", no matter what option I choose, I see information about banning there, even if I choose that there's no info in postbit.

And, to repeat my feature request, could you disable showing info for permanently banned users? As an option, of course, not for all, some of us would like to show that information.

Excellent mod and quick and good support. :up: Giving 5 stars and nominating it for mod of the month.
Reply With Quote
  #18  
Old 11-16-2012, 10:24 AM
Leftenant Leftenant is offline
 
Join Date: Jul 2009
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Alan_Sp.
This product upgrdaded to 1.1.3 version.
Reply With Quote
  #19  
Old 11-16-2012, 04:30 PM
megabink's Avatar
megabink megabink is offline
 
Join Date: Oct 2011
Location: Norway
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed and working on my 4.2.0 pl2.
Thanks buddy.
Reply With Quote
  #20  
Old 11-17-2012, 01:22 AM
Alan_SP's Avatar
Alan_SP Alan_SP is offline
 
Join Date: Nov 2009
Posts: 1,122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Leftenant View Post
This product upgrdaded to 1.1.3 version.
Just to report.

Not showing information for permanently banned users works as it should. :up:

Information in postbit pop-up is still stuck, no matter what I select, there it is (I consider it small bug, but want to inform you about it).

Also, you changed product id (from Turkish to English), which resulted in having older version and newer after I tried to upgrade. When I found this out, I uninstalled both versions and installed only new one. Everything works, phrases wasn't lost (if anyone needs translation to Croatian of front end, ask).

Small suggestion, for next version, you have at settings for permanently banned users text:
Only Show As Profile (and Postbit)
As should be in.

Also phrase: Appearance At Permanent Ban User would better sound as Appearance for Permanently Banned Users.

These are just minor corrections, but just to mention them.

Excellent mod. :up:
Reply With Quote
  #21  
Old 11-17-2012, 01:20 PM
Jigglez Jigglez is offline
 
Join Date: Jul 2010
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The mod seems great! I think I'm going to try it on my website. I'll let you know how it pans out on 4.2.0 pl3.
Reply With Quote
Reply


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:30 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.04982 seconds
  • Memory Usage 2,361KB
  • 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
  • (1)bbcode_php
  • (6)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
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (3)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (5)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • 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