1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Best way to prune vB usergroups before an import?

Discussion in 'XenForo Questions and Support' started by melbo, Jan 26, 2011.

  1. melbo

    melbo Well-Known Member

    Been really playing with my Usergroups and permissions in my latest test import. I have a couple of Usergroups that were set up solely to 'stack' some user titles: Founding Member and Forum Leader as an example.

    Since I'm not currently able to 'stack these user titles, should I remove these Usergroups before my import? Is there any other way I can denote a member as being, say, a Moderator, a Founding Member as well as a Site Supporter?

    tracy.jpg
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    It looks like you are using ranks in that screenshot. There is no such feature in xenForo. But you can accomplish the same thing with a template edit if you want to get into the code:

    Admin CP -> Appearance -> Templates -> message_user_info

    For example, add this code:

    Code:
    			<xen:if is="{xen:helper ismemberof, $user, 4}">
    				<em class="userTitle" itemprop="title">Mod</em>
    			</xen:if>
    			<xen:if is="{xen:helper ismemberof, $user, 3}">
    				<em class="userTitle" itemprop="title">Admin</em>
    			</xen:if>
    
    Like so:

    Code:
    <xen:if is="!{$isQuickReply}">
    	<xen:hook name="message_user_info_text" params="{xen:array 'user={$user}'}">
    		<h3 class="userText">
    			<xen:username user="$user" itemprop="name" rich="true" />
    			<xen:if hascontent="true"><em class="userTitle" itemprop="title"><xen:contentcheck>{xen:helper userTitle, $user}</xen:contentcheck></em></xen:if>
    
    			<xen:if is="{xen:helper ismemberof, $user, 4}">
    				<em class="userTitle" itemprop="title">Mod</em>
    			</xen:if>
    			<xen:if is="{xen:helper ismemberof, $user, 3}">
    				<em class="userTitle" itemprop="title">Admin</em>
    			</xen:if>
    
    			<!-- slot: message_user_info_text -->
    		</h3>
    	</xen:hook>
    
    You just need to specify usergroupids in the conditions.

    You might also be interested in this:

    http://xenforo.com/community/threads/user-ranks-in-css-no-images-required.7731/
     
  3. melbo

    melbo Well-Known Member

    Great. Thanks!
     

Share This Page