vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Ban User From A Thread (https://vborg.vbsupport.ru/showthread.php?t=109416)

Trigunflame 03-04-2006 09:30 PM

Major Update: 3/4/06 6:33pm
1. Cannot Ban Moderators/Supermoderators/Administrators
2. Checks Global Supermod/Administrator Permissions
3. Can Ban/Unban User From Same Menu

Trigunflame 03-04-2006 09:31 PM

Quote:

Originally Posted by klaush
Great! And thanks!

Please be so kind to put the product file with the install information in one zip-file!

Not gonna make a zip file, I prefer having a simple hack like this with just a single xml file.

Trigunflame 03-04-2006 09:39 PM

Quote:

Originally Posted by wArDoG
Is there anyway to tell who is banned in each thread? If not anyway to add something like that? This hack is just what the doctor ordered. Thanks :)

Well I guess I could make a small modification, that would allow you to see the current bans..

wArDoG 03-04-2006 09:55 PM

Quote:

Originally Posted by Trigunflame
Well I guess I could make a small modification, that would allow you to see the current bans..


Thanks! :)

Megareus Rex 03-04-2006 10:01 PM

For the showthread edits, do you add the code after EVERY instance of <td class="vbmenu_option" title="nohilite">, or just one?

There's like 5 instances of that particular code in the template.

Trigunflame 03-04-2006 10:12 PM

Quote:

Originally Posted by Megareus Rex
For the showthread edits, do you add the code after EVERY instance of <td class="vbmenu_option" title="nohilite">, or just one?

There's like 5 instances of that particular code in the template.

I only have 1 in mine.., you must be using old templates. I'll try and make it more exact.

Megareus Rex 03-04-2006 10:17 PM

Quote:

Originally Posted by Trigunflame
I only have 1 in mine.., you must be using old templates. I'll try and make it more exact.

Well, the temp. is updated for 3.5.4, so I don't know.

There's one for threaded, liner, and hybrid modes, and one for the thread tools, search thread, rate thread, and display modes. As it is, adding the code to every instance of that makes the ban options appear in every one of those dropdown menus.

Trigunflame 03-04-2006 10:20 PM

Quote:

Originally Posted by Megareus Rex
Well, the temp. is updated for 3.5.4, so I don't know.

There's one for threaded, liner, and hybrid modes, and one for the thread tools, search thread, rate thread, and display modes. As it is, adding the code to every instance of that makes the ban options appear in every one of those dropdown menus.

There is only 1 SHOWTHREAD template for each style. And this is the only template you edit; please check the first post as I have updated the instructions with a more exact location.

Megareus Rex 03-04-2006 10:27 PM

Quote:

Originally Posted by Trigunflame
There is only 1 SHOWTHREAD template for each style. And this is the only template you edit; please check the first post as I have updated the instructions with a more exact location.

Oh, no, you must have misunderstood me, I meant there were multiple instances of the <td class="vbmenu_option" title="nohilite"> code block in the SHOWTHREAD template. Now that there were multiple showthread templates.

Oh, and as for the ban/unban user thing a previous poster suggested, I was thinking, making the Ban / Unban user field in the dropdown menu say Ban if they arent banned, or unban if they ARE banned, instead of just Ban / Unban, would be a good idea, since then you'd be able to see a user's ban status. Though I too would like to see an easier option to view all banned users in a thread.

Trigunflame 03-04-2006 10:30 PM

Quote:

Originally Posted by Megareus Rex
Oh, no, you must have misunderstood me, I meant there were multiple instances of the <td class="vbmenu_option" title="nohilite"> code block in the SHOWTHREAD template. Now that there were multiple showthread templates.

Oh, and as for the ban/unban user thing a previous poster suggested, I was thinking, making the Ban / Unban user field in the dropdown menu say Ban if they arent banned, or unban if they ARE banned, instead of just Ban / Unban, would be a good idea, since then you'd be able to see a user's ban status. Though I too would like to see an easier option to view all banned users in a thread.

Hmms I dont know an easier way to do it right now without adding another query, I dont think its that big of a deal. Im making a small mod so you can see forum wide bans branched down into each thread as it is; adding it so it says "ban" or "unban" depending on their status is really not something im worried about right now.


All times are GMT. The time now is 08:02 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.01276 seconds
  • Memory Usage 1,744KB
  • 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
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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