Back to vBulletin 3.7 Template Modifications

Only show Social Bookmarking links in certain forums.
Mod Version: 1.00, by ()

This modification is in the archives.
vB Version: 3.7.0 Beta 4 Rating: (0 vote - 0 average) Installs: 5
Released: 16 Feb 2008 Last Update: Never Downloads: 24
Not Supported Template Edits Re-usable Code Translations  

This is just a simple conditional, but I found it useful and worth sharing. All it does is give you the option to only show the social bookmarking (Digg, Stumbleupon, etc) links in select forums where appropriate.

In the SHOWTHREAD template:

Find:

Code:
<if condition="$bookmarksites">
<!-- social bookmarking links -->
	<br />
	<table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" class="tborder" align="center">
	<tr>
		<td class="thead" colspan="$bookmarkcolspan">$vbphrase[bookmarks]</td>
	</tr>
	<tr>$bookmarksites</tr>
	</table>
<!-- / social bookmarking links -->
</if>
Add the colored code:

Code:
<if condition="$bookmarksites">
<if condition="in_array($forum[forumid], array(1,2,3))">
<!-- social bookmarking links -->
	<br />
	<table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" class="tborder" align="center">
	<tr>
		<td class="thead" colspan="$bookmarkcolspan">$vbphrase[bookmarks]</td>
	</tr>
	<tr>$bookmarksites</tr>
	</table>
<!-- / social bookmarking links -->
</if>
</if>
In this conditional, change 1,2,3 (etc) to the forumid's of the forums that you want to shot the bookmarking links in.

Code:
<if condition="in_array($forum[forumid], array(1,2,3))">

Download

This modification is archived, downloads are still allowed.

File Type: %1$s supress_bmlinks.txt (1.3 KB, 24 downloads)

Similar Mods

Mini Mods Add new social bookmarking for Arabic vBulletin forums vBulletin 3.7 Template Modifications

vblts.ru supports vBulletin®, 2022-2024