Cách thêm Font Awesome vào menu Xenforo

PVS

Super Moderator
Thành viên BQT
Tham gia
28/02/2015
Bài viết
17,142
Được Like
12,745
Để cài đặt Font Awesome . (Bạn cần làm)
Bạn cần phải thêm vào PAGE_CONTAINER. Thêm dưới thẻ <head>
Mã:
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">

Chú Ý : Nhớ Backup Template, Vì có thể lỗi ở một số Forum.
Xong đến phần CODE...

1.png

Mở template: "uix_visitorTabs" Tìm.
Mã:
 <div class="menuColumns secondaryContent">
                <ul class="col1 blockLinksList">
                <xen:hook name="navigation_visitor_tab_links1">
                    <xen:if is="{$canEditProfile}"><li><a href="{xen:link account/personal-details}">{xen:phrase personal_details}</a></li></xen:if>
                    <xen:if is="{$canEditSignature}"><li><a href="{xen:link account/signature}">{xen:phrase signature}</a></li></xen:if>
                    <li><a href="{xen:link account/contact-details}">{xen:phrase contact_details}</a></li>
                    <li><a href="{xen:link account/privacy}">{xen:phrase privacy}</a></li>
                    <li><a href="{xen:link account/preferences}" class="OverlayTrigger">{xen:phrase preferences}</a></li>
                    <li><a href="{xen:link account/alert-preferences}">{xen:phrase alert_preferences}</a></li>
                    <xen:if is="{$canUploadAvatar}"><li><a href="{xen:link account/avatar}" class="OverlayTrigger" data-cacheOverlay="true">{xen:phrase avatar}</a></li></xen:if>
                    <xen:if is="{$xenOptions.facebookAppId} OR {$xenOptions.twitterAppKey} OR {$xenOptions.googleClientId}"><li><a href="{xen:link account/external-accounts}">{xen:phrase external_accounts}</a></li></xen:if>
                    <li><a href="{xen:link account/security}">{xen:phrase password}</a></li>
                </xen:hook>
                </ul>
                <ul class="col2 blockLinksList">
                <xen:hook name="navigation_visitor_tab_links2">
                    <xen:if is="{$xenOptions.enableNewsFeed}"><li><a href="{xen:link account/news-feed}">{xen:phrase your_news_feed}</a></li></xen:if>
                    <li><a href="{xen:link conversations}">{xen:phrase conversations}
                        <strong class="itemCount {xen:if $visitor.conversations_unread, 'alert', 'Zero'}"
                            id="VisitorExtraMenu_ConversationsCounter">
                            <span class="Total">{xen:number $visitor.conversations_unread}</span>
                        </strong></a></li>
                    <li><a href="{xen:link account/alerts}">{xen:phrase alerts}
                        <strong class="itemCount {xen:if $visitor.alerts_unread, 'alert', 'Zero'}"
                            id="VisitorExtraMenu_AlertsCounter">
                            <span class="Total">{xen:number $visitor.alerts_unread}</span>
                        </strong></a></li>
                    <li><a href="{xen:link account/likes}">{xen:phrase likes_youve_received}</a></li>
                    <li><a href="{xen:link search/member, '', 'user_id={$visitor.user_id}'}">{xen:phrase your_content}</a></li>
                    <li><a href="{xen:link account/following}">{xen:phrase people_you_follow}</a></li>
                    <li><a href="{xen:link account/ignored}">{xen:phrase people_you_ignore}</a></li>
                    <xen:if is="{$xenCache.userUpgradeCount}"><li><a href="{xen:link account/upgrades}">{xen:phrase account_upgrades}</a></li></xen:if>
                </xen:hook>
                </ul>
            </div>
            <div class="menuColumns secondaryContent">
                <ul class="col1 blockLinksList">
                    <li>         
                        <form action="{xen:link account/toggle-visibility}" method="post" class="AutoValidator visibilityForm">
                            <label><input type="checkbox" name="visible" value="1" class="SubmitOnChange" {xen:checked $visitor.visible} />
                                {xen:phrase show_online_status}</label>
                            <input type="hidden" name="_xfToken" value="{$visitor.csrf_token_page}" />
                        </form>
                    </li>
                </ul>
                <ul class="col2 blockLinksList">
                    <li><a href="{xen:link logout, '', '_xfToken={$visitor.csrf_token_page}'}" class="LogOut">{xen:phrase log_out}</a></li>
                </ul>
            </div>

Thay thế bằng:
Mã:
<div class="menuColumns secondaryContent">
                <ul class="col1 blockLinksList">
                <xen:hook name="navigation_visitor_tab_links1">
                    <xen:if is="{$canEditProfile}"><li><a href="{xen:link account/personal-details}"><i class="fa fa-

user"></i> {xen:phrase personal_details}</a></li></xen:if>
                    <xen:if is="{$canEditSignature}"><li><a href="{xen:link account/signature}"><i class="fa fa-file-

text"></i> {xen:phrase signature}</a></li></xen:if>
                    <li><a href="{xen:link account/contact-details}"><i class="fa fa-briefcase"></i> {xen:phrase

contact_details}</a></li>
                    <li><a href="{xen:link account/privacy}"><i class="fa fa-unlock-alt"></i> {xen:phrase privacy}</a></li>
                    <li><a href="{xen:link account/preferences}" class="OverlayTrigger"><i class="fa fa-cog"></i>

{xen:phrase preferences}</a></li>
                    <li><a href="{xen:link account/alert-preferences}"><i class="fa fa-bolt"></i> {xen:phrase

alert_preferences}</a></li>
                    <xen:if is="{$canUploadAvatar}"><li><a href="{xen:link account/avatar}" class="OverlayTrigger" data-

cacheOverlay="true"><i class="fa fa-file-image-o"></i> {xen:phrase avatar}</a></li></xen:if>
                    <xen:if is="{$xenOptions.facebookAppId} OR {$xenOptions.twitterAppKey} OR

{$xenOptions.googleClientId}"><li><a href="{xen:link account/external-accounts}"><i class="fa fa-external-link"></i> {xen:phrase

external_accounts}</a></li></xen:if>
                    <li><a href="{xen:link account/security}"><i class="fa fa-eye"></i> {xen:phrase password}</a></li>
                </xen:hook>
                </ul>
                <ul class="col2 blockLinksList">
                <xen:hook name="navigation_visitor_tab_links2">
                    <xen:if is="{$xenOptions.enableNewsFeed}"><li><a href="{xen:link account/news-feed}"><i class="fa fa-

newspaper-o"></i> {xen:phrase your_news_feed}</a></li></xen:if>
                    <li><a href="{xen:link conversations}"><i class="fa fa-users"></i> {xen:phrase conversations}
                        <strong class="itemCount {xen:if $visitor.conversations_unread, 'alert', 'Zero'}"
                            id="VisitorExtraMenu_ConversationsCounter">
                            <span class="Total">{xen:number $visitor.conversations_unread}</span>
                        </strong></a></li>
                    <li><a href="{xen:link account/alerts}"><i class="fa fa-bell"></i> {xen:phrase alerts}
                        <strong class="itemCount {xen:if $visitor.alerts_unread, 'alert', 'Zero'}"
                            id="VisitorExtraMenu_AlertsCounter">
                            <span class="Total">{xen:number $visitor.alerts_unread}</span>
                        </strong></a></li>
                    <li><a href="{xen:link account/likes}"><i class="fa fa-check"></i> {xen:phrase likes_youve_received}

</a></li>
                    <li><a href="{xen:link search/member, '', 'user_id={$visitor.user_id}'}"><i class="fa fa-bookmark"></i>

{xen:phrase your_content}</a></li>
                    <li><a href="{xen:link account/following}"><i class="fa fa-thumbs-up"></i> {xen:phrase

people_you_follow}</a></li>
                    <li><a href="{xen:link account/ignored}"><i class="fa fa-thumbs-down"></i> {xen:phrase

people_you_ignore}</a></li>
                    <xen:if is="{$xenCache.userUpgradeCount}"><li><a href="{xen:link account/upgrades}"><i class="fa fa-cc-

paypal"></i> {xen:phrase account_upgrades}</a></li></xen:if>
                </xen:hook>
                </ul>
            </div>
            <div class="menuColumns secondaryContent">
                <ul class="col1 blockLinksList">
                    <li>         
                        <form action="{xen:link account/toggle-visibility}" method="post" class="AutoValidator

visibilityForm">
                            <label><input type="checkbox" name="visible" value="1" class="SubmitOnChange"

{xen:checked $visitor.visible} />
                                <i class="fa fa-wifi"></i> {xen:phrase show_online_status}</label>
                            <input type="hidden" name="_xfToken" value="{$visitor.csrf_token_page}" />
                        </form>
                    </li>
                </ul>
                <ul class="col2 blockLinksList">
                    <li><a href="{xen:link logout, '', '_xfToken={$visitor.csrf_token_page}'}" class="LogOut"><i class="fa

fa-toggle-on"></i> {xen:phrase log_out}</a></li>
                </ul>
            </div>

2.png

Mở template: "message_user_info" Tìm.
Mã:
<div class="extraUserInfo">
            <xen:contentcheck>
            <xen:hook name="message_user_info_extra" params="{xen:array 'user={$user}', 'isQuickReply={$isQuickReply}'}">
                <xen:if is="@messageShowRegisterDate AND {$user.user_id}">
                    <dl class="pairsJustified">
                        <dt>{xen:phrase joined}:</dt>
                        <dd>{xen:date $user.register_date}</dd>
                    </dl>
                </xen:if>
          
                <xen:if is="@messageShowMessageCount AND {$user.user_id}">
                    <dl class="pairsJustified">
                        <dt>{xen:phrase messages}:</dt>
                        <dd><a href="{xen:link search/member, '', 'user_id={$user.user_id}'}" class="concealed" rel="nofollow">{xen:number $user.message_count}</a></dd>
                    </dl>
                </xen:if>
          
                <xen:if is="@messageShowTotalLikes AND {$user.user_id}">
                    <dl class="pairsJustified">
                        <dt>{xen:phrase likes_received}:</dt>
                        <dd>{xen:number $user.like_count}</dd>
                    </dl>
                </xen:if>
          
                <xen:if is="@messageShowTrophyPoints AND {$user.user_id}">
                    <dl class="pairsJustified">
                        <dt>{xen:phrase trophy_points}:</dt>
                        <dd><a href="{xen:link 'members/trophies', $user}" class="OverlayTrigger concealed">{xen:number $user.trophy_points}</a></dd>
                    </dl>
                </xen:if>

Thay thế bằng:
Mã:
<div class="extraUserInfo">
            <xen:contentcheck>
            <xen:hook name="message_user_info_extra" params="{xen:array 'user={$user}', 'isQuickReply={$isQuickReply}'}">
                <xen:if is="@messageShowRegisterDate AND {$user.user_id}">
                    <dl class="pairsJustified">
                        <dt><i class="fa fa-calendar"></i></dt><dt>{xen:phrase joined}:</dt>
                        <dd>{xen:date $user.register_date}</dd>
                    </dl>
                </xen:if>
          
                <xen:if is="@messageShowMessageCount AND {$user.user_id}">
                    <dl class="pairsJustified">
                        <dt><i class="fa fa-file-text"></i></dt><dt>{xen:phrase messages}:</dt>
                        <dd><a href="{xen:link search/member, '', 'user_id={$user.user_id}'}" class="concealed" rel="nofollow">{xen:number $user.message_count}</a></dd>
                    </dl>
                </xen:if>
          
                <xen:if is="@messageShowTotalLikes AND {$user.user_id}">
                    <dl class="pairsJustified">
                        <dt><i class="fa fa-thumbs-up"></i></dt><dt>{xen:phrase likes_received}:</dt>
                        <dd>{xen:number $user.like_count}</dd>
                    </dl>
                </xen:if>
          
                <xen:if is="@messageShowTrophyPoints AND {$user.user_id}">
                    <dl class="pairsJustified">
                        <dt><i class="fa fa-trophy"></i></dt><dt>{xen:phrase trophy_points}:</dt>
                        <dd><a href="{xen:link 'members/trophies', $user}" class="OverlayTrigger concealed">{xen:number $user.trophy_points}</a></dd>
                    </dl>
                </xen:if>

3.png

Mở template: "forum_list" Tìm.
Mã:
<!-- block: forum_stats -->
        <div class="section">
            <div class="secondaryContent statsList" id="boardStats">
                <h3>{xen:phrase forum_statistics}</h3>
                <div class="pairsJustified">
                    <dl class="discussionCount"><dt>{xen:phrase discussions}:</dt>
                        <dd>{xen:number $boardTotals.discussions}</dd></dl>
                    <dl class="messageCount"><dt>{xen:phrase messages}:</dt>
                        <dd>{xen:number $boardTotals.messages}</dd></dl>
                    <dl class="memberCount"><dt>{xen:phrase members_count}:</dt>
                        <dd>{xen:number $boardTotals.users}</dd></dl>
                    <dl><dt>{xen:phrase latest_member}:</dt>
                        <dd><xen:username user="$boardTotals.latestUser" /></dd></dl>
                    <!-- slot: forum_stats_extra -->
                </div>
            </div>
        </div>
        <!-- end block: forum_stats -->

Thay thế bằng:
Mã:
<!-- block: forum_stats -->
        <div class="section">
            <div class="secondaryContent statsList" id="boardStats">
                <h3>{xen:phrase forum_statistics}</h3>
                <div class="pairsJustified">
                    <dl class="discussionCount"><dt><i class="fa fa-comment"></i></dt><dt>{xen:phrase discussions}:</dt>
                        <dd>{xen:number $boardTotals.discussions}</dd></dl>
                    <dl class="messageCount"><dt><i class="fa fa-comments"></i></dt><dt>{xen:phrase messages}:</dt>
                        <dd>{xen:number $boardTotals.messages}</dd></dl>
                    <dl class="memberCount"><dt><i class="fa fa-users"></i></dt><dt>{xen:phrase members_count}:</dt>
                        <dd>{xen:number $boardTotals.users}</dd></dl>
                    <dl><dt><i class="fa fa-user"></i></dt><dt>{xen:phrase latest_member}:</dt>
                        <dd><xen:username user="$boardTotals.latestUser" /></dd></dl>
                    <!-- slot: forum_stats_extra -->
                </div>
            </div>
        </div>
        <!-- end block: forum_stats -->

4.png


5.png


6.png


7.png

Mở template: "navigation" Tìm.
Mã:
<!-- forums -->
                            <xen:if is="{$tabs.forums}">
                                <li class="navTab forums <xen:if is="@uix_removeTabLinks">{xen:if $tabs.forums.selected, 'selected'} Popup PopupControl PopupClosed<xen:else />{xen:if $tabs.forums.selected, 'selected', 'Popup PopupControl PopupClosed'}</xen:if>">
                          
                                    <a href="{$tabs.forums.href}" class="navLink{xen:if '!@uix_alwaysShowNavDropdownArrow', ' NoPopupGadget'}"{xen:if '!@uix_alwaysShowNavDropdownArrow', ' rel="Menu"'}>{$tabs.forums.title}</a>
                                    <a href="{$tabs.forums.href}" class="SplitCtrl" rel="Menu"></a>
                              
                                    <div class="<xen:if is="@uix_removeTabLinks">Menu JsOnly tabMenu<xen:else />{xen:if {$tabs.forums.selected}, 'tabLinks', 'Menu JsOnly tabMenu'}</xen:if> forumsTabLinks">
                                        <div class="primaryContent menuHeader">
                                            <h3>{$tabs.forums.title}</h3>
                                            <div class="muted">{xen:phrase quick_links}</div>
                                        </div>
                                        <ul class="secondaryContent blockLinksList">
                                        <xen:hook name="navigation_tabs_forums">
                                            <xen:if is="{$visitor.user_id}"><li><a href="{xen:link 'forums/-/mark-read', $forum, 'date={$serverTime}'}" class="OverlayTrigger">{xen:phrase mark_forums_read}</a></li></xen:if>
                                            <xen:if is="{$canSearch}"><li><a href="{xen:link search, '', 'type=post'}">{xen:phrase search_forums}</a></li></xen:if>
                                            <xen:if is="{$visitor.user_id}">
                                                <li><a href="{xen:link 'watched/forums'}">{xen:phrase watched_forums}</a></li>
                                                <li><a href="{xen:link 'watched/threads'}">{xen:phrase watched_threads}</a></li>
                                            </xen:if>
                                            <li><a href="{xen:link 'find-new/posts'}" rel="nofollow">{xen:if $visitor.user_id, {xen:phrase new_posts}, {xen:phrase recent_posts}}</a></li>
                                        </xen:hook>
                                        </ul>
                                    </div>
                                </li>
                            </xen:if>
                      
                      
                            <!-- extra tabs: middle -->
                            <xen:if is="{$extraTabs.middle}">
                            <xen:foreach loop="$extraTabs.middle" key="$extraTabId" value="$extraTab">
                                <xen:if is="{$extraTab.linksTemplate}">
                                    <li class="navTab {$extraTabId} <xen:if is="@uix_removeTabLinks">{xen:if $extraTab.selected, 'selected'} Popup PopupControl PopupClosed<xen:else />{xen:if $extraTab.selected, 'selected', 'Popup PopupControl PopupClosed'}</xen:if>">
                          
                                    <a href="{$extraTab.href}" class="navLink{xen:if '!@uix_alwaysShowNavDropdownArrow', ' NoPopupGadget'}"{xen:if '!@uix_alwaysShowNavDropdownArrow', ' rel="Menu"'}>{$extraTab.title}<xen:if is="{$extraTab.counter}"><strong class="itemCount"><span class="Total">{$extraTab.counter}</span><span class="arrow"></span></strong></xen:if></a>
                                    <a href="{$extraTab.href}" class="SplitCtrl" rel="Menu"></a>
                              
                                    <div class="<xen:if is="@uix_removeTabLinks">Menu JsOnly tabMenu<xen:else />{xen:if {$extraTab.selected}, 'tabLinks', 'Menu JsOnly tabMenu'}</xen:if> {$extraTabId}TabLinks">
                                        <div class="primaryContent menuHeader">
                                            <h3>{$extraTab.title}</h3>
                                            <div class="muted">{xen:phrase quick_links}</div>
                                        </div>
                                        {xen:raw $extraTab.linksTemplate}
                                    </div>
                                </li>
                                <xen:else />
                                    <li class="navTab {$extraTabId} <xen:if is="@uix_removeTabLinks">PopupClosed<xen:else />{xen:if $extraTab.selected, 'selected', 'PopupClosed'}</xen:if>">
                                        <a href="{$extraTab.href}" class="navLink{xen:if '!@uix_alwaysShowNavDropdownArrow', ' NoPopupGadget'}"{xen:if '!@uix_alwaysShowNavDropdownArrow', ' rel="Menu"'}>{$extraTab.title}<xen:if is="{$extraTab.counter}"><strong class="itemCount"><span class="Total">{$extraTab.counter}</span><span class="arrow"></span></strong></xen:if></a>
                                        <xen:if is="!@uix_removeTabLinks"><xen:if is="{$extraTab.selected}"><div class="tabLinks"></div></xen:if></xen:if>
                                    </li>
                                </xen:if>
                            </xen:foreach>
                            </xen:if>
                      
                      
                            <!-- members -->
                            <xen:if is="{$tabs.members}">
                                <li class="navTab members <xen:if is="@uix_removeTabLinks">{xen:if $tabs.members.selected, 'selected'} Popup PopupControl PopupClosed<xen:else />{xen:if $tabs.members.selected, 'selected', 'Popup PopupControl PopupClosed'}</xen:if>">
                          
                                    <a href="{$tabs.members.href}" class="navLink{xen:if '!@uix_alwaysShowNavDropdownArrow', ' NoPopupGadget'}"{xen:if '!@uix_alwaysShowNavDropdownArrow', ' rel="Menu"'}>{$tabs.members.title}</a>
                                    <a href="{$tabs.members.href}" class="SplitCtrl" rel="Menu"></a>
                              
                                    <div class="<xen:if is="@uix_removeTabLinks">Menu JsOnly tabMenu<xen:else />{xen:if {$tabs.members.selected}, 'tabLinks', 'Menu JsOnly tabMenu'}</xen:if> membersTabLinks">
                                        <div class="primaryContent menuHeader">
                                            <h3>{$tabs.members.title}</h3>
                                            <div class="muted">{xen:phrase quick_links}</div>
                                        </div>
                                        <ul class="secondaryContent blockLinksList">
                                        <xen:hook name="navigation_tabs_members">
                                            <li><a href="{xen:link members}">{xen:phrase notable_members}</a></li>
                                            <xen:if is="{$xenOptions.enableMemberList}"><li><a href="{xen:link members/list}">{xen:phrase registered_members}</a></li></xen:if>
                                            <li><a href="{xen:link online}">{xen:phrase current_visitors}</a></li>
                                            <xen:if is="{$xenOptions.enableNewsFeed}"><li><a href="{xen:link recent-activity}">{xen:phrase recent_activity}</a></li></xen:if>
                                            <xen:if is="{$canViewProfilePosts}"><li><a href="{xen:link find-new/profile-posts}">{xen:phrase new_profile_posts}</a></li></xen:if>
                                        </xen:hook>
                                        </ul>
                                    </div>
                                </li>
                            </xen:if>         
                      
                            <!-- extra tabs: end -->

Thay thế bằng:
Mã:
<!-- forums -->
                            <xen:if is="{$tabs.forums}">
                                <li class="navTab forums <xen:if is="@uix_removeTabLinks">{xen:if $tabs.forums.selected, 'selected'} Popup PopupControl PopupClosed<xen:else />{xen:if $tabs.forums.selected, 'selected', 'Popup PopupControl PopupClosed'}</xen:if>">
                          
                                    <a href="{$tabs.forums.href}" class="navLink{xen:if '!@uix_alwaysShowNavDropdownArrow', ' NoPopupGadget'}"{xen:if '!@uix_alwaysShowNavDropdownArrow', ' rel="Menu"'}>{$tabs.forums.title}</a>
                                    <a href="{$tabs.forums.href}" class="SplitCtrl" rel="Menu"></a>
                              
                                    <div class="<xen:if is="@uix_removeTabLinks">Menu JsOnly tabMenu<xen:else />{xen:if {$tabs.forums.selected}, 'tabLinks', 'Menu JsOnly tabMenu'}</xen:if> forumsTabLinks">
                                        <div class="primaryContent menuHeader">
                                            <h3>{$tabs.forums.title}</h3>
                                            <div class="muted">{xen:phrase quick_links}</div>
                                        </div>
                                        <ul class="secondaryContent blockLinksList">
                                        <xen:hook name="navigation_tabs_forums">
                                            <xen:if is="{$visitor.user_id}"><li><a href="{xen:link 'forums/-/mark-read', $forum, 'date={$serverTime}'}" class="OverlayTrigger"><i class="fa fa-pencil"></i> {xen:phrase mark_forums_read}</a></li></xen:if>
                                            <xen:if is="{$canSearch}"><li><a href="{xen:link search, '', 'type=post'}"><i class="fa fa-search"></i> {xen:phrase search_forums}</a></li></xen:if>
                                            <xen:if is="{$visitor.user_id}">
                                                <li><a href="{xen:link 'watched/forums'}"><i class="fa fa-th-list"></i> {xen:phrase watched_forums}</a></li>
                                                <li><a href="{xen:link 'watched/threads'}"><i class="fa fa-list"></i> {xen:phrase watched_threads}</a></li>
                                            </xen:if>
                                            <li><a href="{xen:link 'find-new/posts'}" rel="nofollow"><i class="fa fa-newspaper-o"></i> {xen:if $visitor.user_id, {xen:phrase new_posts}, {xen:phrase recent_posts}}</a></li>
                                        </xen:hook>
                                        </ul>
                                    </div>
                                </li>
                            </xen:if>
                      
                      
                            <!-- extra tabs: middle -->
                            <xen:if is="{$extraTabs.middle}">
                            <xen:foreach loop="$extraTabs.middle" key="$extraTabId" value="$extraTab">
                                <xen:if is="{$extraTab.linksTemplate}">
                                    <li class="navTab {$extraTabId} <xen:if is="@uix_removeTabLinks">{xen:if $extraTab.selected, 'selected'} Popup PopupControl PopupClosed<xen:else />{xen:if $extraTab.selected, 'selected', 'Popup PopupControl PopupClosed'}</xen:if>">
                          
                                    <a href="{$extraTab.href}" class="navLink{xen:if '!@uix_alwaysShowNavDropdownArrow', ' NoPopupGadget'}"{xen:if '!@uix_alwaysShowNavDropdownArrow', ' rel="Menu"'}>{$extraTab.title}<xen:if is="{$extraTab.counter}"><strong class="itemCount"><span class="Total">{$extraTab.counter}</span><span class="arrow"></span></strong></xen:if></a>
                                    <a href="{$extraTab.href}" class="SplitCtrl" rel="Menu"></a>
                              
                                    <div class="<xen:if is="@uix_removeTabLinks">Menu JsOnly tabMenu<xen:else />{xen:if {$extraTab.selected}, 'tabLinks', 'Menu JsOnly tabMenu'}</xen:if> {$extraTabId}TabLinks">
                                        <div class="primaryContent menuHeader">
                                            <h3>{$extraTab.title}</h3>
                                            <div class="muted">{xen:phrase quick_links}</div>
                                        </div>
                                        {xen:raw $extraTab.linksTemplate}
                                    </div>
                                </li>
                                <xen:else />
                                    <li class="navTab {$extraTabId} <xen:if is="@uix_removeTabLinks">PopupClosed<xen:else />{xen:if $extraTab.selected, 'selected', 'PopupClosed'}</xen:if>">
                                        <a href="{$extraTab.href}" class="navLink{xen:if '!@uix_alwaysShowNavDropdownArrow', ' NoPopupGadget'}"{xen:if '!@uix_alwaysShowNavDropdownArrow', ' rel="Menu"'}>{$extraTab.title}<xen:if is="{$extraTab.counter}"><strong class="itemCount"><span class="Total">{$extraTab.counter}</span><span class="arrow"></span></strong></xen:if></a>
                                        <xen:if is="!@uix_removeTabLinks"><xen:if is="{$extraTab.selected}"><div class="tabLinks"></div></xen:if></xen:if>
                                    </li>
                                </xen:if>
                            </xen:foreach>
                            </xen:if>
                      
                      
                            <!-- members -->
                            <xen:if is="{$tabs.members}">
                                <li class="navTab members <xen:if is="@uix_removeTabLinks">{xen:if $tabs.members.selected, 'selected'} Popup PopupControl PopupClosed<xen:else />{xen:if $tabs.members.selected, 'selected', 'Popup PopupControl PopupClosed'}</xen:if>">
                          
                                    <a href="{$tabs.members.href}" class="navLink{xen:if '!@uix_alwaysShowNavDropdownArrow', ' NoPopupGadget'}"{xen:if '!@uix_alwaysShowNavDropdownArrow', ' rel="Menu"'}>{$tabs.members.title}</a>
                                    <a href="{$tabs.members.href}" class="SplitCtrl" rel="Menu"></a>
                              
                                    <div class="<xen:if is="@uix_removeTabLinks">Menu JsOnly tabMenu<xen:else />{xen:if {$tabs.members.selected}, 'tabLinks', 'Menu JsOnly tabMenu'}</xen:if> membersTabLinks">
                                        <div class="primaryContent menuHeader">
                                            <h3>{$tabs.members.title}</h3>
                                            <div class="muted">{xen:phrase quick_links}</div>
                                        </div>
                                        <ul class="secondaryContent blockLinksList">
                                        <xen:hook name="navigation_tabs_members">
                                            <li><a href="{xen:link members}"><i class="fa fa-users"></i> {xen:phrase notable_members}</a></li>
                                            <xen:if is="{$xenOptions.enableMemberList}"><li><a href="{xen:link members/list}">{xen:phrase registered_members}</a></li></xen:if>
                                            <li><a href="{xen:link online}"><i class="fa fa-user"></i> {xen:phrase current_visitors}</a></li>
                                            <xen:if is="{$xenOptions.enableNewsFeed}"><li><a href="{xen:link recent-activity}"><i class="fa fa-bar-chart"></i> {xen:phrase recent_activity}</a></li></xen:if>
                                            <xen:if is="{$canViewProfilePosts}"><li><a href="{xen:link find-new/profile-posts}"><i class="fa fa-bullhorn"></i> {xen:phrase new_profile_posts}</a></li></xen:if>
                                        </xen:hook>
                                        </ul>
                                    </div>
                                </li>
                            </xen:if>         
                      
                            <!-- extra tabs: end -->

8.png

Mở template: "footer" Tìm.
Mã:
<ul class="footerLinks">
                    <xen:hook name="footer_links">
                        <xen:if is="{$homeLink}"><li><a href="{$homeLink}" class="homeLink">{xen:phrase home}</a></li></xen:if>
                        <xen:if is="{$xenOptions.contactUrl.type} === 'default'">
                            <li><a href="{xen:link 'misc/contact'}" class="OverlayTrigger" data-overlayOptions="{&quot;fixed&quot;:false}">{xen:phrase contact_us}</a></li>
                        <xen:elseif is="{$xenOptions.contactUrl.type} === 'custom'" />
                            <li><a href="{$xenOptions.contactUrl.custom}" {xen:if {$xenOptions.contactUrl.overlay}, 'class="OverlayTrigger" data-overlayOptions="{&quot;fixed&quot;:false}"'}>{xen:phrase contact_us}</a></li>
                        </xen:if>
                        <li><a href="{xen:link help}">{xen:phrase help}</a></li>
                    </xen:hook>

Thay thế bằng:
Mã:
<ul class="footerLinks">
                    <xen:hook name="footer_links">
                        <xen:if is="{$homeLink}"><li><a href="{$homeLink}" class="homeLink"><i class="fa fa-home"></i> {xen:phrase home}</a></li></xen:if>
                        <xen:if is="{$xenOptions.contactUrl.type} === 'default'">
                            <li><a href="{xen:link 'misc/contact'}" class="OverlayTrigger" data-overlayOptions="{&quot;fixed&quot;:false}"><i class="fa fa-envelope"></i> {xen:phrase contact_us}</a></li>
                        <xen:elseif is="{$xenOptions.contactUrl.type} === 'custom'" />
                            <li><a href="{$xenOptions.contactUrl.custom}" {xen:if {$xenOptions.contactUrl.overlay}, 'class="OverlayTrigger" data-overlayOptions="{&quot;fixed&quot;:false}"'}>{xen:phrase contact_us}</a></li>
                        </xen:if>
                        <li><a href="{xen:link help}"><i class="fa fa-coffee"></i> {xen:phrase help}</a></li>
                    </xen:hook>

9.png

Mở template: "thread_view" Tìm.
Mã:
<xen:contentcheck>
                            <xen:if is="{$canEditThread}">
                                <li><a href="{xen:link 'threads/edit', $thread}" class="OverlayTrigger">{xen:phrase edit_thread}</a></li>
                            <xen:elseif is="{$canEditTitle}" />
                                <li><a href="{xen:link threads/edit-title, $thread}" class="OverlayTrigger">{xen:phrase edit_title}</a></li>
                            </xen:if>
                            <xen:if is="{$canAddPoll}">
                                <li><a href="{xen:link 'threads/poll/add', $thread}">{xen:phrase add_poll}</a></li>
                            </xen:if>
                            <xen:if is="{$canDeleteThread}">
                                <li><a href="{xen:link 'threads/delete', $thread}" class="OverlayTrigger">{xen:phrase delete_thread}</a></li>
                            </xen:if>
                            <xen:if is="{$canMoveThread}">
                                <li><a href="{xen:link 'threads/move', $thread}" class="OverlayTrigger">{xen:phrase move_thread}</a></li>
                            </xen:if>
                            <xen:if is="{$canReplyBan}">
                                <li><a href="{xen:link 'threads/reply-bans', $thread}" class="OverlayTrigger">{xen:phrase manage_reply_bans}</a></li>
                            </xen:if>
                            <xen:if is="{$canViewModeratorLog}">
                                <li><a href="{xen:link 'threads/moderator-actions', $thread}" class="OverlayTrigger">{xen:phrase moderator_actions}</a></li>
                            </xen:if>

Thay thế bằng:
Mã:
<xen:contentcheck>
                            <xen:if is="{$canEditThread}">
                                <li><a href="{xen:link 'threads/edit', $thread}" class="OverlayTrigger"><i class="fa fa-file-text-o"></i> {xen:phrase edit_thread}</a></li>
                            <xen:elseif is="{$canEditTitle}" />
                                <li><a href="{xen:link threads/edit-title, $thread}" class="OverlayTrigger">{xen:phrase edit_title}</a></li>
                            </xen:if>
                            <xen:if is="{$canAddPoll}">
                                <li><a href="{xen:link 'threads/poll/add', $thread}"><i class="fa fa-tasks"></i> {xen:phrase add_poll}</a></li>
                            </xen:if>
                            <xen:if is="{$canDeleteThread}">
                                <li><a href="{xen:link 'threads/delete', $thread}" class="OverlayTrigger"><i class="fa fa-trash"></i> {xen:phrase delete_thread}</a></li>
                            </xen:if>
                            <xen:if is="{$canMoveThread}">
                                <li><a href="{xen:link 'threads/move', $thread}" class="OverlayTrigger"><i class="fa fa-share"></i> {xen:phrase move_thread}</a></li>
                            </xen:if>
                            <xen:if is="{$canReplyBan}">
                                <li><a href="{xen:link 'threads/reply-bans', $thread}" class="OverlayTrigger"><i class="fa fa-sort"></i> {xen:phrase manage_reply_bans}</a></li>
                            </xen:if>
                            <xen:if is="{$canViewModeratorLog}">
                                <li><a href="{xen:link 'threads/moderator-actions', $thread}" class="OverlayTrigger"><i class="fa fa-tachometer"></i> {xen:phrase moderator_actions}</a></li>
                            </xen:if>

10.png

Mở template:: "conversation_list_popup" Tìm.
Mã:
<div class="secondaryContent noItems">{xen:phrase you_have_no_recent_conversations}</div>

Thay thế bằng:
Mã:
<div class="secondaryContent noItems"><i class="fa fa-comments-o"></i> {xen:phrase you_have_no_recent_conversations}</div>

11.png

Mở template: "account_alerts_popup" Tìm.
Mã:
<div class="secondaryContent noItems">{xen:phrase you_have_no_new_alerts}</div>

Thay thế bằng:
Mã:
<div class="secondaryContent noItems"><i class="fa fa-exclamation-triangle"></i> {xen:phrase you_have_no_new_alerts}</div>


Nguồn: congngheaz.com​
 

ducmu

Corporal
Tham gia
24/06/2015
Bài viết
151
Được Like
36
cái navigation bị lỗi là: The following templates contained errors and were not saved: navigation: 1) navigation - Line 45: Invalid condition expression
 

PVS

Super Moderator
Thành viên BQT
Tham gia
28/02/2015
Bài viết
17,142
Được Like
12,745
chắc bạn xóa thừa code rồi đấy
 

ducmu

Corporal
Tham gia
24/06/2015
Bài viết
151
Được Like
36
chắc bạn xóa thừa code rồi đấy
huhu trong đó nó chỉ có bắt đầu bằng
<!-- forums --> và kết thúc bằng
<!-- extra tabs: end -->
thôi mà. e thay thế nguyên đoạn đó :(
 

ducmu

Corporal
Tham gia
24/06/2015
Bài viết
151
Được Like
36
chắc bạn xóa thừa code rồi đấy
bạn có thể xem lại giúp mình cái navigation bị lỗi là: The following templates contained errors and were not saved: navigation: 1) navigation - Line 45: Invalid condition expression

mình ko xóa thiếu thừa code đâu :(.
trong đó nó chỉ có bắt đầu bằng
<!-- forums --> và kết thúc bằng
<!-- extra tabs: end -->
dễ nhận biết mà
 

NDK

MasterSergeant
Tham gia
16/03/2015
Bài viết
829
Được Like
742
░░░░░░░░░░░░░░░░░░░░░░█████████
░░███████░░░░░░░░░░███▒▒▒▒▒▒▒▒███
░░█▒▒▒▒▒▒█░░░░░░░███▒▒▒▒▒▒▒▒▒▒▒▒▒███
░░░█▒▒▒▒▒▒█░░░░██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██
░░░░█▒▒▒▒▒█░░░██▒▒▒▒▒██▒▒▒▒▒▒██▒▒▒▒▒███
░░░░░█▒▒▒█░░░█▒▒▒▒▒▒████▒▒▒▒████▒▒▒▒▒▒██
░░░█████████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██
░░░█▒▒▒▒▒▒▒▒▒▒▒▒█▒▒▒▒▒▒▒▒▒█▒▒▒▒▒▒▒▒▒▒▒██
░██▒▒▒▒▒▒▒▒▒▒▒▒▒█▒▒▒██▒▒▒▒▒▒▒▒▒▒██▒▒▒▒██
██▒▒▒███████████▒▒▒▒▒██▒▒▒▒▒▒▒▒██▒▒▒▒▒██
█▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒█▒▒▒▒▒▒████████▒▒▒▒▒▒▒██
██▒▒▒▒▒▒▒▒▒▒▒▒▒▒█▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██
░█▒▒▒███████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██
░██▒▒▒▒▒▒▒▒▒▒████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒█
░░████████████░░░█████████████████
 

agrione

Corporal
Tham gia
07/09/2015
Bài viết
119
Được Like
97
Cái này có gì khác biệt mà phải thêm vào vậy
 

kamchatka

MasterCorporal
Tham gia
14/04/2015
Bài viết
248
Được Like
162
không gì khác biệt đâu bạn :d chẳng qua là thêm icon thôi
 
  • Like
Reactions: THB

Top Bottom