- Posts: 26
- Thank you received: 0
Kunena 7.0.4 Released
The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0
Question Kunena Rank - MySQL database - Solved by author :)
I have a simple little question, where can I find the part of mysql database that links the user with his rank. By links I mean userID - rank, I want to use the rank in kunenadiscussbot but I can't find the ranks. I found the ranks database its #__fb_ranks if I remember right but that does not link the userID to the ranks.
Now there's a table #__fb_users that has userID and ranks in it too, but only the special ranks appear those that go on posts (ex. 0 posts - newbie, 50 posts - regular visitor) don't appear there.
And btw how do I select something from a table?
Is it:
$db->setQuery("SELECT rank FROM #__fb_users WHERE userid=$userid");
$userrank = $db->loadResult();
and after that I would like to write that number somewhere - would echo Jtext:
How could I make all these work?
Thank you for any respons!
Please Log in or Create an account to join the conversation.
That said, there will be an easy way to get user rank in K1.6.
Please Log in or Create an account to join the conversation.
Getting rank is not trivial -- actually it involves many different operations and some calculation.
That said, there will be an easy way to get user rank in K1.6.
Hmm, that sounds like it is too hard for me :laugh: That is why I couldn't do it.
But there is a plugin for Community Board that can get the ranks...so it isn't impossible.
I tried to look into that but couldn't really understand it.
By operations and calculations do you mean that ranks are always calculated from user posts and isn't preset in the database?
Could anyone help me out with this...it would be really really important for me at the site that I'm building...
I need to get ranks into the kunenadiscussbot, it only displays avatar and username right now.
Could someone lend me a hand? Maybe a Kunena developer...
And thank you Matias for your reply!
I'm guessing K 1.6 won't be out too soon?
Cheers and thanks,
Arpi
Please Log in or Create an account to join the conversation.
I've tried everything that I can and nothing works...please any developer out there who knows how this can be done please lend me a hand...
This is a sort of a school project and I have to be done by next Friday till the local festival starts...and people don't really understand that I can't do it...grrrr
Anyone?
P.S. It's not really a school project, more like a "Boyscout" project at our local school.
Please Log in or Create an account to join the conversation.
You may have to accept that this is not something that can be achieved within your project's timeframe. I'm sorry, but disappointment is a reality in life.
K 1.6 will not be available in the imminent future, no.
Blue Eagle vs. Crypsis reference guide
Read my blog and
Please Log in or Create an account to join the conversation.
I've just learned how to source date from mysql in php so now I can get users postcount, which means that I can make an if - if - if thing (sorry don't know what the name is in english, maybe something called conditional statements) so if something is within 0-50 (posts of a user) do something, and in that do something I'm going to extract from the mysql database (as I did with postcount using userID) the name of the rank and the rank image (these are all in the mysql database under #__fb_rank) given that I have the minimum postcounts there too.
So I have everything in my mind now I only have to translate it into php. The little problem is that I only know Pascal programing :laugh: but php in structure as I've seen it is a little similar. So I'll have a look at some other php's from around joomla and kunena and I'll have to learn fast how I can make those "if"'s work.
So I'll be getting there, thanks for your help!
I love this forum, it's so complex.
You've been doing a great job! And BTW if I can make this work I'll post it up here.
Cheers to everyone,
Arpi
Please Log in or Create an account to join the conversation.