Skip to content

Instantly share code, notes, and snippets.

@ryanbattles
Last active December 17, 2015 19:49
Show Gist options
  • Save ryanbattles/5662760 to your computer and use it in GitHub Desktop.
Save ryanbattles/5662760 to your computer and use it in GitHub Desktop.
Forum-subscriptions template fancybox code
<script type="text/javascript">// <![CDATA[
if (/forum-subscriptions/.test(self.location.href)){window.location = "/forums"}
// ]]></script>
{exp:forum_subscribe:forum_single forum_id="{segment_3}"}
<h2>{forum_name}</h2>
{if subscribed}
<strong>SUBSCRIBED</strong> - <a href="{forum_subscribe_url}">Click to Unsubscribe</a>
{if:else}
<strong>NOT SUBSCRIBED</strong> - <a href="{forum_subscribe_url}">Click to Subscribe</a>
{/if}
{/exp:forum_subscribe:forum_single}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment