vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Show Users using Style in Stylechooser (https://vborg.vbsupport.ru/showthread.php?t=95637)

y2krazy 09-05-2005 01:23 PM

Quote:

Originally Posted by KirbyDE
It does - change your Style in UserCP, hit save and you'll see.

Just tried it again, saved via the UCP, and it's still the same. Attachment included.

Andreas 09-05-2005 02:24 PM

Normally that can't be. Send me a PM with an ACP and FTP Login and i'll take a look

Boofo 09-22-2005 10:03 AM

Ok, new wrinkle. I have 19 members and they are all using the forum default style. But in the style chooser it shows 17 using that style and 0 using the other one. Any ideas?

Andreas 09-22-2005 10:21 AM

Uh? That should not happen, where are those 2 missing members ...

[sql]SELECT styleid, COUNT(styleid) FROM user GROUP BY styleid[/sql]

What does that tell?

Boofo 09-22-2005 12:04 PM

ID - Count
----------
0 - 16
5 -1
6 -1
10 -1

But I deleted all styles except 2 of them. And rebuilt styles. Shouldn't it have reset?

Andreas 09-22-2005 12:13 PM

No. It will fallback on runtime.
Hmm, I could try to make the query a bit more intelligent so it counts non-existing styles as default.
But currently this is working as designed - it tells you what's in the database ;)

Boofo 09-22-2005 12:26 PM

How do I get it to show it right then?

Andreas 09-22-2005 12:28 PM

UPDATE user SET styleid=0 WHERE styleid IN (doesnotexistanymore)

Boofo 09-22-2005 12:39 PM

After running the query 2 times (for deleted styles 5 and 6) and rebuilding the styles, now it all looks right. ;)

Is there an easier way to do that if you ever delete another style?

Odysseus 09-22-2005 12:44 PM

Wonderful, I've already been looking for this.
Thanks, Kirby!


All times are GMT. The time now is 06: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.01120 seconds
  • Memory Usage 1,727KB
  • 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_quote_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