Style Statistics for XenForo

Style Statistics for XenForo [Paid] 2.0.2

No permission to buy ($20.00)

Snog

Well-known member
Snog submitted a new resource:

Style Statistics for XenForo 2.x - Monitor how many members are using your styles in XenForo 2.x

Have multiple styles on your site?
Wondering if some of them are just dead weight and not being used?

This add-on tracks the actual styles your active members are using in real time when you allow style choices on your site.

Features
  • Style usage is tracked 'Live' in a rolling time period you define
  • Displays Style Statistics in forum sidebar
  • Shows actual style names in use
  • Displays member's chosen style in extra user info
  • Forbid user groups from seeing the...

Read more about this resource...
 

Snog

Well-known member
I am missing option allowed user , also postbit location ... (y)
Give the user PERMISSION to view the statistics via the XF permission system.
styleperms.png

Postbit location is now fixed at the bottom of extra user info.
 
Last edited:

Nirjonadda

Well-known member
Give the user PERMISSION to view the statistics via the XF permission system.

Postbit location is now fixed at the bottom of extra user info.

Getting error in home page after upgrade.

Code:
LogicException: Unknown relation StyleStats accessed on xf_user in src/XF/Mvc/Entity/Finder.php at line 630



    XF\Mvc\Entity\Finder->join() in src/XF/Mvc/Entity/Finder.php at line 567

    XF\Mvc\Entity\Finder->with() in src/XF/Mvc/Entity/Manager.php at line 147

    XF\Mvc\Entity\Manager->find() in src/XF/Pub/Controller/Thread.php at line 1254

    XF\Pub\Controller\Thread->assertViewableThread() in src/addons/ThemeHouse/QAForums/XF/Pub/Controller/Thread.php at line 12

    ThemeHouse\QAForums\XF\Pub\Controller\Thread->actionIndex() in src/XF/Mvc/Dispatcher.php at line 249

    XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 88

    XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 41

    XF\Mvc\Dispatcher->run() in src/XF/App.php at line 1879

    XF\App->run() in src/XF.php at line 328

    XF::runApp() in index.php at line 13
 

Snog

Well-known member
The above problem was due to a mistake on my part when the option to show a user's style in extra user info was disabled.

I've corrected the problem as a hot fix to the existing version that people can download.
 

Nirjonadda

Well-known member
@Snog No way can add ability to view all users using a style? Please can you plan adding a dedicated page for showing the user info without the popup? So we can know who user using what style?

Example for the dedicated page link:

2mFBwtLqSjmkvCIg3NWQdQ.png
 

Snog

Well-known member
@Snog No way can add ability to view all users using a style? Please can you plan adding a dedicated page for showing the user info without the popup? So we can know who user using what style?

Example for the dedicated page link:

2mFBwtLqSjmkvCIg3NWQdQ.png
You've already suggested that on my site. There's no need to do it here too.

I don't plan on adding that at this time.
 

Nirjonadda

Well-known member
@Snog Getting Server error log about ErrorException: [E_NOTICE] Undefined index: count src/addons/Snog/StyleStats/XF/Entity/User.php:29 and ErrorException: [E_NOTICE] Undefined index: count src/addons/Snog/StyleStats/XF/Entity/User.php:28

Code:
ErrorException: [E_NOTICE] Undefined index: count src/addons/Snog/StyleStats/XF/Entity/User.php:29

Generated by: Nirjon Jan 12, 2018 at 2:02 AM

Stack trace

#0 src/addons/Snog/StyleStats/XF/Entity/User.php(29): XF::handlePhpError(8, '[E_NOTICE] Unde...', '/home/nadda/pub...', 29, Array)
#1 src/XF/Mvc/Entity/Entity.php(1137): Snog\StyleStats\XF\Entity\User->_postSave()
#2 src/XF/Pub/Controller/Misc.php(153): XF\Mvc\Entity\Entity->save()
#3 src/XF/Mvc/Dispatcher.php(249): XF\Pub\Controller\Misc->actionStyle(Object(XF\Mvc\ParameterBag))
#4 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:Misc', 'Style', 'html', Object(XF\Mvc\ParameterBag), '', Object(XF\Pub\Controller\Misc), NULL)
#5 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#6 src/XF/App.php(1880): XF\Mvc\Dispatcher->run()
#7 src/XF.php(328): XF\App->run()
#8 index.php(13): XF::runApp('XF\\Pub\\App')
#9 {main}

Request state

array(4) {
  ["url"] => string(119) "/misc/style?style_id=26&_xfRedirect=https%3A%2F%2Fwww.mysite.com%2F&t=1515700925%2C8e37feac9d30beae4e426c731d6be950"
  ["referrer"] => string(27) "/"
  ["_GET"] => array(3) {
    ["style_id"] => string(2) "26"
    ["_xfRedirect"] => string(27) "/"
    ["t"] => string(43) "1515700925,8e37feac9d30beae4e426c731d6be950"
  }
  ["_POST"] => array(0) {
  }
}
 

Snog

Well-known member
@Snog Getting Server error log about ErrorException: [E_NOTICE] Undefined index: count src/addons/Snog/StyleStats/XF/Entity/User.php:29 and ErrorException: [E_NOTICE] Undefined index: count src/addons/Snog/StyleStats/XF/Entity/User.php:28

Code:
ErrorException: [E_NOTICE] Undefined index: count src/addons/Snog/StyleStats/XF/Entity/User.php:29

Generated by: Nirjon Jan 12, 2018 at 2:02 AM

Stack trace

#0 src/addons/Snog/StyleStats/XF/Entity/User.php(29): XF::handlePhpError(8, '[E_NOTICE] Unde...', '/home/nadda/pub...', 29, Array)
#1 src/XF/Mvc/Entity/Entity.php(1137): Snog\StyleStats\XF\Entity\User->_postSave()
#2 src/XF/Pub/Controller/Misc.php(153): XF\Mvc\Entity\Entity->save()
#3 src/XF/Mvc/Dispatcher.php(249): XF\Pub\Controller\Misc->actionStyle(Object(XF\Mvc\ParameterBag))
#4 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:Misc', 'Style', 'html', Object(XF\Mvc\ParameterBag), '', Object(XF\Pub\Controller\Misc), NULL)
#5 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#6 src/XF/App.php(1880): XF\Mvc\Dispatcher->run()
#7 src/XF.php(328): XF\App->run()
#8 index.php(13): XF::runApp('XF\\Pub\\App')
#9 {main}

Request state

array(4) {
  ["url"] => string(119) "/misc/style?style_id=26&_xfRedirect=https%3A%2F%2Fwww.mysite.com%2F&t=1515700925%2C8e37feac9d30beae4e426c731d6be950"
  ["referrer"] => string(27) "/"
  ["_GET"] => array(3) {
    ["style_id"] => string(2) "26"
    ["_xfRedirect"] => string(27) "/"
    ["t"] => string(43) "1515700925,8e37feac9d30beae4e426c731d6be950"
  }
  ["_POST"] => array(0) {
  }
}
The error has to do with a problem with caching on your server. Clear your server cache.
 
Last edited:

Snog

Well-known member
I am using Xenforo File system cache with src/config.php. So how to Clear cache?
That would be a question to ask XenForo.

Best I can suggest is to disable caching entirely and see if the error continues.

If it does, then I'll need the exact steps to recreate the error because what the error is saying should never happen unless something (like a cache) is corrupted.
 

Snog

Well-known member
@Snog Why user count more then total user? We have total member 443 but style are using 602.

View attachment 170921
Do you have any users waiting confirmation in the past 90 days?

Also, do you have any banned users in the past 90 days?

If you answer 'Yes' to any of those, the users active will reduce itself when the 90 day period refreshes if the user has not been active in that time period.

EDIT: XenForo does not count users that have been banned or are not yet valid in the member count (file: XF\Finder\User.php Function: isValidUser). The add-on counts all registered users, whether valid or banned or not because they HAVE been active in the past 90 days.
 
Last edited:

Snog

Well-known member
Hey

Just wanted to check. So i can restrict a certain style to certain groups?
No, this add-on only gives real time statistics about the number of people using a particular style and can show the style a user is using in a user's extra user info.
 

Snog

Well-known member
Snog updated Style Statistics for XenForo 2.x with a new update entry:

Style Statistics for XenForo 2.x Update 2.0.1

An update to Advanced Forms for XenForo 2.x has been released. Those that have purchased this add-on, please log into your account on my site to download this update.
  • Fix - Error when "View user style in extra user info" is not checked
  • Change - Better accounting of users using an unselectable style during installation
  • Change - Now only counts valid users

Read the rest of this update entry...
 

Ozzy47

Well-known member
Due to the tragedy everyone in the world is facing, this product is reduced by 20%. The price is updated and there is no need for a coupon.
 
Top