vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Moderators Functions - Ban Users From a Thread (https://vborg.vbsupport.ru/showthread.php?t=259017)

Barcham 01-28-2014 01:39 AM

Just installed on 4.2.2 and it works perfectly. This is one of those perfect mods for my board because I have a sports discussion section on my board and some people get a bit over heated at times. This will allow me to lock them out of the particular thread for a couple of days and give them time to cool off. The only extra option I'd like to see would be a way to set the length of the ban when you hand it out. It would save a bit of time having to check every day to see if you have a ban to lift or not.

But even without that option, it's still an excellent hack and very much appreciated!!!

sevenmix 01-28-2014 03:44 PM

How to make this work with tapatalk?

ozzy47 01-28-2014 03:47 PM

Request tapatalk to support the functionality. It is not a issue with the mod.

WxP 01-30-2014 09:17 AM

Quote:

Originally Posted by Bubble #5 (Post 2445248)
4.2.1

Receiving this error at the top of the forum:

Code:

Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: navbar in [path]/includes/functions.php on line 4591

Parse error: syntax error, unexpected T_STRING in /home/loveforum/public_html/4um/postings.php(208) : eval()'d code(92) : eval()'d code on line 1

Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: btu_bans in [path]/includes/functions.php on line 4591

Can anyone figure this out? :confused:

I have this problem too on 4.2.2

Barcham 03-13-2014 10:38 PM

Quote:

Originally Posted by Toshinobu (Post 2341537)
I tested it in 4.2 and the menu option in the screenshot below doesn't appear.

https://vborg.vbsupport.ru/attachmen...5&d=1297946220

However, I tried banning a user from a thread and received a confirmation message. I didn't actually test if the user could post in the thread though after being banned.

Looks like the mod will need to be updated regardless.

After further testing, I have the same problem as the quoted user. I have no way to see who is banned from any thread. The only way to keep track of them is with a note in my admin panel or to have a thread going where I list thread banned members. I can confirm, however, that the member is indeed banned from posting in the thread.

It's still a useful hack but will take a bit of care to keep track of the banned members. If anyone gets around to doing some work on this mod, I wonder if it would be possible to list at either the top or bottom of the thread the members who are banned from posting in the thread. That would make it perfect!

mort2412 06-10-2014 05:55 PM

For those not being able to see the extra 3 options from Administrative menu did you read the README.txt file and add:

PHP Code:

<vb:if condition="$show['btu_canban']">
    <
li><label><input type="radio" name="do" id="ao_btu" value="btu_clear" /> {vb:rawphrase btu_clear}</label></li>
    <
li><label><input type="radio" name="do" id="ao_btua" value="btu_clear_all" /> {vb:rawphrase btu_clear_all}</label>/li>
    <
li><label><input type="radio" name="do" id="ao_btuv" value="btu_view_all" /> {vb:rawphrase btu_view_all}</label>/li>
</
vb:if> 

in SHOWTHREAD below:

PHP Code:

<vb:if condition="$show['openclose']">
<
li><label><input type="radio" name="do" value="openclosethread" checked="checked" tabindex="1" />
<
vb:if condition="$show['closethread']">{vb:rawphrase close_thread}<vb:else />{vb:rawphrase open_thread}</vb:if></label></li>
</
vb:if> 

I'm using 4.2.2PL1 and everything is working as it should. Hope this helps!!

Wajow-community 06-14-2014 03:11 PM

Can i use it for vbulletin 4.2.1?

Wseries 06-16-2014 08:49 AM

Quote:

Originally Posted by AcidX (Post 2164876)
However, there is a simple work-around that will allow your moderators to ban users from threads - but it's kinda tricky.

This seems like a contradictory statement. Is it simple or tricky? I notice the developer has not been online since February 2013, so we may never know. I like a lot of other people would like to let moderators access this function. Anyone know of the work-around the author mentioned?

Wseries 06-16-2014 08:52 AM

Quote:

Originally Posted by WxP (Post 2477919)
I have this problem too on 4.2.2

To easily eliminate the error, use the XML file provided in post #45 of this thread.

Wseries 06-16-2014 09:08 AM

This is how I fixed the mis-aligned icon and text in the postbit popup menu.

REPLACE the 'btu_link' template with:

Code:

<vb:if condition="$show['btu_canban']">
<li class="left">
                        <a href="postings.php?{vb:raw session.sessionurl}do=btu_ban&amp;t={vb:raw tredotid}&amp;u={vb:raw juserid}" rel="nofollow" class="siteicon_ignore">Thread Ban/Unban</a>
</li>
</vb:if>


ADD the following code to the popupmenu.css template:

Code:

.memberaction_body.popupbody li .siteicon_ignore {
        background:url({vb:stylevar imgdir_siteicons}/ignore.png) {vb:stylevar left} 2px no-repeat;
}


https://vborg.vbsupport.ru/external/2016/07/10.png

LordVader! 06-16-2014 11:54 AM

tryed this, but it's still looking the same as before.

Haseenvilla 06-27-2014 08:24 AM

Nyc Work great
Thanks for this useful mod :)

thetechgenius 08-26-2014 11:32 PM

I have a suggestion for a feature for this mod.

You should add an option to Ban a user from a thread, but still allow them to see the thread and thread content, just not be able to make anymore posts in that thread.

Right now, the banned user cannot access the thread content at all. You would just be adding a feature. Sound good?

CILGINKRAL_ 12-04-2014 08:11 PM

4.2 does not work in version. :(

rwurbanwildlife 01-04-2015 02:37 PM

I cannot find the mod in admin panel to make changes

ozzy47 01-04-2015 02:40 PM

There is no settings for the mod. Simply import the XML, then do the edits described in the README text file.

the one 01-27-2015 09:21 AM

Ok i am sorry for asking this but i am new to uploading stuff

Can i ask the images for this what file do i upload them to in my cpanel

Many thanks

Shell x

kh99 01-27-2015 03:33 PM

Quote:

Originally Posted by michelle81 (Post 2534789)
Ok i am sorry for asking this but i am new to uploading stuff

Can i ask the images for this what file do i upload them to in my cpanel

Many thanks

Shell x

The images are screen grabs just so that you can see what the mod looks like before installing it. You don't need to upload the images.

Eisheth 05-20-2015 11:29 AM

Does anyone know if this works on 4.2.x?

JesWhite 02-03-2016 07:00 AM

Quote:

Originally Posted by Eisheth (Post 2545958)
Does anyone know if this works on 4.2.x?

i'waiting to but again i'm waiting for like forum permission..
i want to disable to a user reply to a single forums
or cant see a forum easy way to edit users on admincp..

attroll 02-03-2016 10:06 AM

Quote:

Originally Posted by Eisheth (Post 2545958)
Does anyone know if this works on 4.2.x?

I have this working on vb 4.2.4

SpaceChronology 04-06-2016 09:27 AM

Quote:

Originally Posted by Eisheth (Post 2545958)
Does anyone know if this works on 4.2.x?

It works on 4.2.3

attroll 04-06-2016 01:10 PM

Quote:

Originally Posted by SpaceChronology (Post 2568551)
It works on 4.2.3

Works fine for me.

WxP 05-07-2016 03:41 PM

i got this error when i want to show who is in ban list on thread

PHP User Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: navbar in ..../includes/functions.php on line 4602

Parse error: syntax error, unexpected 'navbar' (T_STRING) in /*/*/*/*/*/postings.php(208) : eval()'d code(92) : eval()'d code on line 2

PHP User Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: btu_bans in ..../includes/functions.php on line 4602

boggseric 06-22-2016 01:04 AM

Quote:

Originally Posted by WxP (Post 2570314)
i got this error when i want to show who is in ban list on thread

PHP User Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: navbar in ..../includes/functions.php on line 4602

Parse error: syntax error, unexpected 'navbar' (T_STRING) in /*/*/*/*/*/postings.php(208) : eval()'d code(92) : eval()'d code on line 2

PHP User Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: btu_bans in ..../includes/functions.php on line 4602

I got similar errors after upgrading PHP to 5.6

babyv0x 07-19-2016 11:48 PM

Quote:

Originally Posted by Wseries (Post 2502162)
This is how I fixed the mis-aligned icon and text in the postbit popup menu.

REPLACE the 'btu_link' template with:

Code:

<vb:if condition="$show['btu_canban']">
<li class="left">
                        <a href="postings.php?{vb:raw session.sessionurl}do=btu_ban&amp;t={vb:raw tredotid}&amp;u={vb:raw juserid}" rel="nofollow" class="siteicon_ignore">Thread Ban/Unban</a>
</li>
</vb:if>


ADD the following code to the popupmenu.css template:

Code:

.memberaction_body.popupbody li .siteicon_ignore {
        background:url({vb:stylevar imgdir_siteicons}/ignore.png) {vb:stylevar left} 2px no-repeat;
}


https://vborg.vbsupport.ru/external/2016/07/10.png

Work fine for me 4.2.2 . Thanks :up:

mobster46 01-30-2017 03:34 PM

How can I give a ban for 1 day/week etc?

MarkFL 01-30-2017 06:27 PM

Quote:

Originally Posted by mobster46 (Post 2581537)
How can I give a ban for 1 day/week etc?

From reading the product description, it appears this kind of feature is not included. You will likely have to manually un-ban users after the desire period of time. :)

mobster46 02-02-2017 07:06 PM

Quote:

Originally Posted by MarkFL (Post 2581542)
From reading the product description, it appears this kind of feature is not included. You will likely have to manually un-ban users after the desire period of time. :)

Can you arrange the attachment to provide the function I mentioned?

MarkFL 02-02-2017 07:22 PM

Quote:

Originally Posted by mobster46 (Post 2581714)
Can you arrange the attachment to provide the function I mentioned?

This isn't my product, and the product is not marked as "Reusable Code", so no I cannot offer an update to this product.

Perhaps at some point I will offer my own product to do what you are asking, but I can't make any promises. :)

mobster46 02-02-2017 07:37 PM

Quote:

Originally Posted by MarkFL (Post 2581718)
This isn't my product, and the product is not marked as "Reusable Code", so no I cannot offer an update to this product.

Perhaps at some point I will offer my own product to do what you are asking, but I can't make any promises. :)

I understand. If you do not mind, I would like to learn your solution. I will be waiting for news from you. Thanks for everything.

MarkFL 02-02-2017 07:42 PM

Quote:

Originally Posted by mobster46 (Post 2581720)
I understand. If you do not mind, I would like to learn your solution. I will be waiting for news from you. Thanks for everything.

Well, I would have to create my own product from scratch...and this is a time consuming process. ;)

mobster46 02-02-2017 07:46 PM

Quote:

Originally Posted by MarkFL (Post 2581721)
Well, I would have to create my own product from scratch...and this is a time consuming process. ;)

Life is long :) I am curious. Good work. Thanks for everything

albatros23 02-02-2018 06:51 PM

<a href="https://vborg.vbsupport.ru/showthread.php?t=188670" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=188670</a>
can anyone help me ? i uploaded and working. but how can block users see ban reason?


All times are GMT. The time now is 01:28 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.01670 seconds
  • Memory Usage 1,835KB
  • 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
  • (5)bbcode_code_printable
  • (2)bbcode_php_printable
  • (17)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (34)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