vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Style users (https://vborg.vbsupport.ru/showthread.php?t=59644)

hagi 01-04-2004 09:29 AM

Style users
 
There was something like this in VB2 but non yet for VB3. Basically, it tells you how many users are currently using a style on your board. Its useful for admins to see what style is much more popular too. Thats about it. Any hack like this would be greatly appreciated.

marcjd 01-17-2004 10:03 PM

Yes, I agree. I found this thread searching for the answer to your very question. Anyone? Thanks. :)

Andreas 01-17-2004 11:49 PM

You can just run

Code:

SELECT style.title, count( user.styleid ) as usage_count
 FROM user
 LEFT JOIN style ON ( user.styleid = style.styleid )
 GROUP BY user.styleid

from ACP, this should give you the numbers.

marcjd 01-18-2004 12:30 AM

I imagine that is in the running a query section.

Thank you, I will enable that feature and do that tomorrow. Hopefully someone could post how to include the numbers in the style selection like you see on a lot of boards. That would make it very easy. :) Thanks again.

Andreas 01-20-2004 05:46 PM

Should be fairly easy to write some code for that ...
Where exactly do want to show this information (screenshot maybe)?

marcjd 01-20-2004 06:01 PM

Quote:

Originally Posted by KirbyDE
Should be fairly easy to write some code for that ...
Where exactly do want to show this information (screenshot maybe)?

On the boards that I have seen with it, the numbers of users using that style is right next to the style in the style drop-down box. For example, Style 1 (xx). They have it at vbskinz.com I believe.

NuclioN 03-09-2004 07:21 AM

Is this modification somewhere available?

vakvak 09-04-2005 01:04 PM

Quote:

Originally Posted by KirbyDE
You can just run

Code:

SELECT style.title, count( user.styleid ) as usage_count
 FROM user
 LEFT JOIN style ON ( user.styleid = style.styleid )
 GROUP BY user.styleid

from ACP, this should give you the numbers.

wnere lookat see for


All times are GMT. The time now is 12:35 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.01130 seconds
  • Memory Usage 1,725KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete