Back to vBulletin 4.x Template Modifications

TW7S - Remove Subscription and/or RSS buttons from forums
Mod Version: 1.00, by LifesGreatestGift

vB Version: 4.0.0 Rating: (10 votes - 4.90 average) Installs: 72
Released: 02 Jan 2010 Last Update: Never Downloads: 1
Not Supported Template Edits Re-usable Code Translations  

To remove Subscription button only

Open forumhome_forumbit_level1_post (This is for Sub-Forums)

Find and Remove:
PHP Code:
<vb:if condition="$show['member']"><vb:if condition="$show['forumsubscription']"><li class="forumactionlink unsubslink"> <a href="subscription.php?{vb:raw session.sessionurl}do=removesubscription&amp;f={vb:raw forum.forumid}" title="{vb:rawphrase unsubscribe_from_this_forum}">{vb:rawphrase unsubscribe_from_this_forum}</a></li><vb:else /><li class="forumactionlink subslink"> <a href="subscription.php?{vb:raw session.sessionurl}do=addsubscription&amp;f={vb:raw forum.forumid}" title="{vb:rawphrase subscribe_to_this_forum}">{vb:rawphrase subscribe_to_this_forum}</a></li></vb:if></vb:if> 

Open forumhome_forumbit_level2_post (This is for Forum Home Display)

Find and Remove:
PHP Code:
<vb:if condition="$show['member']"><vb:if condition="$show['forumsubscription']"><li class="forumactionlink unsubslink"> <a href="subscription.php?{vb:raw session.sessionurl}do=removesubscription&amp;f={vb:raw forum.forumid}" title="{vb:rawphrase unsubscribe_from_this_forum}">{vb:rawphrase unsubscribe_from_this_forum}</a></li><vb:else /><li class="forumactionlink subslink"> <a href="subscription.php?{vb:raw session.sessionurl}do=addsubscription&amp;f={vb:raw forum.forumid}" title="{vb:rawphrase subscribe_to_this_forum}">{vb:rawphrase subscribe_to_this_forum}</a></li></vb:if></vb:if> 

To remove RSS button only

Open forumhome_forumbit_level1_post (This is for Sub-Forums)

Find and Remove:
PHP Code:
<vb:if condition="$vboptions['externalrss']"><li class="forumactionlink rsslink"><a href="external.php?{vb:raw session.sessionurl}type=RSS2&amp;forumids={vb:raw forum.forumid}" title="{vb:rawphrase view_forum_rss_feed}">{vb:rawphrase view_forum_rss_feed}</a></li></vb:if> 

Open forumhome_forumbit_level2_post (This is for Forum Home Display)

Find and Remove:
PHP Code:
<vb:if condition="$vboptions['externalrss']"><li class="forumactionlink rsslink"><a href="external.php?{vb:raw session.sessionurl}type=RSS2&amp;forumids={vb:raw forum.forumid}" title="{vb:rawphrase view_forum_rss_feed}">{vb:rawphrase view_forum_rss_feed}</a></li></vb:if> 

To remove Subscription & RSS buttons

Open forumhome_forumbit_level1_post (This is for Sub-Forums)

Find and Remove:
PHP Code:
<vb:if condition="$forum['statusicon'] != 'link'">
                                <
h4 class="nocss_label">{vb:rawphrase forum_actions}:</h4>
                                <
ul class="forumactionlinks td">
                                    <
vb:if condition="$vboptions['externalrss']"><li class="forumactionlink rsslink"><a href="external.php?{vb:raw session.sessionurl}type=RSS2&amp;forumids={vb:raw forum.forumid}" title="{vb:rawphrase view_forum_rss_feed}">{vb:rawphrase view_forum_rss_feed}</a></li></vb:if>
                                    <
vb:if condition="$show['member']"><vb:if condition="$show['forumsubscription']"><li class="forumactionlink unsubslink"> <a href="subscription.php?{vb:raw session.sessionurl}do=removesubscription&amp;f={vb:raw forum.forumid}" title="{vb:rawphrase unsubscribe_from_this_forum}">{vb:rawphrase unsubscribe_from_this_forum}</a></li><vb:else /><li class="forumactionlink subslink"> <a href="subscription.php?{vb:raw session.sessionurl}do=addsubscription&amp;f={vb:raw forum.forumid}" title="{vb:rawphrase subscribe_to_this_forum}">{vb:rawphrase subscribe_to_this_forum}</a></li></vb:if></vb:if>
                                </
ul>
                                <
vb:else />
                                <
vb:comment><h4 class="nocss_label">{vb:rawphrase forum_actions}:</h4>
                                <
ul class="forumactionlinks td">
                                    <
vb:if condition="$vboptions['externalrss']"><li class="forumactionlink">&nbsp;</li></vb:if>
                                    <
vb:if condition="$show['member']"><li class="forumactionlink">&nbsp;</a></li></vb:if>
                                </
ul></vb:comment>
                                </
vb:if> 

Open forumhome_forumbit_level2_post (This is for Forum Home Display)

Find and Remove:
PHP Code:
<ul class="forumactionlinks td">
            <
vb:if condition="$vboptions['externalrss']"><li class="forumactionlink rsslink"><a href="external.php?{vb:raw session.sessionurl}type=RSS2&amp;forumids={vb:raw forum.forumid}" title="{vb:rawphrase view_forum_rss_feed}">{vb:rawphrase view_forum_rss_feed}</a></li></vb:if>
            <
vb:if condition="$show['member']"><vb:if condition="$show['forumsubscription']"><li class="forumactionlink unsubslink"> <a href="subscription.php?{vb:raw session.sessionurl}do=removesubscription&amp;f={vb:raw forum.forumid}" title="{vb:rawphrase unsubscribe_from_this_forum}">{vb:rawphrase unsubscribe_from_this_forum}</a></li><vb:else /><li class="forumactionlink subslink"> <a href="subscription.php?{vb:raw session.sessionurl}do=addsubscription&amp;f={vb:raw forum.forumid}" title="{vb:rawphrase subscribe_to_this_forum}">{vb:rawphrase subscribe_to_this_forum}</a></li></vb:if></vb:if>
        </
ul

To UnDo changes simply revert templates forumhome_forumbit_level1_post and forumhome_forumbit_level2_post

Download

No files for download.


vblts.ru supports vBulletin®, 2022-2024