PDA

View Full Version : whos using what style


fevredsuk
05-12-2012, 08:24 PM
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

LifesGreatestGift
05-12-2012, 09:15 PM
This mod currently works on 4.1.12 and it was developed on 3.5.x

https://vborg.vbsupport.ru/showthread.php?t=95637&highlight=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.

fevredsuk
05-12-2012, 09:43 PM
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

LifesGreatestGift
05-12-2012, 09:52 PM
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 1336863438 at 1336863438 ---------------

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/showthread.php?t=95637&highlight=style

as it will show the count in the actual style chooser.

fevredsuk
05-12-2012, 09:57 PM
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

LifesGreatestGift
05-12-2012, 09:58 PM
It somewhat works. May need to edit the code a bit, but its a place to start.

--------------- Added 1336863618 at 1336863618 ---------------

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 1336863828 at 1336863828 ---------------

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

fevredsuk
05-12-2012, 10:05 PM
not sure, think i will see about a having a mod made

cheers

fevredsuk
06-18-2012, 09:52 PM
had a fantastic mod made for this which works perfectly

on both my forums, shows i whats going on who using what