Ask Your Question

How to create new badges?

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

I Like AskBot gravatar image

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

todofixthis gravatar image

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

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

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

Evgeny gravatar image

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

edit flag offensive delete link more


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 gravatar imageI 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 gravatar imagetodofixthis ( 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 gravatar imageI 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 gravatar imageI 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 gravatar imageEvgeny ( 2012-10-31 10:25:00 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



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

Seen: 331 times

Last updated: Aug 24 '12