2
ok here is what I am going to do tell me if this sounds like it will work.
THe user has one field (their title/"rank")
he fills it out and it does the following things.
1) It checks the modules table to see what rank they have now
2) it deletes that rank from the rank table (using the RankForumDel() from userrank.php)
3) adds a rank using RankForumAdd($rank_title,0,0,'',1)
4) updates rank in profile.
for number 3 I am puzzled about what the differences between rankforumsave and rankforumupdate are...
I am completly lost on number 4... I was going to use the updateuser() function but that looks rather complicated and I don't understand how it works so I think I will just write custom code to simply update the rank field.
Anyway I don't think this will be to hard, I just need to compile it into a module and figure out the code and test. Just wanted to post incase anyone had any useful ideas.
ps:
I see this piece of code "$db =& Database::getInstance();" can i use that in a module, what do I have to call? or should I just use the xoopsdb() function?