First time here? Check out the FAQ!
1

How to create new badges?

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

I Like AskBot's avatar
305
I Like AskBot
asked 2012-08-24 11:50:06 -0600
todofixthis's avatar
1.3k
todofixthis
updated 2012-08-24 19:17:54 -0600
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

2

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.

Evgeny's avatar
13.2k
Evgeny
answered 2012-08-24 12:10:12 -0600
edit flag offensive 0 remove flag delete link

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's avatar I Like AskBot (2012-08-24 12:22:39 -0600) 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's avatar todofixthis (2012-08-24 19:17:20 -0600) 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's avatar I Like AskBot (2012-08-25 00:47:50 -0600) edit

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

I Like AskBot's avatar I Like AskBot (2012-10-31 08:50:54 -0600) 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's avatar Evgeny (2012-10-31 10:25:00 -0600) edit
add a comment see more comments