PDA

View Full Version : Add-On Releases - Automatic Thread-tag Subscriptions


vbresults
08-04-2010, 10:00 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 global_bootstrap_init_start to the 4.x-deprecated global_start.

Installation:

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 (https://vborg.vbsupport.ru/member.php?u=424917)!
0.2 (Documentation-only): Added default setting to profile field instructions so they display in the UserCP Notification/Messaging area. *Suggestion by Alfa1 (https://vborg.vbsupport.ru/member.php?u=120685)
0.2: Rewrote modification with optimizations and reduced product size.

Videx
08-05-2010, 11:48 PM
This might actually be useful if any of my members bothered to use tags. Maybe in conjunction with one of those auto-tagging mods? But then, why not just allow a keyword subscription list?

vbresults
08-06-2010, 03:01 AM
This might actually be useful if any of my members bothered to use tags. Maybe in conjunction with one of those auto-tagging mods? But then, why not just allow a keyword subscription list?

Keyword relevance issues.

goyo
08-06-2010, 05:25 AM
Pretty Neat Idea

Thank You! :)

Videx
08-06-2010, 01:31 PM
Keyword relevance issues.Please elaborate. I can understand a minimum word length, but I imagine that's built into tags too, to prevent someone from getting all posts with the word "a" or something.

Really, the only thing I have to compare it to is Fatwallet.com, where having subscribed to e.g. "1080p" I get an email notice when that term is used in the post. But they don't even bother with tags.

Maybe a better question would be: How do you get your users to enter tags? I never do it myself, so it's hard for me to even try to encourage them, and there seems to be no incentive at all.

vbresults
08-06-2010, 06:44 PM
If you have vBSEO, or as you previously mentioned, an automatic thread tagger, this is not an issue.

Dr.osamA
08-10-2010, 07:40 PM
thanxx man

installed +5 stars

vbresults
03-26-2011, 04:33 PM
Added version 0.2. :)

Alfa1
03-30-2011, 04:22 PM
Brilliant idea! It would be better if the tag subscription options would be available in usercp > edit options > messaging & notifications > under 'default thread subscription mode'.

Is that possible?

vbresults
04-03-2011, 07:44 PM
Brilliant idea! It would be better if the tag subscription options would be available in usercp > edit options > messaging & notifications > under 'default thread subscription mode'.

Is that possible?

Absolutely; edit the two profile fields and set the "Display Page" property to "Options: Messaging/Notification".

Thank you for the improvement; adding it to the installation instructions. :)

Alfa1
04-03-2011, 11:04 PM
Thanks.

blackhost
04-13-2011, 12:45 AM
I have successfully integrated this according to instructions. Upon testing by creating a new thread under one user name, a subscription for that thread appears in the CP of the test account, but no notification is made when the users option in the CP is set to instant notification.

I have tried different variables as per your notes for section B -
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.

I searched the phrase as noted and tried several different variations of the phrases but still not sending out an instant email notification which it is set for in the user cp.

I am sure that the problem lies here as the subscription is automatically generated but not working. Advice?

Using 4.1.3

blackhost
04-13-2011, 01:20 AM
When I enter the test users subscription folder, I see the test tag/thread subscription, but the notification is set to no notification.

BadgerDog
05-24-2011, 10:17 AM
I am sure that the problem lies here as the subscription is automatically generated but not working. Advice?

Using 4.1.3

I'm also using 4.13 ...

Is this working properly yet?

Regards,
Doug

vbresults
05-29-2011, 09:49 PM
This was fixed last version if I remember right. :)

anthonym16
06-07-2011, 01:54 PM
I'm running 4.1.2 and I have the same problem - the subscription shows up in the list of subscribed threads but no email is ever sent out.

vbresults
06-14-2011, 02:02 PM
I'm running 4.1.2 and I have the same problem - the subscription shows up in the list of subscribed threads but no email is ever sent out.

This is most likely because of an extra space in one of the phrases (in the profile field options). I am going to release 1.0 soon which will automatically create the profile fields and set them along with a few other improvements so you don't have to worry about making mistakes. :)