Start Watching this topic - Stop watching this topic

Go down

Start Watching this topic - Stop watching this topic

Post by runawayhorses on May 7th 2014, 6:26 pm

Hello, does anyone know the html or script for the punbb version that adds "Start Watching this topic" and "Stop watching this topic"? I must have removed it at some point while editing the template months ago. It used to be at the bottom of each topic.



Male Posts : 2537
Reputation : 165
Language : English
Location : United States

Back to top Go down

Re: Start Watching this topic - Stop watching this topic

Post by Van-Helsing on May 8th 2014, 2:11 am

Hello RunAwayHorses,
I think this function is in the viewtopic_body template.
Try this:
open the viewtopic_body and find this
<!-- BEGIN switch_user_logged_in -->
put this

<div id="pun-visit" class="clearfix">
      <!-- BEGIN switch_plus_menu -->
         <script type="text/javascript">//<![CDATA[
            var url_favourite = '{switch_user_logged_in.U_FAVOURITE_JS_PLUS_MENU}';
            var url_newposts = '{U_NEWPOSTS_JS_PLUS_MENU}';
            var url_egosearch = '{U_EGOSEARCH_JS_PLUS_MENU}';
            var url_unanswered = '{U_UNANSWERED_JS_PLUS_MENU}';
            var url_watchsearch = '{U_WATCHSEARCH_JS_PLUS_MENU}';
            var url_tellfriend = '{U_TELLFRIEND_JS_PLUS_MENU}';
            insert_plus_menu_new('f{FORUM_ID}&amp;t={TOPIC_ID}','{JS_SESSION_ID}', {JS_AUTH_FAVOURITES});
      <!-- END switch_plus_menu -->
      <li><a class="addthis_button" href=";pub=forumotion">{L_SHARE}</a></li>
      <li><a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a></li>
      <li><a href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a></li>
      <!-- BEGIN watchtopic -->
      <!-- END watchtopic -->
<!-- END switch_user_logged_in -->
at the next line save the template and publish it. Also check the css if you disabled from the CSS.

Best Regards,

Male Posts : 2411
Reputation : 112
Language : English, Greek

Back to top Go down

Back to top

Permissions in this forum:
You cannot reply to topics in this forum