Joomrbri

6 months 3 weeks ago - 6 months 3 weeks ago #1 by Webguyz
Hi,

Just wondering if it is possible to get it working with joombri freelance?

This is from my router file:

switch($layout){
//guest
case 'register':
$vars = 'guest';
break;
case 'showfront':
$vars = 'guest';
break;
case 'usergroupfield':
$vars = 'guest';
break;

This is in the controller file:

/* Misc Functions */

//1.Check Username & Email (ajax)
function checkUser(){
// Check for request forgeries
JSession::checkToken('request') or jexit(JText::_('JINVALID_TOKEN'));

$app = JFactory::getApplication();
$db = JFactory::getDbo();
$inputstr = $app->input->get('inputstr', '', 'string');
$name = $app->input->get('name', '', 'string');

if($name == 'username'){
$query = "SELECT COUNT(*) FROM #__users WHERE username=".$db->quote($inputstr);
$msg = 'COM_JBLANCE_USERNAME_EXISTS';
}
elseif($name == 'email'){
$query = "SELECT COUNT(*) FROM #__users WHERE email=".$db->quote($inputstr);
$msg = 'COM_JBLANCE_EMAIL_EXISTS';
}

$db->setQuery($query);
if($db->loadResult()){
echo JText::sprintf($msg, $inputstr);
}
else {
echo 'OK';
}
exit;
}
}

This is the register file:

File Attachment:

File Name: register.txt
File Size:7 KB


Did not realize it was not using the first part of the default joomla registration page.

Any help would be appreciated to get it working.
Attachments:

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

6 months 3 weeks ago #2 by Function90
Hello Webguyz,

The plugin by default will not work. Some customisation needs to be done for this, like in plugin need to change url part from core joomla to your extension.

Like in plugin we add js on url of joomla registration, then needs to be changed for your component url. and in Javascript we used id of DOM elements, this may need to be changed also. So if you want us to do that for you, then you can hire for this work.

Please email at This email address is being protected from spambots. You need JavaScript enabled to view it. , if you are interested.

Thank you
Team Function90
You can share your views regarding our extension at JED ( extensions.joomla.org/profile/profile/details/225115#extensions )

Hire Professional Joomla Developers. ( www.function90.com/contact-us.html )

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

Powered by Kunena Forum
Cron Job Starts