- Rule not working ? Check it is enabled in the rules manager !
- If you like AltaUserPoints , Thank you for rating it at the JED:
extensions.joomla.org/extensions/extensi...stems/altauserpoints

Error code when deleting a users medal

More
4 years 5 months ago #44020 by biinng
/administrator/components/com_altauserpoints/models/statistics.php
Code:
function _delete_medaluser() { $app = JFactory::getApplication(); // initialize variables $db = JFactory::getDBO(); $cid = JFactory::getApplication()->input->get('cid', 0, 'int'); $rid = JFactory::getApplication()->input->get('rid', 0, 'int'); $msgType = ''; if ($cid) { // remove user medals $query = "DELETE FROM #__alpha_userpoints_medals" . "\n WHERE `id`=$cid AND rid=$rid"; $db->setQuery($query); $db->query(); if (!$db->query()) { $msg = $db->getErrorMsg(); $msgType = 'error'; } else $msg = JText::_('AUP_SUCCESSFULLYDELETED'); } $app->redirect('index.php?option=com_altauserpoints&task=edituser&cid[]='.$rid, $msg); //JControllerLegacy::setRedirect('index.php?option=com_altauserpoints&task=edituser&cid[]='.$rid, $msg); //JControllerLegacy::redirect(); }

$app->redirect('index.php?option=com_altauserpoints&task=edituser&cid[]='.$rid, $msg);
//JControllerLegacy::setRedirect('index.php?option=com_altauserpoints&task=edituser&cid[]='.$rid, $msg);

thats how it works :)
Is it correct that way?

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

Time to create page: 0.318 seconds
Powered by Kunena Forum
Disclaimer: Nordmograph is not affiliated with or endorsed by The Joomla! Project™. Any products and services provided through this site are not supported or warrantied by The Joomla! Project or Open Source Matters, Inc. Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.