vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   New radio button field in postbit only for certain criteria...? (https://vborg.vbsupport.ru/showthread.php?t=97078)

TheMusicMan 09-28-2005 05:54 PM

New radio button field in postbit only for certain criteria...?
 
Hi All

Here's an easy one for the experts (note: I am not an expert and so this is not easy for me hehehehe...)

I am wanting to add a new data item to the postbit in the form of a radio button that is selctable and only appears for new threads in a specific forumID.

I want users who are able to post in this specific forum to identify the thread they are entering as a particular type (or not) by selecting (or not) this radio button (which is off by default).

I appreciate I'll need to add a new data item to one of the vB tables somewhere, but I have no idea how to safely do this nor how to code this into the calling php file(s).

I will also need to be able to identify threads where this radio button is set to 'on' and want to use a conditional in the threadview template to show these type of threads in a different color. As long as I know the identity of the $variable to check for in the conditional I am happy to code the html in the postbit or posbit_legacy templates, but desperately need help with both the php and the MySQL.

Is anyone willing to lend a hand and help out a poor Welshman on this... :) there might be a small PayPal donation heading in the direction of whoever help sme get this working.

Thanks all...


All times are GMT. The time now is 03:25 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.00988 seconds
  • Memory Usage 1,707KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete