Quote:
Originally Posted by kh99
My fault, there's a missing ')' on the query line so it should be
PHP Code:
$users = $vbulletin->db->query_read("SELECT username FROM ".TABLE_PREFIX."user
WHERE usergroupid = $groupid OR FIND_IN_SET($groupid, membergroupids)");
also, you want to move your $templater->register('str', $str) down to where the other $templater->register() lines are.
|
Worked fabulously! Thank you!
Lastly, instead of seperating these users with commas , how would I go about doing so with line breaks rather than ' , ' ? I also attempted to add a conditional to the template to only display the str output to certain usergroups, but it was unsuccessful. Would the condition need to be done in the PHP file rather than in the template?
Thanks again for all your help