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-04-2005 03:20 AM

how can i make it show in the banning.php?do=modify instead of the user profile?

Example:

User Name Banned By Banned On Ban Period Ban Will Be Lifted On Ban Time Remaining Lift Ban Reason

Kila_Bite 05-04-2005 12:45 PM

Yeah this hack would be useful for me too. Asianboi hit it right on the head. If someone could code this it'd be kinda cool. Sorry to be sponging off good coders but im clueless when it comes to PHP lol.

why-not 05-04-2005 02:12 PM

1 Attachment(s)
Quote:

Originally Posted by asianboi
how can i make it show in the banning.php?do=modify instead of the user profile?

Example:

User Name Banned By Banned On Ban Period Ban Will Be Lifted On Ban Time Remaining Lift Ban Reason

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

asianboi 05-04-2005 02:27 PM

I like that idea and that's what I need WHY-NOT

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

wrongful 05-04-2005 03:59 PM

There are two hacks that I am aware of that have a reason field built into them. The first would be the Advanced Warning System (AWS) and the second would be Terry's Show Banned Users List Hack, which is mine and pretty much serves the purpose of informing people who banned who and why. Hope this helps.

asianboi 05-04-2005 04:20 PM

somehow my navbar does not work with AWS so i gotta let that go...

Kila_Bite 05-05-2005 12:31 PM

Quote:

Originally Posted by why-not
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

Now that sounds cool. Would it be possible to release it? Or at least provide me with the code? A release'd be better though. I think it could really bennefir the Vb community ;)

Dennis Olson 05-05-2005 04:09 PM

All you'd have to do is add a custom private radio-button pair under the Ban Reason field, then add an additional conditional to the header template add-in. Should take about 30 seconds.

asianboi 05-07-2005 04:11 AM

Quote:

Originally Posted by Dennis Olson
All you'd have to do is add a custom private radio-button pair under the Ban Reason field, then add an additional conditional to the header template add-in. Should take about 30 seconds.


if we were that goood we would not even post for help... Thanks Mr. Olson. It would be much better if you can tell us how to do it.

Dennis Olson 05-09-2005 03:14 PM

Sorry, not thinking.

AdminCP, USER PROFILE FIELDS, Add New User Profile Field.

You will be prvided with a Field number. The name of your new field will be "field" + that number.

MAKE SURE the field is set to PRIVATE, the user can NOT edit it, and it does NOT appear in the Memberlist. Then just add the conditional I outlined above, and replace "fieldX" with your field name.

BTW, this is NOT a hack; it's a new profile field + the addition of a template conditional. You can ask for help on this ovfer at vB.com also.


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.01089 seconds
  • Memory Usage 1,738KB
  • 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
  • (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