nrep Well-known member Sep 14, 2013 #1 I'm trying to get "xen:helper username" working when all I have is a UserID string (set as a xenoption in the admin panel). This doesn't work, but is there a way around this? Code: {xen:helper username, {$xenOptions.customuserid}}
I'm trying to get "xen:helper username" working when all I have is a UserID string (set as a xenoption in the admin panel). This doesn't work, but is there a way around this? Code: {xen:helper username, {$xenOptions.customuserid}}
Chris D XenForo developer Staff member Sep 14, 2013 #2 The <xen:username or {xen:helper username or {xen:username or whatever other variations of it, all require a user_id AND username to work.
The <xen:username or {xen:helper username or {xen:username or whatever other variations of it, all require a user_id AND username to work.
nrep Well-known member Sep 15, 2013 #3 Chris Deeming said: The <xen:username or {xen:helper username or {xen:username or whatever other variations of it, all require a user_id AND username to work. Click to expand... Cheers Chris, I'll add another option field for that. What would be the most basic usage of that xen:helper with a userid and username variable? Thanks for your help on XenForo - you've helped a lot of coding newbies like me! It is very much appreciated!
Chris Deeming said: The <xen:username or {xen:helper username or {xen:username or whatever other variations of it, all require a user_id AND username to work. Click to expand... Cheers Chris, I'll add another option field for that. What would be the most basic usage of that xen:helper with a userid and username variable? Thanks for your help on XenForo - you've helped a lot of coding newbies like me! It is very much appreciated!
Chris D XenForo developer Staff member Sep 15, 2013 #4 It would be something like: {xen:helper username, {xen:array 'user_id={$xenOptions.customuserid}', 'username={$xenOptions.customusername}'}} I haven't tested it... but that should work.
It would be something like: {xen:helper username, {xen:array 'user_id={$xenOptions.customuserid}', 'username={$xenOptions.customusername}'}} I haven't tested it... but that should work.
nrep Well-known member Sep 15, 2013 #5 Just added it to the template and it works perfectly! Thanks again .