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
  #22  
Old 12-23-2012, 09:30 PM
acast acast is offline
 
Join Date: Aug 2008
Posts: 179
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Leftenant View Post
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.
It doesn't work. Still the same error:

I disable the plugin, too.
Reply With Quote
  #23  
Old 07-03-2016, 08:58 AM
Rhodium Rhodium is offline
 
Join Date: Apr 2016
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The plugin works fine but i get db errors

Quote:
Database error in vBulletin 4.2.3:

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, IF(lt_userban.liftdate > 0, lt_userban.userid, NULL) as lt_ban_lift
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 = 10 AND postparsed.languageid = 3)
LEFT JOIN sigparsed AS sigparsed ON(sigparsed.userid = user.userid AND sigparsed.styleid = 10 AND sigparsed.languageid = 3)
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 (4498063,4498064,4498068,4498088,4498288,4498324,4 498107,4499481,4499804,4499819,4499830,4500038,450 0045,4500050,4500056,4500227,4500243,4500500,45011 70,4500971,4500084);

MySQL Error : Column 'displaygroupid' in field list is ambiguous
Error Number : 1052
Request Date : Sunday, July 3rd 2016 @ 02:01:18 AM
Error Date : Sunday, July 3rd 2016 @ 02:01:18 AM
Script : http://xxx.xxx.com/forums/forums/thr...-de-fotografia
Referrer : http://xxx.xxx.com/forums/forums/200-Menorca
IP Address : xxxxxxxxxxxxxxxxxxxxxxxxxxx
Username : No registrado
Classname : vB_Database_MySQLi
MySQL Version :
Any one knows how to fix?
Reply With Quote
  #24  
Old 11-13-2016, 01:53 AM
Elixar's Avatar
Elixar Elixar is offline
 
Join Date: Jan 2014
Posts: 579
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I had DB errors but it now works. The following changes were made to the plugin called Lt - Ban Bilgileri - GS:

PHP Code:
$lt_ban_gruplar explode(',',$vbulletin->options['lt_ban_gorebilecek_gruplar']);
if ((
$vbulletin->options['lt_ban_etkin']) AND (is_member_of($vbulletin->userinfo,$lt_ban_gruplar)))
    {                
                    
$lt_sql_sorgu $vbulletin->db->query_first("
                    SELECT usergrp.usergroupid, usergrp.adminpermissions AS adminperforgroup, admins.adminpermissions
                    FROM " 
TABLE_PREFIX "user AS user
                    LEFT JOIN " 
TABLE_PREFIX "usergroup usergrp ON(user.usergroupid = usergrp.usergroupid)
                    LEFT JOIN " 
TABLE_PREFIX "administrator admins ON (user.userid = admins.userid)
                    WHERE user.userid = '"
.$vbulletin->userinfo['userid']."'
                    "
);
                    if((
$lt_sql_sorgu['adminperforgroup'] & 1) == 1)
                    {
                        
$lt_allow_per 1;
                    }
            
                    if(
$lt_allow_per != 1)
                    {
                        if((
$lt_sql_sorgu['adminpermissions'] & 256) == 256)
                        {
                            
$lt_allow_per 1;
                            
                        }
                        if(
$lt_allow_per != 1)
                        {
                                if (
in_array($vbulletin->userinfo['userid'], preg_split('#\s*,\s*#s'$vbulletin->
                                
config['SpecialUsers']['superadministrators'], -1PREG_SPLIT_NO_EMPTY)) ) 
                                {    
                                    
$lt_allow_per 1;
                                }
                        }
                    }

        
        
        if ((
THIS_SCRIPT == 'misc') && ($_REQUEST['do'] == 'lt_ban_bilgileri' || $_REQUEST['do'] == 'lt_lift_ban'))
            {
                
$vbulletin->input->clean_gpc('r''userid'TYPE_UINT);

                if (
$vbulletin->GPC['userid'] AND $post verify_id('user'$vbulletin->GPC['userid'], 01))
                {

                }
            }


    } 
Thanks to MarkFL for his help on this.
Reply With Quote
2 благодарности(ей) от:
MarkFL, Rhodium
  #25  
Old 11-22-2016, 11:37 AM
Alan_SP's Avatar
Alan_SP Alan_SP is offline
 
Join Date: Nov 2009
Posts: 1,122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you post fixed version of mod here as attachment? It would make things easier for the rest of us.
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:19 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.08778 seconds
  • Memory Usage 2,326KB
  • Queries Executed 22 (?)
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
  • (2)bbcode_php
  • (2)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
  • (5)post_thanks_box
  • (5)post_thanks_box_bit
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (5)postbit_attachment
  • (5)postbit_onlinestatus
  • (5)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_postinfo_query
  • fetch_postinfo
  • 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