Go Back   vb.org Archive > Community Central > Community Lounge
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-09-2003, 10:18 PM
TheMayhem's Avatar
TheMayhem TheMayhem is offline
 
Join Date: Oct 2002
Location: Pittsburgh, Pa
Posts: 526
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Bah *hits head on table*

I swear I've taken stupid pills this morning.

*sees vb people coming with a cup to drug test me*

Yeeks.

Anyways today I decided to get rid of html in sigs since people were abusing. Problem being that 1 out of every 4 people use drop down menu's. So I go to the custom vb code area and start to work on a drop down menu code. So with my limited intellegence I make 3 different codes. Here they are.

VB Code Tag #1 is: select
VB Code Replacement: <select name=which style="font-family: tahoma; font-size: 8pt; background-color: black; font-weight: ; color: white">{param}</select>

VB Code Tag #2 is: option
VB Code Replacement: <option value="Y2A">{param}</option>

VB Code Tag #3 is: br
VB Code Replacement: <br>

So it'd go something like this.

[select]
[option]Name: Brad[/option[br]
[option]Height: 10 ft[/option[br]
[option]Weight: 500 pounds[/option[br]
[/select]

Sounds simple enough. So I look over everything and for some uknown reason instead of displaying text all I get is a nice thin long column on a drop down menu with black bg and I'm guessing the only thing that isn't working is the option area which has me completely confused. *hits head on table again* Dang stupid pills must hurt ya...
Reply With Quote
  #2  
Old 03-09-2003, 10:32 PM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Don't use any <br> tag, you don't need them in dropdowns. Also you're never closing the ] in the [/option] tag.
Reply With Quote
  #3  
Old 03-09-2003, 10:40 PM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

BR tags are useless in posts, vB automatically adds <BR> tags to the message with bbcodeparse.
Reply With Quote
  #4  
Old 03-09-2003, 10:54 PM
TheMayhem's Avatar
TheMayhem TheMayhem is offline
 
Join Date: Oct 2002
Location: Pittsburgh, Pa
Posts: 526
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My last question is how would I be able to make it so that normal users could like edit the font color on drop down menu as well as background color?
Reply With Quote
  #5  
Old 03-09-2003, 10:59 PM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Add an option to the tag that works as the color.
Reply With Quote
  #6  
Old 03-09-2003, 11:21 PM
TheMayhem's Avatar
TheMayhem TheMayhem is offline
 
Join Date: Oct 2002
Location: Pittsburgh, Pa
Posts: 526
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What I mean turtle man is for example this is what I got.

Quote:
<select name=which style="font-family: tahoma; font-size: 8pt; background-color: black; font-weight: bold; color: white">{param}</select>
Now I can't just insert a color code on the individual drop down boxes to change the color to like a red for instance. So how would I take this and then when a user inserts it make it so it'd go like this.

[SELECT COLOR=RED BACKGROUND-COLOR=WHITE]
[OPTION]Hello[/OPTION]
[OPTION]Filburt[/OPTION]
[OPTION]How[/OPTION]
[OPTION]Are[/OPTION]
[OPTION]You[/OPTION]
[OPTION]Today?[/OPTION]
[/SELECT]
Reply With Quote
  #7  
Old 03-09-2003, 11:24 PM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

IIRC there's a hack that lets you use multiple options in BB Codes, try that.
Reply With Quote
  #8  
Old 03-09-2003, 11:49 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What is IIRC?
Reply With Quote
  #9  
Old 03-09-2003, 11:51 PM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If I recall correctly.
Reply With Quote
  #10  
Old 03-09-2003, 11:53 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's what happens when you get old.
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 07:03 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.06712 seconds
  • Memory Usage 2,285KB
  • 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_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete