View Single Post
  #10  
Old 06-21-2005, 02:11 PM
CrazyLady CrazyLady is offline
 
Join Date: Feb 2005
Location: Canada
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think I got it, works for me anyway.

Give your users the option to choose their font color from a drop down menu.

Open action.postcolor.php and:

FIND
Code:
		'type' => 'input',
		'size' => 25,
REPLACE WITH
Code:
		'type' => 'dropdown',
        'optioncode' => '$GLOBALS[optioncode]',
FIND BOTH OCCURRENCES OF
Code:
	// Create Input Fields
ADD BELOW BOTH OCCURRENCES
Code:
    $optioncode = ' 
<option value selected unselectable="true">
[Color]</option>\n 
<option style="background-color: black" value="Black" unselectable="true">
Black</option>\n 
<option style="background-color: sienna" value="Sienna" unselectable="true">
Sienna</option>\n 
<option style="background-color: darkolivegreen" value="DarkOliveGreen" unselectable="true">
Dark Olive Green</option>\n 
<option style="background-color: darkgreen" value="DarkGreen" unselectable="true">
Dark Green</option>\n 
<option style="background-color: darkslateblue" value="DarkSlateBlue" unselectable="true">
Dark Slate Blue</option>\n 
<option style="background-color: navy" value="Navy" unselectable="true">
Navy</option>\n 
<option style="background-color: indigo" value="Indigo" unselectable="true">
Indigo</option>\n 
<option style="background-color: darkslategray" value="DarkSlateGray" unselectable="true">
Dark Slate Gray</option>\n 
<option style="background-color: darkred" value="DarkRed" unselectable="true">
Dark Red</option>\n 
<option style="background-color: darkorange" value="DarkOrange" unselectable="true">
Dark Orange</option>\n 
<option style="background-color: olive" value="Olive" unselectable="true">
Olive</option>\n 
<option style="background-color: green" value="Green" unselectable="true">
Green</option>\n 
<option style="background-color: teal" value="Teal" unselectable="true">
Teal</option>\n 
<option style="background-color: blue" value="Blue" unselectable="true">
Blue</option>\n 
<option style="background-color: slategray" value="SlateGray" unselectable="true">
Slate Gray</option>\n 
<option style="background-color: dimgray" value="DimGray" unselectable="true">
Dim Gray</option>\n 
<option style="background-color: red" value="Red" unselectable="true">
Red</option>\n 
<option style="background-color: sandybrown" value="SandyBrown" unselectable="true">
Sandy Brown</option>\n 
<option style="background-color: yellowgreen" value="YellowGreen" unselectable="true">
Yellow Green</option>\n 
<option style="background-color: seagreen" value="SeaGreen" unselectable="true">
Sea Green</option>\n 
<option style="background-color: mediumturquoise" value="MediumTurquoise" unselectable="true">
Medium Turquoise</option>\n 
<option style="background-color: royalblue" value="RoyalBlue" unselectable="true">
Royal Blue</option>\n 
<option style="background-color: purple" value="Purple" unselectable="true">
Purple</option>\n 
<option style="background-color: gray" value="Gray" unselectable="true">
Gray</option>\n 
<option style="background-color: magenta" value="Magenta" unselectable="true">
Magenta</option>\n 
<option style="background-color: orange" value="Orange" unselectable="true">
Orange</option>\n 
<option style="background-color: yellow" value="Yellow" unselectable="true">
Yellow</option>\n 
<option style="background-color: lime" value="Lime" unselectable="true">
Lime</option>\n 
<option style="background-color: cyan" value="Cyan" unselectable="true">
Cyan</option>\n 
<option style="background-color: deepskyblue" value="DeepSkyBlue" unselectable="true">
Deep Sky Blue</option>\n 
<option style="background-color: darkorchid" value="DarkOrchid" unselectable="true">
Dark Orchid</option>\n 
<option style="background-color: silver" value="Silver" unselectable="true">
Silver</option>\n 
<option style="background-color: pink" value="Pink" unselectable="true">
Pink</option>\n 
<option style="background-color: wheat" value="Wheat" unselectable="true">
Wheat</option>\n 
<option style="background-color: lemonchiffon" value="LemonChiffon" unselectable="true">
Lemon Chiffon</option>\n 
<option style="background-color: palegreen" value="PaleGreen" unselectable="true">
Pale Green</option>\n 
<option style="background-color: paleturquoise" value="PaleTurquoise" unselectable="true">
Pale Turquoise</option>\n 
<option style="background-color: lightblue" value="LightBlue" unselectable="true">
Light Blue</option>\n 
<option style="background-color: plum" value="Plum" unselectable="true">
Plum</option>\n 
<option style="background-color: white" value="White" unselectable="true">
White</option>\n';
wow, my first ever mod change. Code changes referenced from the ushop ribbon addon, so credit goes to "zsdave". Hope I remembered and included all my changes. LOL
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01143 seconds
  • Memory Usage 1,799KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete