vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Ban reason field? (https://vborg.vbsupport.ru/showthread.php?t=80937)

Luggruff 05-03-2005 04:05 PM

Ban reason field?
 
Is there a hack for the ability to add a reason to why someone is banned?
We are three admins and it's hard having to explain why each person is banned -_-

mholtum 05-03-2005 04:43 PM

Just create a Admin Only accessable forum and place the info there. That is what I do.

Luggruff 05-03-2005 04:55 PM

used to do that.. hard when you're stressed or on the run. Gotta be some way to add a text field just as the field with the number of days.. I have no clue in this scripting language and I don't wanna try and risk something

why-not 05-03-2005 05:25 PM

Quote:

Originally Posted by Luggruff
used to do that.. hard when you're stressed or on the run. Gotta be some way to add a text field just as the field with the number of days.. I have no clue in this scripting language and I don't wanna try and risk something

Is that all you want is info on the ban?

If so why not just add a table that contains the userid and the ban information <= why they were ban. Then do a join when listing the bans so you can see that information. I try not to add columns to the default db when it's something that is as trival as this. If this is ok I will show you how to do it!

Sonia

Luggruff 05-03-2005 08:02 PM

yes.. I'd love that!

why-not 05-03-2005 10:40 PM

Quote:

Originally Posted by Luggruff
yes.. I'd love that!

Hi

Just check back in a few hours I just starting on it now!


Sonia

Dennis Olson 05-03-2005 11:00 PM

Look - want the easy way? Do what I did. Add a custom profile field (private), labelled "Ban Reason". I also have a template conditional in the header template that will display that reason to the banned user if they attempt to use the board. Took 5 minutes. Simple and easy. I also have an "administrator comments" text-field where staff can add whatever comments they like. Again, a private field.

mholtum 05-03-2005 11:32 PM

Quote:

Originally Posted by Dennis Olson
Look - want the easy way? Do what I did. Add a custom profile field (private), labelled "Ban Reason". I also have a template conditional in the header template that will display that reason to the banned user if they attempt to use the board. Took 5 minutes. Simple and easy. I also have an "administrator comments" text-field where staff can add whatever comments they like. Again, a private field.

Mind sharing the conditional?

Dennis Olson 05-04-2005 12:17 AM

I'll share the code. Here you go... Header template, just above
$_phpinclude_output


Add:

Code:

<if condition="$bbuserinfo[usergroupid] == 8">
  <div align="left" style="color: red; background-color: white; border: 1px solid black; padding:2px">
        <b>Your membership has been terminated.<br /><br />

        <if condition="$bbuserinfo[fieldX]">
          Reason: $bbuserinfo[fieldX]
        </if>
        </b>
  </div>
</if>


Where "fieldX" is the assigned name of your custom private user field.

Also assuming usergroup 8 = your BANNED usergroup.

mholtum 05-04-2005 12:25 AM

sweet thanks


All times are GMT. The time now is 11:05 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.01155 seconds
  • Memory Usage 1,737KB
  • 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
  • (1)bbcode_code_printable
  • (3)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
  • (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