Skip to main content

Posts

Showing posts with the label joomla-extensions

joomla 1.7 user registration customization issue

-> i want to try new user registration customization. -> for that i create form and call hidden variable through function from controller. -> in controller save function i write this code but some function which not work in 1.7 so create problem here. function register_save() { global $mainframe; $db =& JFactory::getDBO(); // Check for request forgeries JRequest::checkToken() or jexit( 'Invalid Token' ); //clean request $post = JRequest::get( 'post' ); $post['username'] = JRequest::getVar('username', '', 'post', 'username'); $post['password'] = JRequest::getVar('password', '', 'post', 'string', JREQUEST_ALLOWRAW); $post['password2'] = JRequest::getVar('password2', '', 'post', 'string', JREQUEST_ALLOWRAW); // get the redirect $return = JURI::base(); // do a password safety check

make jQuery load one in joomla

I'm creating a module for joomla that needs jQuery and some jQuery plugins. My problem is that if other plugins load jQuery too it rewrites mine and disables jQuery plugins! How can I make sure jQuery loads only once (And before my plugins) in page? thanks.