Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-12-2012, 08:24 PM
fevredsuk fevredsuk is offline
 
Join Date: Apr 2010
Posts: 150
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default whos using what style

Is there a way to quickly see who is using which style or at least find out how many are using a each style

I have quite a few styles on my forum and I dont want to add anymore without removing the ones that are not being used.

In the past I have made a poll to find out but surly there must be an easier way.

Thanks

edit: it would be ideal if it was possible to see which style members are currently using not whats set in their control panel
Reply With Quote
  #2  
Old 05-12-2012, 09:15 PM
LifesGreatestGift's Avatar
LifesGreatestGift LifesGreatestGift is offline
 
Join Date: Jul 2009
Location: Louisville, KY USA
Posts: 885
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This mod currently works on 4.1.12 and it was developed on 3.5.x

https://vborg.vbsupport.ru/showthrea...ighlight=style

I think the issue with any user->style counter is that when a user uses the actual style chooser in the footer, they are not actually setting it as their style its a temporary choice and will not be counted, but when a user sets their style manually in their user settings (usercp.php) those will be counted correctly.

The mod listed will show how many users are using what style (only for users that have set their style) in the style chooser.
Reply With Quote
  #3  
Old 05-12-2012, 09:43 PM
fevredsuk fevredsuk is offline
 
Join Date: Apr 2010
Posts: 150
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks, just tried it, it gave me an error at the top of the page.

also I can run a query to find out how many users have set each style in their usercp

SELECT
user.styleid,
COUNT(user.styleid) AS total,
style.title
FROM
user
LEFT OUTER JOIN
style ON
style.styleid = user.styleid
WHERE
user.styleid <> 0
GROUP BY
styleid
ORDER BY
total

I want to know what current styles are being used. some members may ahve never set anything other than the defualt in their usercp yet changed style with style chooser numerous times.

maybe i should have a mod created to update the usercp style when they use the style selector
Reply With Quote
  #4  
Old 05-12-2012, 09:52 PM
LifesGreatestGift's Avatar
LifesGreatestGift LifesGreatestGift is offline
 
Join Date: Jul 2009
Location: Louisville, KY USA
Posts: 885
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

make sure you upload the included file as it is required.

I believe Ive come across some code on the site before where when a user changes the style via style chooser it updates their style selection in their profile. I will post if I find it. But yes, that is what needs to be done to account for users using the style chooser as opposed to their control panel.

--------------- Added [DATE]1336863438[/DATE] at [TIME]1336863438[/TIME] ---------------

I found it.
https://vborg.vbsupport.ru/showthread.php?t=133831

It was coded for 3.6.x but works fine on 4.1.12 and works even better
when using https://vborg.vbsupport.ru/showthrea...ighlight=style

as it will show the count in the actual style chooser.
Reply With Quote
  #5  
Old 05-12-2012, 09:57 PM
fevredsuk fevredsuk is offline
 
Join Date: Apr 2010
Posts: 150
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeah i did, this is the error

Warning: array_key_exists() expects parameter 2 to be array, null given in [path]/includes/class_bootstrap.php(1366) : eval()'d code on line 436
Reply With Quote
  #6  
Old 05-12-2012, 09:58 PM
LifesGreatestGift's Avatar
LifesGreatestGift LifesGreatestGift is offline
 
Join Date: Jul 2009
Location: Louisville, KY USA
Posts: 885
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It somewhat works. May need to edit the code a bit, but its a place to start.

--------------- Added [DATE]1336863618[/DATE] at [TIME]1336863618[/TIME] ---------------

That is strange as I am running 4.1.12 on my forum and the mod (first one i posted about) works fine.

http://kryptodesigns.com/forum/forum.php

Look at my style chooser.

--------------- Added [DATE]1336863828[/DATE] at [TIME]1336863828[/TIME] ---------------

Looking into it further it appears the second mod I posted (as is) messed up my style. Had to disable it to make it normal. May need some code revision to be compatible with 4.x.x
Reply With Quote
  #7  
Old 05-12-2012, 10:05 PM
fevredsuk fevredsuk is offline
 
Join Date: Apr 2010
Posts: 150
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

not sure, think i will see about a having a mod made

cheers
Reply With Quote
  #8  
Old 06-18-2012, 09:52 PM
fevredsuk fevredsuk is offline
 
Join Date: Apr 2010
Posts: 150
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

had a fantastic mod made for this which works perfectly

on both my forums, shows i whats going on who using what
Reply With Quote
Благодарность от:
nhawk
Reply


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 10:41 PM.


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.04504 seconds
  • Memory Usage 2,231KB
  • Queries Executed 13 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (1)post_thanks_box_bit
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)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_postinfo_query
  • fetch_postinfo
  • 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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete