vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=139)
-   -   [release] Dynamic Style Set Dropdown (https://vborg.vbsupport.ru/showthread.php?t=85177)

imported_cono 11-04-2002 01:19 AM

great template mod! thanks.

Smoothie 11-04-2002 01:29 AM

Bit of a pain to change over, but works well, and I'm 1 less query then before.

stark427 11-15-2002 12:48 AM

another great hack Filburt :)

*clicks install*

stark427 11-15-2002 01:00 PM

Filburt

How could I make the combo box to change styles with a button next to it, and not automaticaly?

I mean - I would like the combo box to only be used for selecting the style and a button on the right with which you apply the change...

how can this be done? :)

thanx in advance

filburt1 11-15-2002 02:24 PM

Untested but try replacing $styledropdown on forumhome with:
Code:

$styledropdown <input type="button" value="Go"
    onClick="window.location = 'index.php?s=$session[sessionhash]&styleid='
    + document.newstyleid.value">

Then in phpinclude get rid of the onChange=\"window.location='index.php?s=$shash&sty leid=' + this.value\".

stark427 11-15-2002 02:51 PM

A Run Time error :

when I press Go:

filburt1 11-15-2002 02:54 PM

Maybe document.all['newstyleid'] instead of document.newstyleid?

stark427 11-15-2002 03:00 PM

Yeah :)
It seems that it works ok now :)

Something more: (please don't shoot me...)

Is there a way I can make the GO button smaller?

Or even better instead of this common GO button I would like to use another one... like this :

http://www.synthpopavenue.gr/eimages/go.gif

u know a gif I have... that goes better with my styles...

thanx anyway

filburt1 11-15-2002 03:02 PM

Try:
Code:

$styledropdown <a href="javascript:window.location =
    'index.php?s=$session[sessionhash]&styleid='
    + document.all['newstyleid'].value">
<img src="images/go.gif" border="0" align="absmiddle"></a>


stark427 11-15-2002 03:11 PM

Thanx

problem inow s that although it works with IE... and everything is fine... there are 2 probs with netscape:

1) The button does not work at all. You press it - it does not do anything.

2) The button seems to be wrongly aligned - its lower that what it should be
look at the screenshot


All times are GMT. The time now is 09:01 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.01104 seconds
  • Memory Usage 1,729KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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