NURV Active member Mar 12, 2015 #1 How would I run a specific block of custom PHP code for certain usergroup ID's only? What would be the best way to achieve this?
How would I run a specific block of custom PHP code for certain usergroup ID's only? What would be the best way to achieve this?
P Paul B XenForo moderator Staff member Mar 12, 2015 #2 Using xen:callback with a usergroup id conditional statement should do it. Upvote 0 Downvote
NURV Active member Mar 12, 2015 #3 Is there a documentation thread that shows the proper method and place within the admin panel to do this? It's my first day using the software, so forgive me if this is a basic question. Upvote 0 Downvote
Is there a documentation thread that shows the proper method and place within the admin panel to do this? It's my first day using the software, so forgive me if this is a basic question.
P Paul B XenForo moderator Staff member Mar 13, 2015 #4 The link in my signature has a guide to conditional statements: Conditional Statements The callback tag is explained here: https://xenforo.com/community/threads/more-assorted-things.50098/ Depending on where you want the code to run, you can either add it to a specific template, or the main PAGE_CONTAINER template. Upvote 0 Downvote
The link in my signature has a guide to conditional statements: Conditional Statements The callback tag is explained here: https://xenforo.com/community/threads/more-assorted-things.50098/ Depending on where you want the code to run, you can either add it to a specific template, or the main PAGE_CONTAINER template.