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?

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
I Like AskBot's avatar
305
I Like AskBot
asked 12 years ago
todofixthis's avatar
1.3k
todofixthis
updated 12 years ago

Comments

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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 12 years ago
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 (12 years ago)

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 (12 years ago)

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 (12 years ago)

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 (12 years ago)

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 (12 years ago)
see more comments