Abraham54 Well-known member Feb 16, 2022 #1 I want a widget specifically for one stylegroup. Is this possible and when yes - how to do that?
Solution P P Paul B Feb 17, 2022 That's not valid syntax. Use this for multiple styles: Code: in_array($xf.style.style_id, [2,4,8])
P Paul B XenForo moderator Staff member Feb 16, 2022 #2 Put $xf.style.style_id == 2 in the display condition. Change the style ID to suit. Upvote -1 Downvote
Abraham54 Well-known member Feb 16, 2022 #3 Thank you Brogan, for me, you are a real wizard! Upvote 0 Downvote
Abraham54 Well-known member Feb 17, 2022 #4 Hello Brogan, the new widget displays itself in all styles. What did I wrong? Upvote 0 Downvote
P Paul B XenForo moderator Staff member Feb 17, 2022 #5 That's not valid syntax. Use this for multiple styles: Code: in_array($xf.style.style_id, [2,4,8]) Upvote 1 Downvote Solution
Abraham54 Well-known member Feb 17, 2022 #6 Thanks Brogan, that is the solution; works now wonderful. Upvote 0 Downvote