|
Hello Tomm and all!
I have a question: How do I show the amount of NewPoints currency each user has on their profile (since I'm using MyNetwork and the Profile plugin for it)? I tried using {newpoints_profile} that worked on the default profile, and got zilch!
TIA!
Nathan Pinno
I fold for team 52482. Do you fold?
|
|
|
|
I'm not that familiar with NewPoints. Does it store user data in the mybb_users table?
|
|
|
|
It does under "newpoints", and the amount in the bank is "newpoints_bankoffset". So how can I make it show up on the profile? It would be nice if I could show the amount in the bank and the total combined worth as well.
I fold for team 52482. Do you fold?
|
|
|
|
It's a problem I'm having with existing plugins. Obviously I want to make sure they work but it's difficult as each one is different!
If the data is stored in the users table, you can use $profile['nameoffield'] in the template and it will display the value. Any other table will require some custom work.
|
|
|
|
Thanks... I think I can figure out how to do it. Do you know the code for displaying the result of adding two fields together?
I fold for team 52482. Do you fold?
|
|
|
|