02-15-2008, 10:00 PM
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:
<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:
<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.
<if condition="in_array($forum[forumid], array(1,2,3))">
In the SHOWTHREAD template:
Find:
<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:
<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.
<if condition="in_array($forum[forumid], array(1,2,3))">