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)

asianboi 05-11-2005 05:06 PM

oh no.. i've done this already, but that is not what I want...

Quote:

That's how I was going to do it, but I figured the person was happy with the profile field method so I did not post mine. My idea is to have it in the admin panel and have a text field that you can input the reason for the ban and also have a select (radio) option that allows you to have the reason show up on the forum as a error message to the ban user, with full details of the ban! (Yes or No) option!

No extra query, done doing a stright join instead of a select on a single table!


Sonia
this is what I need

Jenta 05-11-2005 06:23 PM

Quote:

Originally Posted by asianboi
I like that idea and that's what I need WHY-NOT

Can you share it with us? or at least with me?

share it with all of us :)
this should be standard vb stuff

Dennis Olson 05-12-2005 01:37 PM

It's just as easy using the method I posted earlier. Instead of one field, you create two - one is a text entry field, and one is a radio-button select. Both are private, non-user-editable fields. Then change the condition in the header from if there's anything in the reason field, to if the desired radio button is checked.

All done. Takes an extra minute or so to create that second field....

;)

It would be coded like this:

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['fieldY'] == 'show'">
          Reason: $bbuserinfo[fieldX]
        </if>
        </b>
  </div>
</if>

Assuming "fieldY" is your radio-button field, and "show" is one of the options.

Again, this method is NOT A HACK. It's the addition of 2 custom user-profile fields, and a change to the header template.


All times are GMT. The time now is 06:54 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.01078 seconds
  • Memory Usage 1,726KB
  • 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
  • (2)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
  • (3)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