vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   is there a way to put a description in the theme chooser rather than the current ? (https://vborg.vbsupport.ru/showthread.php?t=210678)

Lynne 04-10-2009 08:35 PM

You changed the lines in global.php to your new function where $quickchooserbits is defined?

JonZ 04-10-2009 09:48 PM

Quote:

Originally Posted by Lynne (Post 1788457)
You changed the lines in global.php to your new function where $quickchooserbits is defined?

everythings is defined properly, but from the code above, I am doing it wrong.

I almost found the culprit. $stylesetlist hold the selected="selected" value. It collect it html values from fetch_template('option').

Where fetch_template('option') is defined? where 'option' is defined? which file it came from?

if I echo fetch_template('option'); it return this php/html code:

<option value=\"$optionvalue\" class=\"$optionclass\" $optionselected>$optiontitle</option>

Lynne 04-10-2009 11:03 PM

Quote:

Where fetch_template('option') is defined? where 'option' is defined? which file it came from?
That is saying, fetch the template named "option". The "option" template is with all your other templates. So, right before evaling that template, just set $optionselected to '' .

JonZ 04-10-2009 11:20 PM

ok now I know why it wasn't working,

it was the
$stylesetlist .= construct_style_options($style['styleid'], $depthmark . '--', false, $quickchooser);

in the if line, it wasn't renamed construct_style_options_myf. I totally didn't know a function could be expressed in the function itself.

I renamed it properly and now it working, I got quick style chooser as the first item :)

both IE and FF.

Not entirely the way I wanted, sometime it still show innapropriately because of maybe cookies, or maybe there's HTML limitations.

And browser compatibilities also play: in FF, disabled="disabled" work, the item is unselectable and greyed out, whereas IE it still selectable and plain color.


All times are GMT. The time now is 04:46 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.00940 seconds
  • Memory Usage 1,721KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete