Kunena 7.1.1 & Kunena 6.4.17 – Security Updates Released

The Kunena team has announce the arrival of Kunena 7.1.1 [K 7.1.1] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x./6.1.x./6.2.x This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 / K7.0 and issues discovered during the last development stages of K 7.1
Just a reminder: K6.4.17 receives only securities fixes until end of 2026, so it's advised for users to upgrade to K7.1.

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
  • Premium Member
  • Only the strongest will survive
More
16 years 2 months ago - 16 years 2 months ago #62167 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: 16 years 2 months ago by C0n.

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

  • C0n
  • C0n's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Only the strongest will survive
More
16 years 2 months ago - 16 years 2 months ago #62169 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: 16 years 2 months ago by C0n.

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

  • C0n
  • C0n's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Only the strongest will survive
More
16 years 2 months ago - 16 years 2 months ago #62170 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: 16 years 2 months ago by C0n.

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

Time to create page: 0.109 seconds