Forum Subscription

It seems that in an older version of Telligent Community that users had the ability to subscribe to specific forums to receive email notifications when a post was made to a specific forum. Similar to how the Blogs have the gear icon to let users subscribe to a blog, I thought that forums had the same. I'm not seeing it in Version 10.  Is there a way for users to do this on the forum or is it located elsewhere now?

Parents Reply Children
  • Thank you ... that is a big problem, because it really annoys people when they didn't realise they are being subscribed to the thread and then 15 people reply before they have a chance to unsubscribe. Do you think it is technically possible for my developers to reinstate a subscribe/unsubscribe tick box to the reply box? ie the box I am typing in now, where 'suggest as answer' currently sits.  

  • Yes, the Forum - Thread widget can be fully customized in Widget Studio as before. Older pre-10.0 versions of the widget are still fully supported in 10 and 11 as well, which expose that option.

    As a quick edit to the out-of-the-box 10.x version of the widget, this two-line edit will completely disable this behavior. 

    Administration > Interface > Widgets > Forum - Thread

    Find the widget's ui.js file.

    Change the following:

    addReply: function (context, forumId, threadId, body, suggestAsAnswer, parentId) {
    	var data = {
    		ForumId: forumId,
    		ThreadId: threadId,
    		Body: body,
    		SubscribeToThread: true,
    		IsSuggestedAnswer: suggestAsAnswer
    	};
    	if (parentId) {
    		data.ParentReplyId = parentId;
    	}
    	return $.telligent.evolution.post({
    		url: $.telligent.evolution.site.getBaseUrl() + 'api.ashx/v2/forums/{ForumId}/threads/{ThreadId}/replies.json',
    		data: data
    	});
    },

    To:

    addReply: function (context, forumId, threadId, body, suggestAsAnswer, parentId) {
    	var data = {
    		ForumId: forumId,
    		ThreadId: threadId,
    		Body: body,
    		SubscribeToThread: false,
    		IsSuggestedAnswer: suggestAsAnswer
    	};
    	if (parentId) {
    		data.ParentReplyId = parentId;
    	}
    	return $.telligent.evolution.post({
    		url: $.telligent.evolution.site.getBaseUrl() + 'api.ashx/v2/forums/{ForumId}/threads/{ThreadId}/replies.json',
    		data: data
    	});
    },

    And change the following here:

    onAddReply: function (options) {
    	return $.telligent.evolution.post({
    		url: context.addReplyUrl,
    		data: prefix({
    			forumId: context.forumId,
    			threadId: context.threadId,
    			parentId: options.parentId || null,
    			body: options.body || null,
    			suggestAnswer: options.data && options.data.suggestAnswer,
    			subscribeToThread: true
    		})
    	});
    },

    To:

    onAddReply: function (options) {
    	return $.telligent.evolution.post({
    		url: context.addReplyUrl,
    		data: prefix({
    			forumId: context.forumId,
    			threadId: context.threadId,
    			parentId: options.parentId || null,
    			body: options.body || null,
    			suggestAnswer: options.data && options.data.suggestAnswer,
    			subscribeToThread: false
    		})
    	});
    },

    Note the changes of "true" to "false" for subscribing. 

    Then preview or publish the customizations. They can always be reverted.

    It would also be possible to make this a widget configuration or a checkbox in the reply form itself, but that's out of the scope of this reply.