Log in

View Full Version : Mini Mods - Remove the "subscribe to this forum" button


we_are_borg
12-29-2009, 10:00 PM
Remove the "Subscribe to This Forum" button from the Forum Home.

The button RSS feed next to this button can be turend on and off in the control panel. You can find the option in admincp Settings>Options>External Data Provider. When you are there disable "Enable RSS Syndication" option this will remove the RSS button.

The button next to the RSS feed the so called "Subscribe to This Forum" we could not find in the admincp to turn on or off, but it can be done by editing 2 templates.

forumhome_forumbit_level1_post remove:

<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>

forumhome_forumbit_level2_post remove:

<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>


FORUMDISPLAY remove:

<li>
<vb:if condition="$show['subscribed_to_forum']">
<a href="subscription.php?{vb:raw session.sessionurl}do=removesubscription&amp;f={vb:raw foruminfo.forumid}" rel="nofollow">{vb:rawphrase unsubscribe_from_this_forum}</a>
<vb:else />
<a href="subscription.php?{vb:raw session.sessionurl}do=addsubscription&amp;f={vb:raw foruminfo.forumid}" rel="nofollow">{vb:rawphrase subscribe_to_this_forum}</a>
</vb:if>
</li>

If you can not find the code here above for some reason look for "forumactionlink subslink" in does 2 templates there is only one in each template so its easy to find.

#Missed one subscription that was located in the FORUMDISPLAY users could still access it by going into the forum and then select Forum Tools this is now removed

rajubd
12-30-2009, 04:58 AM
also remove rss
by removing this line

<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>

we_are_borg
12-30-2009, 07:28 AM
also remove rss
by removing this line

<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>

If thats the button on Forum Home next to what i'm removing that can be done in the admincp the rss feed you can turn on and of you dont need to alter the template.

Dr.osamA
12-30-2009, 08:11 AM
installed

thanxxx
________
Vaporizerinfo (http://johan-luis.tumblr.com/)

rajubd
12-30-2009, 08:13 AM
rss feed needed for getting good seo rank also auto post etc . so if you don't want to disable it also want to remove that icon you can remove it
<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>

whyiteasy
01-25-2011, 12:53 AM
is it work on vb 4.1.1 ?

xbrian88
01-25-2011, 11:02 AM
I would like to remove these highlighted. how do I?
I followed the guide, but do not go away!

https://vborg.vbsupport.ru/external/2011/01/10.jpg

xbrian88
02-03-2011, 11:11 AM
???????????

Xencored
02-03-2011, 12:28 PM
More of a Article :)

whyiteasy
02-05-2011, 05:51 AM
only it work on vb4.1.1



forumhome_forumbit_level1_post remove:

<li class="forumactionlink subslink"> <a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}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>

forumhome_forumbit_level2_post remove:

<li class="forumactionlink subslink"> <a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}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>


FORUMDISPLAY remove:

<li>
<vb:if condition="$show['subscribed_to_forum']">
<a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}subscription.php?{vb:raw session.sessionurl}do=removesubscription&amp;f={vb:raw foruminfo.forumid}" rel="nofollow">{vb:rawphrase unsubscribe_from_this_forum}</a>
<vb:else />
<a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}subscription.php?{vb:raw session.sessionurl}do=addsubscription&amp;f={vb:raw foruminfo.forumid}" rel="nofollow">{vb:rawphrase subscribe_to_this_forum}&hellip;</a>
</vb:if>
</li>

BlueCheri
02-07-2011, 04:17 AM
Yes it works, and also thanx Rajubd.