xpl0iter Active member Oct 21, 2012 #1 I am posting something to the database via an addon. I would like to get the information about who posted it. So can anyone help me on this?
I am posting something to the database via an addon. I would like to get the information about who posted it. So can anyone help me on this?
J James Well-known member Oct 21, 2012 #2 Just check the usergroup? XenForo_Model_User -> isMemberOfUserGroup($user, $userGroupIds)
xpl0iter Active member Oct 22, 2012 #3 I am sorry james I am not really good at this. So if you can elaborate this a little bit more it would be really helpful. BTW do I get the name of the person who posted it by your method?
I am sorry james I am not really good at this. So if you can elaborate this a little bit more it would be really helpful. BTW do I get the name of the person who posted it by your method?
Daniel 'RTRD' Well-known member Oct 30, 2012 #4 Code: <xen:if is="{xen:helper ismemberof, $user, 3}"> Content here </xen:if> 3 is the usergroupid for Administrators
Code: <xen:if is="{xen:helper ismemberof, $user, 3}"> Content here </xen:if> 3 is the usergroupid for Administrators
xpl0iter Active member Oct 31, 2012 #5 I have already done it with that user instance stuff in xenforo! This is the addon I was trying to create at the time of asking this question: http://xenforo.com/community/resources/webgurubb-com-admin-notes-addon.1172/
I have already done it with that user instance stuff in xenforo! This is the addon I was trying to create at the time of asking this question: http://xenforo.com/community/resources/webgurubb-com-admin-notes-addon.1172/