PDA

View Full Version : Xóa what's new trên VBB



ShineGhost
07-03-14, 10:10 PM
Xóa What's new không cần đến MOD, sẽ giúp diễn đàn nhanh hơn, demo IT-CNTT
Anh em vào admincp >> Style Manager >> chọn skin >> Navigation / Breadcrumb Templates >> navbar
Đối với 4.1.X tìm và xóa
Code


<vb:if condition="!$vboptions['selectednavtab'] AND THIS_SCRIPT == 'search'">


<vb:if condition="$show['member']"> <li class="selected"><a class="navtab" href="search.php?{vb:raw session.sessionurl}do=getnew&amp;contenttype=vBForum_P ost" accesskey="2">{vb:rawphrase getnew_tab}</a> <ul class="floatcontainer"> <li><a href="search.php?{vb:raw session.sessionurl}do=getnew&amp;contenttype=vBForum_P ost">{vb:rawphrase new_posts_nav}</a></li> <li><a href="search.php?{vb:raw session.sessionurl}do=getnew&amp;contenttype=vBForum_S ocialGroupMessage">{vb:rawphrase new_group_messages_nav}</a></li> <li><a href="search.php?{vb:raw session.sessionurl}do=getnew&amp;contenttype=vBForum_E vent">{vb:rawphrase new_events_nav}</a></li> {vb:raw template_hook.navbar_getnew_menu} <li><a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}forumdisplay.php?{vb:raw session.sessionurl}do=markread&amp;markreadhash={vb:ra w bbuserinfo.securitytoken}">{vb:rawphrase mark_forums_read}</a></li> </ul> </li> <vb:else /> <li class="selected"><a class="navtab" href="search.php?{vb:raw session.sessionurl}do=getdaily&amp;contenttype=vBForum _Post" accesskey="2">{vb:rawphrase getnew_tab}</a> <ul class="floatcontainer"> <li><a href="search.php?{vb:raw session.sessionurl}do=getdaily&amp;contenttype=vBForum _Post">{vb:rawphrase todays_posts}</a></li> <li><a href="search.php?{vb:raw session.sessionurl}do=getdaily&amp;contenttype=vBForum _SocialGroupMessage">{vb:rawphrase daily_group_message}</a></li> <li><a href="search.php?{vb:raw session.sessionurl}do=getdaily&amp;contenttype=vBForum _Event">{vb:rawphrase daily_events}</a></li> {vb:raw template_hook.navbar_getdaily_menu} <li><a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}forumdisplay.php?{vb:raw session.sessionurl}do=markread&amp;markreadhash={vb:ra w bbuserinfo.securitytoken}">{vb:rawphrase mark_forums_read}</a></li> </ul> </li> </vb:if> <vb:elseif condition="$show['member']" /> <li><a class="navtab" href="search.php?{vb:raw session.sessionurl}do=getnew&amp;contenttype=vBForum_P ost" accesskey="2">{vb:rawphrase getnew_tab}</a></li> <vb:else /> <li><a class="navtab" href="search.php?{vb:raw session.sessionurl}do=getdaily&amp;contenttype=vBForum _Post" accesskey="2">{vb:rawphrase getnew_tab}</a></li>
</vb:if>



Bản 4.x
tìm
PHP Code:

vb:if condition="!$vboptions['selectednavtab'] AND THIS_SCRIPT != 'search'">


Thay thế:
PHP Code:

<vb:if condition="!$vboptions['selectednavtab']">







Tìm và xóa tất cả:
PHP Code:

<vb:if condition="!$vboptions['selectednavtab'] AND THIS_SCRIPT == 'search'"> <vb:if condition="$show['member']"> <li class="selected"><a rel="nofollow" class="navtab" href="search.php?{vb:raw session.sessionurl}do=getnew&amp;contenttype=vBForum_P ost">{vb:rawphrase getnew_tab}</a> <ul class="floatcontainer"> <li><a rel="nofollow" href="search.php?{vb:raw session.sessionurl}do=getnew&amp;contenttype=vBForum_P ost">{vb:rawphrase new_posts_nav}</a></li> <li><a rel="nofollow" href="search.php?{vb:raw session.sessionurl}do=getnew&amp;contenttype=vBForum_S ocialGroupMessage">{vb:rawphrase new_group_messages_nav}</a></li> <li><a rel="nofollow" href="search.php?{vb:raw session.sessionurl}do=getnew&amp;contenttype=vBForum_E vent">{vb:rawphrase new_events_nav}</a></li> {vb:raw template_hook.navbar_getnew_menu} <li><a rel="nofollow" href="forumdisplay.php?{vb:raw session.sessionurl}do=markread">{vb:rawphrase mark_forums_read}</a></li> </ul> </li> <vb:else /> <li class="selected"><a rel="nofollow" class="navtab" href="search.php?{vb:raw session.sessionurl}do=getdaily&amp;contenttype=vBForum _Post">{vb:rawphrase getnew_tab}</a> <ul class="floatcontainer"> <li><a rel="nofollow" href="search.php?{vb:raw session.sessionurl}do=getdaily&amp;contenttype=vBForum _Post">{vb:rawphrase todays_posts}</a></li> <li><a rel="nofollow" href="search.php?{vb:raw session.sessionurl}do=getdaily&amp;contenttype=vBForum _SocialGroupMessage">{vb:rawphrase daily_group_message}</a></li> <li><a rel="nofollow" href="search.php?{vb:raw session.sessionurl}do=getdaily&amp;contenttype=vBForum _Event">{vb:rawphrase daily_events}</a></li> {vb:raw template_hook.navbar_getdaily_menu} <li><a rel="nofollow" href="forumdisplay.php?{vb:raw session.sessionurl}do=markread">{vb:rawphrase mark_forums_read}</a></li> </ul> </li> </vb:if> <vb:elseif condition="$show['member']" /> <li><a rel="nofollow" class="navtab" href="search.php?{vb:raw session.sessionurl}do=getnew&amp;contenttype=vBForum_P ost">{vb:rawphrase getnew_tab}</a></li> <vb:else /> <li><a rel="nofollow" class="navtab" href="search.php?{vb:raw session.sessionurl}do=getdaily&amp;contenttype=vBForum _Post">{vb:rawphrase getnew_tab}</a></li> </vb:if>














CHúc bạn thành công