1

Email subscription for user defined tags
 

Askbot developers, I can really use your help.

Under the subscriptions section I would like to have the option to get emails if questions are asked which contain my predefined tags.

So I want to - set a list of tags for which I want to receive alerts - get an alert if any question is posted with these tags.

Which python files should I edit to get this to work?

I have the dev. version installed.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
asked 13 years ago
This post is a wiki. Anyone with karma >100 is welcome to improve it.

Comments

see more comments

2 Answers

1

There is a feature like that - give users a url such as:

http://example.com/subscribe-for-tags/?tags=bug askbot documentation

with space separated tags. Then users can subscribe.

Appropriate email subscription settings must be selected for that user too.

Please try it out.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
updated 13 years ago
This post is a wiki. Anyone with karma >100 is welcome to improve it.
link

Comments

see more comments
0

Great! That works, I see the template for it in; askbot/skins/default/templates

I added

<form method="post" action="{% url subscribe_for_tags %}">{% csrf_token %}
        <input type="text" name="tags" value="{{tags|join(' ')|escape}}" />
        <input type="submit" name="ok" value="{% trans %}Subscribe{% endtrans %}" />
        <input type="submit" name="nope" value="{% trans %}Cancel{% endtrans %}" />
</form>

to user_profile/user_email_subscriptions.html

and it's working fine as far as I can tell, although I haven't setup the email-servers yet :).

Thanks Evgeny

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
answered 13 years ago
This post is a wiki. Anyone with karma >100 is welcome to improve it.
link

Comments

see more comments