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?
Someone can help me to understand if there is a way to create new badges except that defined and how to do this operation?
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.
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?
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.
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
Someone has any information about my request? I only need to create others badges except that there are by default.
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.
To enter a block of code:
Comments