PDA

View Full Version : Automatic Thread-tag Subscriptions



PhucSD
07-06-2011, 10:42 PM
Overview:
This modification allows users to automatically subscribe to thread tags. The tags in question can be managed through a simple profile input.

When combined with an automatic thread tagger or vBSEO, this modification works like a keyword subscription tool (thanks to Videx for pointing this out).

Compatibility:
4.x, and 3.x*.

* For 3.x users, in AdminCP > Plugins & Products > Plugin Manager, the "Core" plugin must be edited and have it's hook changed from Code:
global_bootstrap_init_start
to the 4.x-deprecated Code:
global_start
.

Installation:
Code:
1. Log into the AdminCP. You are presumed to have setting, product/plugin, and profile field access; these are required to install the modification. 2. Create a "Single-Line Text Box" profile field. Title: "Thread Tag Subscriptions / Subscribed Tags" Description: "Enter the thread tags you want automatic subscriptions to, each tag separated by a comma. If you only want to subscribe to a tag in one forum, prefix it with the forum id and a colon (e.g. <code>1:pie</code>). To disable thread tag subscriptions, leave this field blank." Max Length of allowed user input: 255 Display Page: "Options: Messaging/Notification" 3. Create a "Single-Selection Menu" profile field. Title: "Thread Tag Subscriptions / Notification Type" Description: "Select how to be notified of updates. You can choose to only display the subscription in your control panel, or have updates emailed to you." Options [See Note B]: no_email_notification instant_notification_by_email daily_updates_by_email weekly_updates_by_email Display Page: "Options: Messaging/Notification" 4. Import the product xml. 5. Remaining in the AdminCP, navigate to "Settings" > "Options" and find "Thread Tag Subscriptions". 6. Select the two profile fields you just created, per the option description and save. The installation is complete. Congratulations! =) NOTES A. For steps #2 & 3, the remaining settings can be left at their defaults. B. DO NOT PASTE THE ITEMS BELOW #3 "Options"; THESE ARE PHRASE VARIABLE NAMES TO BE FOUND WITH THE LANGUAGE MANAGER. Open a new window for the language manager and find each of the four phrases. When a phrase is found, the full text of the phrase is to be copied and pasted into the options list followed by an empty line. THE MODIFICATION WILL NOT FUNCTION IF THIS IS NOT DONE CORRECTLY.
Changelog:
0.2.1: Fixed a bug causing all subscriptions to be control panel-only. Thanks for finding this blackhost!
0.2 (Documentation-only): Added default setting to profile field instructions so they display in the UserCP Notification/Messaging area. *Suggestion by Alfa1
0.2: Rewrote modification with optimizations and reduced product size.
Download Now