XenForo Rich Username Styles [Tutorial] !!

XenForo

Administrative
  • conversation_list_macros
  • change this
PHP:
<ul class="structItem-parts">
                    <li>
                        <ul class="listInline listInline--comma listInline--selfInline">
                            <li><xf:username user="$userConv.Master.Starter" defaultname="{$userConv.Master.username}" title="{{ phrase('conversation_starter') }}"/></li><xf:trim>
                            </xf:trim><xf:foreach loop="$userConv.Master.recipients" value="$recipient" if="{$recipient.user_id} != {$userConv.Master.user_id}"><xf:trim>
                                <li><xf:username user="{$recipient}" defaultname="{{ phrase('unknown_member') }}"/></li>
                            </xf:trim></xf:foreach>
                        </ul>
                    </li>
                    <li class="structItem-startDate"><a href="{{ link('conversations', $userConv) }}" rel="nofollow"><xf:date time="{$userConv.Master.start_date}" /></a></li>
                </ul>
  • to
PHP:
<ul class="structItem-parts">
                    <li>
                        <ul class="listInline listInline--comma listInline--selfInline">
                            <li><xf:username user="$userConv.Master.Starter" defaultname="{$userConv.Master.username}" title="{{ phrase('conversation_starter') }}" rich="true"/></li><xf:trim>
                            </xf:trim><xf:foreach loop="$userConv.Master.recipients" value="$recipient" if="{$recipient.user_id} != {$userConv.Master.user_id}" rich="true"><xf:trim>
                                <li><xf:username user="{$recipient}" defaultname="{{ phrase('unknown_member') }}" rich="true"/></li>
                            </xf:trim></xf:foreach>
                        </ul>
                    </li>
                    <li class="structItem-startDate"><a href="{{ link('conversations', $userConv) }}" rel="nofollow"><xf:date time="{$userConv.Master.start_date}" /></a></li>
                </ul>

Untitled-1.png

Big Thanks @Marks-Man
 

XenForo

Administrative
Widget thread list
  • thread_list_macros
Replace with
PHP:
<xf:username user="{$thread.LastPoster}" defaultname="{$thread.last_post_username}" />
  • TO :
PHP:
<xf:username user="{$thread.LastPoster}" defaultname="{$thread.last_post_username}" rich="true" />

Untitled-3.png

Big Thanks @Marks-Man
 
  • Tags
    rich username styles xenforo rich username styles
  • Back
    Top Bottom