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)

yesfans 01-04-2003 11:57 PM

Well I couldnt get it top work, I pulled it off my site. Just a empty box!

Schorsch 01-08-2003 01:24 PM

I installed it, but now I can't change the style on the regular way over the control panel!!

What's wrong ??

Thanks,
Schorsch

incarnus 01-12-2003 09:57 PM

[QUOTE]Originally posted by Schorsch
I installed it, but now I can't change the style on the regular way over the control panel!!

What's wrong ??

Thanks,
Schorsch

leviw 01-18-2003 03:54 PM

Well.. I installed it and it works, but is definatly buggy.

If no one has a particular style selected it disappears from my drop down box. The only way to get it back is to go into the cp, options, reselect the style, submit, go BACK to the home forum and reselect the style.

Aside from this problem its great, I used the most recently posted dl link to get the info, was there a different link to dl the final hack that resolved this problem?

I doubt all you skillfull people put up with this bug, what am I doing wrong?

leviw 01-20-2003 09:38 PM

Okay, I'm pretty new at PHP but I think I see at least where the soloution is.

In the index.php file if I changed this:

$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 AND style.userselect=1 GROUP BY user.styleid");

To this:

$allstyles=$DB_site->query("SELECT style.title, user.styleid, COUNT(*) AS count FROM user LEFT JOIN style USING (styleid) style.userselect=1 GROUP BY user.styleid");

Would that correct the problem of the list only showing styles that a user is actually on?

ego 01-22-2003 08:46 AM

I want to use the drop down out of the first post.

i have the Problem that the pull down menue only show one style.

What am I to do??

I use the 2.2.9 vb.

Can somebody post the whole scrips?? Thanks

leviw 01-22-2003 09:01 PM

The hack has a bug that allows only styles that have at least 1 user on them to show up under the drop down list.

So far the band-aid fix is to create one dummy user specifically for each style.

I hope someone more knowledgable about php will come along and suggest an actual code fix.

ego 01-23-2003 09:29 PM

I hope this too :smoke:

Destee 01-25-2003 09:44 PM

Thanks again FireFly :)

*clicking installed*

Destee

Destee 01-25-2003 09:48 PM

hmmmm ... i do have one question ...

i want the "Default" choice to say "Destee" instead of "Default"

i can't see where to change this, if someone could direct me please.

i've already renamed the default template set to "Destee" but that made no difference.

Thanks,

Destee


All times are GMT. The time now is 12:40 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.01328 seconds
  • Memory Usage 1,732KB
  • 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)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