Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-22-2012, 11:15 PM
John Lester John Lester is offline
 
Join Date: Nov 2004
Posts: 543
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Custom form for private forum

What I want is a bit too complicated for my skill set. I also have to get approval from the board of directors and the lawyer before I can officially implement this idea.

Before I even approach them with this I want a working example to show them. If this is too complicated or time consuming for a free mod pm me an estimate of how long it will take and how much you'd like to receive. Payment would have to be via money order or pre-paid visa card as I don't have a paypal account anymore. Unless there are other online payment options (can I pay with a cc through paypal without having a paypal account?).

I want to create a new private forum (easy).

When you click on the link to the forum you get taken to a rules page with a radio button to check agreeing to the rules. After you click on the radio button the "post new thread" button becomes active (it's hidden until the radio button is checked).

Now the fun part .... upon clicking "post new thread" the user gets taken to a form. This form has multiple questions with all questions being mandatory.

Question 1 is a simple text field called "Diagnosis" width of input box should be 255 chars. Upon submitting the form this field should be bold and centered.

Question 2 is a simple text field called "Medication:" width of input box should be 100 chars. The user needs to be able to input (up to 20) "meds"

Question 3 is a simple text field called "Dosage:" width of input box should be 20 chars. The user needs to be able to input (up to 20) "doses"

Question 4 is a simple text field called "Times per day taken:" width of input box should be 4 chars. The user needs to be able to input (up to 20) "times"

Question 5 is a text editor (with limited bb code access ... font size, bold, italic, color and that's it) (char limit 8k) called "Hypothetical scenario" Upon submitting the form this field should be bold and centered.

I want the output to questions 2-4 to be in a table format with multiple rows with "meds" "dose" and "times" columns.

Upon submitting the form, a new thread is created in the private forum with the title "username's hypothetical scenario".

Rough idea of what the new thread should look like:

Code:
				Diagnosis

The flu

(table from questions 2-4 here)
Medication    dosage   times per day

tylenol        100mg        3
sudafed        25mg         2


				Hypothetical Scenario

My doc said to follow that regime until my symptoms are gone.  Is there a faster way to cure my cold?
Reply With Quote
  #2  
Old 07-23-2012, 12:08 AM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why not use bananalive's easy forms, it can do all that, then you're just left with the rules page and checkbox
Reply With Quote
  #3  
Old 07-23-2012, 04:00 PM
John Lester John Lester is offline
 
Join Date: Nov 2004
Posts: 543
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Simon Lloyd View Post
Why not use bananalive's easy forms, it can do all that, then you're just left with the rules page and checkbox
I have been unable to get it to output the answers from questions 2-4 in table format I've been trying off and on for a couple of months now If you know how to do that (and fill me in) I'd be able to do this on my own

To make things even more complicated, I forgot to mention the required changes to the registration process.

I would need a radio button saying something like "yes I'm a licensed medical professional". When checked then 4 required text fields become active. First name, last name, state licensed is issued in, and license #. Upon clicking the confirm registration button, the user will be moved to a special user group (if the radio button is checked and all required fields are completed).
Reply With Quote
  #4  
Old 07-24-2012, 07:00 AM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can create some output formatting using both bbcode and some ASCii or Unicode like this:
Question BBcode: [b] [/B]\r\n

Answer BBcode:[INDENT] [/INDENT]\r\n

Section BBcode: [U] [SIZE=3] [/SIZE][/U]\r\n
so you can fiddle around with how the output for those is and fiddle around with custom output the same way!

For the wiki's scroll down to see the possibilities.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:07 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.04087 seconds
  • Memory Usage 2,193KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete