Ask Your Question
1

Email subscription for user defined tags

asked 2012-03-21 11:38:34 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >100 is welcome to improve it.

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.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2012-03-21 13:21:21 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >100 is welcome to improve it.

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.

edit flag offensive delete link more
0

answered 2012-03-22 07:24:09 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >100 is welcome to improve it.

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

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2012-03-21 11:38:34 -0500

Seen: 294 times

Last updated: Mar 22 '12