Kunena 6.3.0 released

The Kunena team has announce the arrival of Kunena 6.3.0 [K 6.3.0] in stable which is now available for download as a native Joomla extension for J! 4.4.x/5.0.x/5.1.x. This version addresses most of the issues that were discovered in K 6.2 and issues discovered during the last development stages of K 6.3

Before posting new topics in this category K 1.5.x Support: Please read this first.

Question Kunena 1.5.12 Button click Change User Rank Image

  • C0n
  • C0n's Avatar Topic Author
  • Offline
  • Premium Member
  • Only the strongest will survive
More
13 years 7 months ago - 13 years 7 months ago #1 by C0n
My Intention today is to try and find a method of changing the user rank via clicking a button admin side :), For example this is a snippet i took from a diffrent post but it may help people understand what im trying to achive.
Code:
<?php $userid = $user->id; $db =& JFactory::getDBO(); $db->setQuery("SELECT posts FROM #__fb_users WHERE userid=".$userid); $posts = (int)$db->loadResult(); ?>

That snippet is for grabbing a users post count but im curious if i can get / apply a snippet of code like this to a button ive already created so when i click it it will change there forum rank image :D ?
Last edit: 13 years 7 months ago by C0n.

Please Log in or Create an account to join the conversation.

  • C0n
  • C0n's Avatar Topic Author
  • Offline
  • Premium Member
  • Only the strongest will survive
More
13 years 7 months ago - 13 years 7 months ago #2 by C0n
I did a little bit more research i now know i need to grab and change the values in following database tables.

jos_fb_users | userid=(depending on what user profile im viewing) | rank=10
Last edit: 13 years 7 months ago by C0n.

Please Log in or Create an account to join the conversation.

  • C0n
  • C0n's Avatar Topic Author
  • Offline
  • Premium Member
  • Only the strongest will survive
More
13 years 7 months ago - 13 years 7 months ago #3 by C0n
I think this should work im intergrating it with jomsocial.

Code:
<?php $userid = $user->id; $db =& JFactory::getDBO(); $query = "UPDATE #__fb_users SET rank='10' WHERE userid=".$userid; $db->setQuery($query); ?>
Last edit: 13 years 7 months ago by C0n.

Please Log in or Create an account to join the conversation.

Time to create page: 0.493 seconds