vb.org Archive

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

AcidX 07-13-2007 10:37 PM

Quote:

Originally Posted by Taios (Post 1290246)
Hey,
I installed the mod however am having some difficulties.

In the 'Thread tools' what is in the screenshot appears. However when i click the username, it does not say 'Ban user from thread' :(.

I installed the product and then i did the template edits :).

Any help is appreciated

- Thanksyou

You probably missed step #3 from the installation manual:
- Open BOTH templates posbit and postbit_legacy;
- FIND:
Code:

<if condition="$post['userid'] AND $show['member']">
    <tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
    </if>

- Bellow that code, add the following:
Code:

<if condition="$show['btu_canban']">
 <if condition="!isset($btu[$post[threadid]][$post[userid]])">
    <tr><td class="vbmenu_option"><a href="postings.php?$session[sessionurl]do=btu_ban&amp;t=$post[threadid]&amp;u=$post[userid]">$vbphrase[btu_ban]</a></td></tr>
 <else />
    <tr><td class="vbmenu_option"><a href="postings.php?$session[sessionurl]do=btu_ban&amp;t=$post[threadid]&amp;u=$post[userid]">$vbphrase[btu_unban]</a></td></tr>
 </if>
</if>

Make sure you edit both templates. It will surely work. ;)

Quote:

Originally Posted by aj8690 (Post 1290316)
This is great. Is there any way to make it so normal moderators can do this in their assigned forums, too?

Not yet, but probably will soon.

Code Monkey 07-13-2007 11:32 PM

Maybe add a temp ban as well.

aj8690 07-13-2007 11:33 PM

Quote:

Originally Posted by AcidX (Post 1290347)
Not yet, but probably will soon.

Thanks! Then it would be perfect! I really hope it is possible.

Taios 07-13-2007 11:41 PM

Quote:

Originally Posted by AcidX (Post 1290347)
You probably missed step #3 from the installation manual:
- Open BOTH templates posbit and postbit_legacy;
- FIND:
Code:

<if condition="$post['userid'] AND $show['member']">
    <tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
    </if>

- Bellow that code, add the following:
Code:

<if condition="$show['btu_canban']">
 <if condition="!isset($btu[$post[threadid]][$post[userid]])">
    <tr><td class="vbmenu_option"><a href="postings.php?$session[sessionurl]do=btu_ban&amp;t=$post[threadid]&amp;u=$post[userid]">$vbphrase[btu_ban]</a></td></tr>
 <else />
    <tr><td class="vbmenu_option"><a href="postings.php?$session[sessionurl]do=btu_ban&amp;t=$post[threadid]&amp;u=$post[userid]">$vbphrase[btu_unban]</a></td></tr>
 </if>
</if>

Make sure you edit both templates. It will surely work. ;)

Not yet, but probably will soon.

Ah, sorry about that.

It fixed my problem :D. Thankyou very much!

SuperTaz 07-14-2007 05:36 AM

How do I use it? Do I right-click on the flamers name and something will come up and click ban or do I just go to the user options menu?

AcidX 07-14-2007 06:52 AM

Quote:

Originally Posted by Warden-B- (Post 1290566)
How do I use it? Do I right-click on the flamers name and something will come up and click ban or do I just go to the user options menu?

Just click on your member's usernames (not avatars) while reading the specific thread.

You will notice the following options in the drop-down menu:

- View Public Profile
- Send a private message to [member]
- Find all posts by [member]
- Add [member] to Your Buddy List
- Ban User from Thread

Choose "Ban User from Thread" and Whoala!

If you wish to unban the member, either click it's username again and choose "Unban User from Thread", or click Thread tools and choose to: Clear this threads bans, Clear every threads bans, or - View all threads bans.

SuperTaz 07-14-2007 07:34 AM

Doesn't show and I did everything right. Will it conflict with other mods on my site?

http://img175.imageshack.us/img175/7618/nopeat0.jpg

AcidX 07-14-2007 08:14 AM

Quote:

Originally Posted by Warden-B- (Post 1290633)
Doesn't show and I did everything right. Will it conflict with other mods on my site?

No mate, I dobt there's a conflict with some other mod.
I'll have to repeat myself thouh :)

You probably missed step #3 from the installation manual:
- Open BOTH templates posbit and postbit_legacy;
- FIND:
Code:

<if condition="$post['userid'] AND $show['member']">
    <tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&userlist=buddy&u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
    </if>

- Bellow that code, add the following:
Code:

<if condition="$show['btu_canban']">
 <if condition="!isset($btu[$post[threadid]][$post[userid]])">
    <tr><td class="vbmenu_option"><a href="postings.php?$session[sessionurl]do=btu_ban&t=$post[threadid]&u=$post[userid]">$vbphrase[btu_ban]</a></td></tr>
 <else />
    <tr><td class="vbmenu_option"><a href="postings.php?$session[sessionurl]do=btu_ban&t=$post[threadid]&u=$post[userid]">$vbphrase[btu_unban]</a></td></tr>
 </if>
</if>

Make sure you edit both templates. It will surely work.

Magnumutz 07-14-2007 12:43 PM

This is exactly what Coders Shack was looking for.

projectego 07-14-2007 05:59 PM

/me clicks install


All times are GMT. The time now is 03:36 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.01409 seconds
  • Memory Usage 1,750KB
  • 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
  • (6)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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