vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Change Style Drop-Down (https://vborg.vbsupport.ru/showthread.php?t=33418)

hypedave 12-24-2001 12:20 AM

this is such a great hack, I wish all hack installs were easy like installing this one, keep up the good work

SirSteve 12-24-2001 05:42 AM

What about the Style Set option in the User CP? It doesn't change that if you change it via this pull-down.

SirSteve 12-24-2001 05:47 AM

Also, it looks like a few of my members have set their options to load a certain style but when I turn that particular style off (not user selectable), it still shows up in the pull-down hack.

hypedave 12-24-2001 09:11 AM

well I have noticed that the styel selector over rides what the user has chosen for that login session only, nowif they do a complete logout, and then logout back in, they have the style that was chosen from the control panel, and as far as selection to load a style when its disabled I havent sen that one yet, but I will ask around

Graphic-Forums 12-24-2001 07:43 PM

What could be my problem here, I did everything as said..
http://www.graphic-forums.com/index.php?styleid=5

Im running vb 2.2.1

Graphic-Forums 12-24-2001 08:05 PM

Here what i did in the index, about 15 lines down (surrounding code to give you a idea)
Code:

userid,username FROM user WHERE userid=$numbersmembers[max]");
$newusername=$getnewestusers['username'];
$newuserid=$getnewestusers['userid'];

// style drop

down box (by FireFly)
$allstyles=$DB_site->query("SELECT style.title, user.styleid, COUNT(*) AS count FROM user LEFT JOIN style USING (styleid) WHERE style.styleid IS NOT NULL

GROUP BY user.styleid");
$dropdownbits='';
while ($thisstyle=$DB_site->fetch_array($allstyles)) {
  if ($styleid==$thisstyle[styleid]) {
    $stylesel='selected';
  } else {
    $stylesel='';
  }
  eval("\$dropdownbits .= \"".gettemplate('forumhome_dropdownbit')."\";");
}
// style drop down box (by FireFly)
// if user is know, then welcome
if ($bbuserinfo['userid']!=0) {
  $username=$bbuserinfo['username'];
  eval("\$welcometext =


nuno 12-25-2001 08:18 PM

by looking at your page source code you are missing the <option> tags
check template name, maybe you have made a typo :)

Graphic-Forums 12-27-2001 01:29 AM

The option tags are included in the dropdown bits.

SirSteve 12-27-2001 03:03 AM

This doesn't work on Netscape... I believe because there are no <FORM> </FORM> tags...

exodus 12-27-2001 03:22 PM

This is a real sweet hack but it would be much better if it updated the information in the user profile. Is there any way to have it do that? Any way at all? That's the only thing stopping me from installing it.


All times are GMT. The time now is 09:13 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.01218 seconds
  • Memory Usage 1,735KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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