Notable Members Tabs Management [Paid] [Deleted]

thanks. just one quick question sorry. the description states

  • Have tabs based on user criteria or database field
how do I create a tab based on database field. I was presuming I could create a tab of richest members based on credits database field

thanks
 
thanks. just one quick question sorry. the description states

  • Have tabs based on user criteria or database field
how do I create a tab based on database field. I was presuming I could create a tab of richest members based on credits database field

thanks

Enter the name of the field in the sort by box, and have no criteria.
 
Thanks. Work perfect for my credits field.

I have a few mods where members can win credits. I sometimes have competitions eg who can win most cash in a week from a set mod.

For this I will use a seperate field to the credits field and give everyone say 1000 to start with.

I have tried to set up a tab for the competition and given mysf 1100 as a test but the list is showing althebtically and not with me at the top having 100 more than everyone else

Why is this,
 
Thanks. Work perfect for my credits field.

I have a few mods where members can win credits. I sometimes have competitions eg who can win most cash in a week from a set mod.

For this I will use a seperate field to the credits field and give everyone say 1000 to start with.

I have tried to set up a tab for the competition and given mysf 1100 as a test but the list is showing althebtically and not with me at the top having 100 more than everyone else

Why is this,

Were there any user criteria set? If criteria are set, it ignores the order by field.

However, that is wrong and I'll be releasing an update later today to fix this misunderstanding (and also add/change some functionality).

Liam
 
Were there any user criteria set? If criteria are set, it ignores the order by field.

However, that is wrong and I'll be releasing an update later today to fix this misunderstanding (and also add/change some functionality).

Liam
Thanks for reply

Nope no criteria set in the above example

However in my credits field I did set criteria to only show certain usergroups and that worked perfect, showed richest first and omitted banned members etc
 
Liam W updated Notable Members Tabs Management with a new update entry:

System Changes

This update introduces a new option: Field Tabs

Field Tabs are basically tabs that are based on a database field, such as most messages, most likes etc.

If the field tab option is checked, then users will be taken from the database and sorted with that field (decending).

Field tabs are subject to the user criteria.

Non-field tabs are just from the user criteria. The order_by clause is used to:

A. Sort the members on the tab
B. Show the number next to the user.

Read the rest of this update entry...
 
I get this now when clicking members tab

Server Error
Undefined variable: users

  1. XenForo_Application::handlePhpError() in LiamW/NotableTabsManagement/Extend/ControllerPublic/Member.php at line 76
  2. LiamW_NotableTabsManagement_Extend_ControllerPublic_Member->actionIndex() in XenForo/FrontController.php at line 347
  3. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
  4. XenForo_FrontController->run() in /home/xxxxxxx/public_html/index.php at line 13
the page loads if i go to http://xxxxxxxx/index.php?members/&type=slugname
 
Last edited:
I get this now when clicking members tab

Server Error
Undefined variable: users

  1. XenForo_Application::handlePhpError() in LiamW/NotableTabsManagement/Extend/ControllerPublic/Member.php at line 76
  2. LiamW_NotableTabsManagement_Extend_ControllerPublic_Member->actionIndex() in XenForo/FrontController.php at line 347
  3. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
  4. XenForo_FrontController->run() in /home/xxxxxxx/public_html/index.php at line 13
the page loads if i go to http://xxxxxxxx/index.php?members/&type=slugname


and the list still isnt sorted numerically
 
the field is part of the xf_user table. I was using the spare sportsbook_cash field. I have just run a query to create a new column at the end of the xf_user table not attached to any addon wit the same result.

everyone has 1000 i have given myself 2500 and im not in the list of notable members, surly i should be top
 
An addon has to add the field into the user model order by criteria,...

no idea what that means lol

thought it just sorted the column lol

btw getting this after last update

Fatal error: Cannot redeclare class XFCP_LiamW_NotableTabsManagement_Extend_ControllerPublic_Member in /home/xxxxxxx/public_html/library/LiamW/NotableTabsManagement/Extend/ControllerPublic/Member.php on line 219
 
It adds the sort part into the fetch method of the model. The column has to be defined in the model though...

Also, for that error, open library/LiamW/NotableTabsManagement/Extend/ControllerPublic/Members.php and remove the block of code at the end of the file.

Liam
 
Back
Top Bottom