Ask Your Question
1

How to create new badges?

asked 2012-08-24 11:50:06 -0500

I Like AskBot gravatar image I Like AskBot flag of Italy
255 4 5 15

updated 2012-08-24 19:17:54 -0500

todofixthis gravatar image todofixthis flag of Chile
1082 14 17 36
http://www.fiveyearsabroa...

Someone can help me to understand if there is a way to create new badges except that defined and how to do this operation?

delete close flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2012-08-24 12:10:12 -0500

Evgeny gravatar image Evgeny flag of Chile
11044 50 84 182
http://askbot.org/

Badges are defined in askbot/models/badges.py, so to add the badge you'll need to modify that file and follow the existing pattern.

link publish delete flag offensive edit

Comments

Really Thanks. But to create some new actions related to a new badge how can i do it? For example if i need to have a badge dedicate to who change their nick name too many times?

I Like AskBot ( 2012-08-24 12:22:39 -0500 )edit

Badges are generally used to reward desirable behavior. If you are creating a badge to reward a user for doing anything "too many times", you're probably not going to like the result.

todofixthis ( 2012-08-24 19:17:20 -0500 )edit

Yes i understand.. may be it was a wrong example but i can also need to evidence when there si someone that do too many times something of not correct also if can be strange how idea. For a good example i can need to have for who have a tot of followers.. ( can be a good example? ) But except the good or not good example it could be interesting if there is a way to implement our badges. Thank You

I Like AskBot ( 2012-08-25 00:47:50 -0500 )edit

Someone has any information about my request? I only need to create others badges except that there are by default.

I Like AskBot ( 2012-10-31 08:50:54 -0500 )edit

Are you proposing a specific badge? I could not understand what is the behavior you are trying to capture. To add badges you'd have to write code.

Evgeny ( 2012-10-31 10:25:00 -0500 )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-08-24 11:50:06 -0500

Seen: 39 times

Last updated: Aug 24 '12