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.

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

Bramiozo gravatar image Bramiozo
13 1 4

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.

delete close flag offensive retag edit

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.

updated 2012-03-21 13:22:20 -0500

Evgeny gravatar image Evgeny flag of Chile
11314 50 84 183
http://askbot.org/

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.

link publish delete flag offensive edit
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.

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

Bramiozo gravatar image Bramiozo
13 1 4

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

link publish delete flag offensive edit

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Reliable Askbot Hosting

Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.

create your Q&A site
30 days free trial

Question tools

Follow

subscribe to rss feed

Stats

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

Seen: 58 times

Last updated: Mar 22 '12