Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-03-2006, 05:12 AM
BigJohnny's Avatar
BigJohnny BigJohnny is offline
 
Join Date: Jun 2006
Location: Canada
Posts: 500
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Creating $Variables

Ok so im wondering how i go about creating $variables.

For instance, i have a new form on NEWTHREAD, that allows the user to input some extra data that will be displayed on SHOWTHREAD.

For instance i have textboxes, and radio buttons plus a drop downbox.

Names:
TextBoxes
Text1-value=$var1, Text2-value=$var2, Text3-value=$var3

Radio Buttons
RGSSL-value=yes or no

Drop Down Box Options
Windows
Unix
Solaris
Linux


So now i want to store the values of those boxes in the database ( i need some tables i know... i dont know exactly what to use for that either)
And then i want to put the values on showthread, by using $var1, $var2, $var3, $dropdown, to display the values of the stored variables.

Is there a walkthrough or tutorial that will show in detail how to do this?
Reply With Quote
  #2  
Old 10-03-2006, 06:22 AM
Guest190829
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by BigJohnny
Ok so im wondering how i go about creating $variables.

For instance, i have a new form on NEWTHREAD, that allows the user to input some extra data that will be displayed on SHOWTHREAD.

For instance i have textboxes, and radio buttons plus a drop downbox.

Names:
TextBoxes
Text1-value=$var1, Text2-value=$var2, Text3-value=$var3

Radio Buttons
RGSSL-value=yes or no

Drop Down Box Options
Windows
Unix
Solaris
Linux


So now i want to store the values of those boxes in the database ( i need some tables i know... i dont know exactly what to use for that either)
And then i want to put the values on showthread, by using $var1, $var2, $var3, $dropdown, to display the values of the stored variables.

Is there a walkthrough or tutorial that will show in detail how to do this?
I'm not sure if there is a tutorial on this - it does involve getting your feet wet in terms of Plugins and Thread Datamanager. I will try to post an tutorial tomorrow on how to do this.
Reply With Quote
  #3  
Old 10-03-2006, 01:11 PM
BigJohnny's Avatar
BigJohnny BigJohnny is offline
 
Join Date: Jun 2006
Location: Canada
Posts: 500
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ya i know it isnt as simple as calling a template, i think ive got the basics of that one down, but there is quite a bit involved in this isnt there?!

One hack im working on is from scratch, so i should be able to follow a tutorial to easily achieve whatever is in the tutorial..... another hack im working on is fully coded, and i want to add new fields to it, so it would require me to find all the right places to add more code to make new fields work with the existing ones.

will there be a tutorial coming?
Reply With Quote
  #4  
Old 10-05-2006, 05:13 AM
BigJohnny's Avatar
BigJohnny BigJohnny is offline
 
Join Date: Jun 2006
Location: Canada
Posts: 500
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If anyone knows how to do this, would someone PLEASE tell me.

I really want to learn how to do this.

13,000 active members, Thousands of hacks/programmers, and no one can show me how to do this?
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 12:07 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.03633 seconds
  • Memory Usage 2,186KB
  • Queries Executed 13 (?)
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_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
  • (3)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