Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 10-27-2005, 09:18 PM
MrSDavidson MrSDavidson is offline
 
Join Date: Nov 2004
Location: Scotland
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Submit Form in Navbar

Is it possible to update a Single-Selection Menu with a save button in the Navbar rather than in User Control Panel > Edit Options.
If so could someone possibly give me some directions as to how to do this?
Reply With Quote
  #2  
Old 10-28-2005, 03:21 AM
timetunnel timetunnel is offline
 
Join Date: Sep 2005
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello.

Not quite sure I follow...

Can you provide an example, please?

Thanks.
Reply With Quote
  #3  
Old 10-28-2005, 08:22 AM
MrSDavidson MrSDavidson is offline
 
Join Date: Nov 2004
Location: Scotland
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Like this, I have it where I need just need some pointers as how to submit the new data to the correct place

Code:
<if condition="$show['member']">
<td class="vbmenu_control"><a>Member Mood Display:</a>
<form action="profile.php?do=editoptions" method="submit">

<input type="hidden" name="userfield[field5_set]" value="1" />

	<select name="userfield[field5]" id="csel_field5">
				<option value="0" ></option>
				<option value="1" >accomplished</option><option value="2" >aggravated</option> ETC ETC...
</select>
<input type="submit" class="button" value="Save" accesskey="s" />
</form>
</if>
thats the code im using so perhaps iv missed something simple out of it
Attached Images
File Type: jpg navbar.JPG (7.6 KB, 0 views)
Reply With Quote
  #4  
Old 10-28-2005, 04:34 PM
timetunnel timetunnel is offline
 
Join Date: Sep 2005
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello.

Before looking into this code deeper, I noticed something:

in the following code,

HTML Code:
<form action="profile.php?do=editoptions" method="submit">
you have method="submit" when it should be either 'post' or 'get'. Granted, I haven't looked into updated HTML changes so if 'submit' is a new option for method, I didn't know...
Reply With Quote
  #5  
Old 10-28-2005, 04:43 PM
Guest190829
Guest
 
Posts: n/a
Default

You would have to send that to a php file that will insert or update that field with the drop down value.
Reply With Quote
  #6  
Old 10-28-2005, 07:54 PM
MrSDavidson MrSDavidson is offline
 
Join Date: Nov 2004
Location: Scotland
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cheers, anyone be able to give me some pointers as to how to do that in php? unfortunitly its not one of the languages I know.

Another Q, seeing as there is a php file that does this [profile.php] cant I send it directly to it?
Reply With Quote
  #7  
Old 10-30-2005, 08:36 PM
MrSDavidson MrSDavidson is offline
 
Join Date: Nov 2004
Location: Scotland
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anyone willing to give me Any pointers?
Reply With Quote
Reply

Thread Tools
Display Modes

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 05:13 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.05141 seconds
  • Memory Usage 2,218KB
  • Queries Executed 14 (?)
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_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (1)postbit_attachment
  • (6)postbit_onlinestatus
  • (7)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_postinfo_query
  • fetch_postinfo
  • 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
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete