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

Show signatures of some user groups to guests

Discussion in 'XenForo Questions and Support' started by HenrikHansen, Aug 13, 2012.

  1. HenrikHansen

    HenrikHansen Well-Known Member

    Show signatures of some user groups to guests, possible?

    Fx, normal users: signatures not shown to guests
    premium users: signatures shown to guests
  2. snoopy5

    snoopy5 Well-Known Member

    that would be an interesting feature...
  3. Chris D

    Chris D XenForo Developer Staff Member

    Hmm, it would be interesting.

    Ultimately, what would the benefit be?

    Is this so links in their signatures would be followed by search engines? If so I have a solution for that.
  4. snoopy5

    snoopy5 Well-Known Member

    Could be used for promoting premium usergroups with postings of moderators, but visible only to non-premium usergroups. A kind of adsense for guests :)
    HenrikHansen likes this.
  5. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    This should do it:

    Admin CP -> Appearance -> Templates -> message

    Add the red code:

    		<xen:if is="{$visitor.content_show_signature} && {$message.signature}">
    		<xen:if is="{$visitor.user_id} OR {xen:helper ismemberof, $message, 4}">
    			<div class="baseHtml signature ugc{xen:if $message.isIgnored, ' ignored'}"><aside>{xen:raw $message.signatureHtml}</aside></div>
    You need to specify the group_id of the privileged group.
    Shelley, MsJacquiiC and HenrikHansen like this.
  6. snoopy5

    snoopy5 Well-Known Member

    cool, I will try that one later... Thanks
  7. HenrikHansen

    HenrikHansen Well-Known Member

    Chris, the benefit would be to make some benefits to premium users, fx above 100 posts, to make their signature shown,
    even if makes some SEO noise. I guess that would be smaller that if signature is shown for all.
  8. MsJacquiiC

    MsJacquiiC Well-Known Member

    I'm still in the process of learning XF conditionals... So thanks for this share Jake :)
    Quick question - can this conditonal be 'expanded' to include more than one usergroup like:

    <xen:if is="{$visitor.user_id} OR {xen:helper ismemberof, $message, 3,4,5}">

    HenrikHansen likes this.
  9. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    That's correct.
    MsJacquiiC likes this.
  10. Stuart Wright

    Stuart Wright Well-Known Member

    I have a question about showing signatures of certain usergroups to guests. Will the extra noise of some signatures in the thread_view page be detrimental to our search engine rankings?

Share This Page