Hello,
I'm trying to make my own Mod and I need some advice, a Trophy/Achievement like system ,
If my users met the required conditions they will Unlock an Achievement.
For the example.
"If a user has posted 50 reps in the certain category, they got a Trophy"
"If a all profile field were filled , they got a Trophy"
Now I'm using template condition and plugins so the options are very limited
and I can't figure out how to move forward
(Now I can just show the post more than x / friend more than x)
Can anyone give me some advice please ?
HERE IS A SAMPLE OF MY CODE :
plugins
postbit_legacy
I would be grateful If anyone can provide me a better code/better solution for this mod.
Thanks
Sorry for my bad english
I'm trying to make my own Mod and I need some advice, a Trophy/Achievement like system ,
If my users met the required conditions they will Unlock an Achievement.
For the example.
"If a user has posted 50 reps in the certain category, they got a Trophy"
"If a all profile field were filled , they got a Trophy"
Now I'm using template condition and plugins so the options are very limited
and I can't figure out how to move forward
(Now I can just show the post more than x / friend more than x)
Can anyone give me some advice please ?
HERE IS A SAMPLE OF MY CODE :
plugins
Code:
if (!empty($this->post['userid']))
{
$trophy_post = $this->post['posts'];
}
else
{
$trophy_post = 0;
}
postbit_legacy
Code:
<if condition="$post[trophy_post] < 50">
<img src="http://www.vbteam.info/images/trophy/50post.gif"/>
</if>
I would be grateful If anyone can provide me a better code/better solution for this mod.
Thanks
Sorry for my bad english