Need help/advice from coder/modder

Aunsai

New Member
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
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 :p
 

alexD

New Member
I see have you tried vbcredit and it has the ability to disable the functions you dont want to use I did use it for a long time and it was very good. For your code you'll need to find the array or variable that stores your reps inorder to check how many the user has and then you would set it up so it excepts your input using $_POST['inputsname'] using if conditions so you can change it via the admincp to your liking. Then eval a new template as a varible so you can simply add the variable and not a huge block of code.
 
Top