Pete T Posted August 21, 2011 Share Posted August 21, 2011 File Name: [IF] Number of Users per Skin File Submitter: Pete T File Submitted: 21 Aug 2011 File Category: Integration Supported Versions: IP.Board 3.3.x, IP.Board 3.4.x This hook will show how many users are using each skin. Compatibility: IP.Board 3.4.x IP.Board 3.3.xNote: No file edit required here to download this file AndyF 1 Link to comment Share on other sites More sharing options...
xBeccax Posted August 21, 2011 Share Posted August 21, 2011 I have a question about this. My default theme only lists "29" users, which I guess means 29 people specifically use this skin by choice, however, I have almost 3300 members on my forums and it doesn't pick up all of the people that just left it at the default skin. Link to comment Share on other sites More sharing options...
broni Posted August 21, 2011 Share Posted August 21, 2011 Finally! Thank you :) Link to comment Share on other sites More sharing options...
Adriano Faria Posted August 21, 2011 Share Posted August 21, 2011 My default theme only lists "29" users, which I guess means 29 people specifically use this skin by choice, however, I have almost 3300 members on my forums and it doesn't pick up all of the people that just left it at the default skin. I don't have too many data to show 'cause I didn't updated my live board yet. But here is the numbers used on screenshot of this hook: 32 members. Only 1, and that's me, are using the skin (with correct ID). Other user is using ID = 0 and 23 users are showing NULL on members table. See the next screenshot: Those 23 + those 2 with correct id and id = 0 are listed as using default skin (23+1+1=25, just like in screenshot from this hook). It works properly for me... at least with those number of users. Link to comment Share on other sites More sharing options...
broni Posted August 21, 2011 Share Posted August 21, 2011 It works fine on my board as well... Adriano Faria 1 Link to comment Share on other sites More sharing options...
Adriano Faria Posted August 21, 2011 Share Posted August 21, 2011 It works fine on my board as well... Tks! Link to comment Share on other sites More sharing options...
broni Posted August 21, 2011 Share Posted August 21, 2011 You know which promised hook I need too....LOL Link to comment Share on other sites More sharing options...
xBeccax Posted August 22, 2011 Share Posted August 22, 2011 Here is a screenshot of my board:" alt="" class="ipsImage" width="1000" height="600"> I have looked at this in google chrome and mozilla and both are showing this. Thank you. Link to comment Share on other sites More sharing options...
demoneyezer Posted August 22, 2011 Share Posted August 22, 2011 Thanks a lot ! :thumbsup: Link to comment Share on other sites More sharing options...
Funnykat Posted August 29, 2011 Share Posted August 29, 2011 I have a question about this. My default theme only lists "29" users, which I guess means 29 people specifically use this skin by choice, however, I have almost 3300 members on my forums and it doesn't pick up all of the people that just left it at the default skin. I"m having the same issue too Link to comment Share on other sites More sharing options...
Richard.C Posted January 6, 2012 Share Posted January 6, 2012 I'm having the same problem, we have 7126 registered users but only 18 listed as using a skin. I know its not an issue with this mod (persay) as it reports the information from the database, however is there a db query we can run to re-assign all users to the default skin, or a specific skin number? Link to comment Share on other sites More sharing options...
aStaircase Posted September 9, 2012 Share Posted September 9, 2012 Awesome work on the hook! I really needed something like this, so you've saved me a whole world of trouble. Would it be possible to have the count of a specific theme id display on something like the globalTemplate? Link to comment Share on other sites More sharing options...
TCWT Posted November 21, 2012 Share Posted November 21, 2012 My default skins shows only 42 using while there are over 27,000 members. Please fix. Link to comment Share on other sites More sharing options...
TCWT Posted December 19, 2012 Share Posted December 19, 2012 Is this mod still supported? I really want to use this. Link to comment Share on other sites More sharing options...
Cabola Posted April 13, 2013 Share Posted April 13, 2013 I'm having the same issue on 3.4.3, I'm upgrading to 3.4.4 this weekend so will see if it's still buggy then. Link to comment Share on other sites More sharing options...
broni Posted April 13, 2013 Share Posted April 13, 2013 It works fine on 3.4.4 Link to comment Share on other sites More sharing options...
Cabola Posted April 13, 2013 Share Posted April 13, 2013 Not working for me either, I have 583 members and only 2 people use the IP Board skin yet it says only 32 are using the default skin. I've recached, reinstalled etc. after upgrading to 3.4.4 but still shows the same info as it did before upgrade which is what I said above. :/ Link to comment Share on other sites More sharing options...
Adriano Faria Posted April 13, 2013 Share Posted April 13, 2013 It won't be updated. If any other modder wants to take it, go ahead. Link to comment Share on other sites More sharing options...
Cabola Posted April 13, 2013 Share Posted April 13, 2013 I have found the culprit of this issue with not counting people that use the default without having changed to it. In the xml file on line 58 you'll see this: if ( $data['set_is_default'] == 1 AND $data['set_output_format'] == 'html' and $data['set_key'] == 'default' ) it's the last one "$data['set_key'] == 'default'" because the default skin set key is not changed by IPB when you set a different skin as default. What is changed then is "$data['set_is_default']" which get changed to "1". The key will always remain the same and the IP Board skin will always have that key set as default. So all you have to do is remove the last one and make line 58 look like this: if ( $data['set_is_default'] == 1 AND $data['set_output_format'] == 'html' ) save the xml file and re-import it and your skin counter will now work as intended! TCWT 1 Link to comment Share on other sites More sharing options...
TCWT Posted April 19, 2013 Share Posted April 19, 2013 I have found the culprit of this issue with not counting people that use the default without having changed to it. In the xml file on line 58 you'll see this: if ( $data['set_is_default'] == 1 AND $data['set_output_format'] == 'html' and $data['set_key'] == 'default' ) it's the last one "$data['set_key'] == 'default'" because the default skin set key is not changed by IPB when you set a different skin as default. What is changed then is "$data['set_is_default']" which get changed to "1". The key will always remain the same and the IP Board skin will always have that key set as default. So all you have to do is remove the last one and make line 58 look like this: if ( $data['set_is_default'] == 1 AND $data['set_output_format'] == 'html' ) save the xml file and re-import it and your skin counter will now work as intended! Thanks, this worked. :) Link to comment Share on other sites More sharing options...
Aldro Posted September 29, 2020 Share Posted September 29, 2020 (edited) @Pete T Any chance of this being updated to 4.5? I mean it still kind of works but sometimes I have to manually run the Nups task. Edited September 29, 2020 by Aldro Link to comment Share on other sites More sharing options...
Recommended Posts