First time here? Check out the FAQ!
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.

asked 2012-03-21 11:38:34 -0500
This post is a wiki. Anyone with karma >100 is welcome to improve it.
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

2 Answers

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

answered 2012-03-22 07:24:09 -0500
This post is a wiki. Anyone with karma >100 is welcome to improve it.
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
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.

updated 2012-03-21 13:21:21 -0500
This post is a wiki. Anyone with karma >100 is welcome to improve it.
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments