show only user or usergroup threads on sidebar

xssxscr

Active member
Registered
Joined
Feb 11, 2024
Messages
28
Points
3

Reputation:

hi, i want to show only specific user or usergroup threads on sidebar but didn't find this option in appearance > widget
is the any addon to this ?
 

Snister2

Active member
Registered
Joined
Jan 6, 2023
Messages
36
Points
18

Reputation:

hi, i want to show only specific user or usergroup threads on sidebar but didn't find this option in appearance > widget
is the any addon to this ?
xssxscrGoto widget then add this code in display condition
Code:
 $xf.visitor.isMemberOf(3)
group id (3) for only admin can view but if you want ad more groups use this

Code:
$xf.visitor.isMemberOf([1, 2, 3, 4, 5])
replace the id for specific group
 

xssxscr

Active member
Registered
Joined
Feb 11, 2024
Messages
28
Points
3

Reputation:

Goto widget then add this code in display condition
Code:
 $xf.visitor.isMemberOf(3)
group id (3) for only admin can view but if you want ad more groups use this

Code:
$xf.visitor.isMemberOf([1, 2, 3, 4, 5])
replace the id for specific group
Snister2i just want to show only threads that are posted by a specific user group or users on sidebar
 

Snister2

Active member
Registered
Joined
Jan 6, 2023
Messages
36
Points
18

Reputation:

i just want to show only threads that are posted by a specific user group or users on sidebar
xssxscrDo you mean is specific node? my understanding is that you only want to show the activity thread in the widget is to the group you want to open it so use that condition
 

xssxscr

Active member
Registered
Joined
Feb 11, 2024
Messages
28
Points
3

Reputation:

Do you mean is specific node? my understanding is that you only want to show the activity thread in the widget is to the group you want to open it so use that condition
Snister2only show threads posted by specific user groups or users
 

xssxscr

Active member
Registered
Joined
Feb 11, 2024
Messages
28
Points
3

Reputation:

Goto widget then add this code in display condition
Code:
 $xf.visitor.isMemberOf(3)
group id (3) for only admin can view but if you want ad more groups use this

Code:
$xf.visitor.isMemberOf([1, 2, 3, 4, 5])
replace the id for specific group
Snister2ex. i want to show only admin posts on sidebar
ex. i want to show only few users that i choose
 
View previous replies…

Snister2

Active member
Registered
Joined
Jan 6, 2023
Messages
36
Points
18

Reputation:

ex. i want to show only admin posts on sidebar
ex. i want to show only few users that i choose
xssxscrThe is required custom development, if your plan to make a paid usergroup like VIP membership I recommend use private node forum for that.
 

Snister2

Active member
Registered
Joined
Jan 6, 2023
Messages
36
Points
18

Reputation:

no VIP but only i want to show verified (trusted) trusted groups on sidebar
xssxscruse a widget sidebar tab threads for only trusted member group but is required a node permission for only trusted member, you don't need use addon for that,
 

xssxscr

Active member
Registered
Joined
Feb 11, 2024
Messages
28
Points
3

Reputation:

use a widget sidebar tab threads for only trusted member group but is required a node permission for only trusted member, you don't need use addon for that,
Snister2node permissions for only trusted members doesn't work for me because i need to give permission to all users to post :(
 

Splicho

Emudevs.gg Owner
Staff member
Moderator
Collaborate
Registered
Joined
Jan 21, 2022
Messages
600
Points
103

Reputation:

Probably needs a custom addon, if you want to show threads from specific users.
 

xssxscr

Active member
Registered
Joined
Feb 11, 2024
Messages
28
Points
3

Reputation:

Probably needs a custom addon, if you want to show threads from specific users.
Splichothanks, if i want to show threads from specific
"user group" then i need addon for it?
 
Top