Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

Reply
 
Thread Tools
Show Users using Style in Stylechooser Details »»
Show Users using Style in Stylechooser
Version: 1.0.1, by Andreas Andreas is offline
Developer Last Online: Jan 2023 Show Printable Version Email this Page

Version: 3.5.0 RC2 Rating:
Released: 09-03-2005 Last Update: 08-22-2006 Installs: 94
Uses Plugins
Additional Files Is in Beta Stage  
No support by the author.

<font size="3">Show Users using Style in Stylechooser</font>

Description
This Hack shows the number of Users permanently using a Style in Stylechooser.

Details
1 Product XML with 2 Plugins
1 PHP Function File

Note: No queries or processing Overhead for normal Display!

History
1.0.0
Initial Version

1.0.1
Compatibiity Update for vBulletin 3.6

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 09-04-2005, 04:37 PM
Xplorer4x4 Xplorer4x4 is offline
 
Join Date: Apr 2005
Posts: 938
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

First install. Thanks Kirby. I been needing this.
Reply With Quote
  #3  
Old 09-04-2005, 05:11 PM
Kirk Y's Avatar
Kirk Y Kirk Y is offline
 
Join Date: Apr 2005
Location: Tallahassee, Florida
Posts: 2,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sweet idea!

* acidburn0520 licks the install button
Reply With Quote
  #4  
Old 09-04-2005, 06:56 PM
Craigr's Avatar
Craigr Craigr is offline
 
Join Date: May 2002
Location: Ayr, Scotland
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice hack, installed and working : http://www.steven-seagal.net/forum/
Reply With Quote
  #5  
Old 09-04-2005, 07:13 PM
turksengel turksengel is offline
 
Join Date: Aug 2005
Location: Turkiye
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thx clicked install
Reply With Quote
  #6  
Old 09-04-2005, 07:17 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to add the vb_number_format for numbers over 999?
Reply With Quote
  #7  
Old 09-04-2005, 08:05 PM
y2krazy y2krazy is offline
 
Join Date: Jun 2003
Location: Houston, Texas
Posts: 318
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed. ^^

One question, where would I go to edit that number to, let's say, change it to "(X Users)"? Thanks again!
Reply With Quote
  #8  
Old 09-05-2005, 04:06 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@Boofo
That's not that easy, as the Text is hardcoded into stylecache.
If you use only one Thoustand Separator it will work fine if you just use vb_number_format(), but if you have several languages you will run into Problems.
To solv this you would have to remove the line that modifies the Title, cycle through the Chache upon each pageload and add the formatted Number there - but that adds some Overhead.
Or you can hack the function that buils the stylechooser - that would work without much Overhead, but has the drawback of requiring Fileedits.

@y2krazy
Sure. Take a look at functions_styleusers.php and change
PHP Code:
$cache["$parentid"]["$idx"]['title'] .= ' (' intval($styleusage["$style[styleid]"]) . ')'
to
PHP Code:
$cache["$parentid"]["$idx"]['title'] .= ' (' intval($styleusage["$style[styleid]"]) . ' Users)'
Reply With Quote
  #9  
Old 09-05-2005, 07:40 AM
y2krazy y2krazy is offline
 
Join Date: Jun 2003
Location: Houston, Texas
Posts: 318
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KirbyDE
@y2krazy
Sure. Take a look at functions_styleusers.php and change
PHP Code:
$cache["$parentid"]["$idx"]['title'] .= ' (' intval($styleusage["$style[styleid]"]) . ')'
to
PHP Code:
$cache["$parentid"]["$idx"]['title'] .= ' (' intval($styleusage["$style[styleid]"]) . ' Users)'
Actually, that didn't change a thing. ><
Reply With Quote
  #10  
Old 09-05-2005, 08:08 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It does - change your Style in UserCP, hit save and you'll see.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:14 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07303 seconds
  • Memory Usage 2,305KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete