public function getRegistrationLink() { $config = Komento::getConfig(); $link = JRoute::_( 'index.php?option=com_users&view=registration' ); switch( $config->get( 'login_provider' ) ) { case 'cb': $link = JRoute::_( 'index.php?option=com_comprofiler&task=registers' ); break; break; case 'joomla': if( Komento::isJoomla15() ) { $link = JRoute::_( 'index.php?option=com_user&view=register' ); } else { $link = JRoute::_( 'index.php?option=com_users&view=registration' ); } break; case 'jomsocial': $link = JRoute::_( 'index.php?option=com_community&view=register' ); break; case 'easysocial': $es = Komento::getHelper( 'EasySocial' ); if( $es->exists() ) { $link = FRoute::registration(); } break; } return $link; }
public function getRegistrationURL() { $usersConfig = JComponentHelper::getParams('com_users'); if ($usersConfig->get('allowUserRegistration')) { return FRoute::registration(); } return null; }
?> </a> <?php if ($this->config->get('oauth.facebook.registration.enabled') && $this->config->get('registrations.enabled') && ($this->config->get('oauth.facebook.secret') && $this->config->get('oauth.facebook.app') || $this->config->get('oauth.facebook.jfbconnect.enabled'))) { ?> <div class="text-center es-signin-social"> <p class="line"> <strong><?php echo JText::_('COM_EASYSOCIAL_OR_REGISTER_WITH_YOUR_SOCIAL_IDENTITY'); ?> </strong> </p> <?php echo $facebook->getLoginButton(FRoute::registration(array('layout' => 'oauthDialog', 'client' => 'facebook', 'external' => true), false), false, 'popup', JText::_('COM_EASYSOCIAL_REGISTER_WITH_YOUR_FACEBOOK_ACCOUNT')); ?> </div> <?php } ?> </div> </div> </div> <?php } ?> <?php } ?> </div>
?> </li> <?php } ?> </ul> <div class="dropdown-menu-footer"> <ul class="fd-reset-list"> <?php if ($this->config->get('registrations.enabled') && $this->config->get('general.site.lockdown.enabled') && $this->config->get('general.site.lockdown.registration') || $this->config->get('registrations.enabled') && !$this->config->get('general.site.lockdown.enabled')) { ?> <li> <i class="ies-plus-2"></i> <a href="<?php echo FRoute::registration(); ?> " class="pull-" tabindex="5"><?php echo JText::_('COM_EASYSOCIAL_REGISTRATION_CREATE_NEW_ACCOUNT'); ?> </a> </li> <?php } ?> <?php if (!$this->config->get('registrations.emailasusername')) { ?> <li> <i class="ies-help"></i> <a href="<?php echo FRoute::account(array('layout' => 'forgetUsername'));
public static function getRegistrationLink() { $config = DiscussHelper::getConfig(); $default = JRoute::_('index.php?option=com_user&view=register'); if (DiscussHelper::getJoomlaVersion() >= '1.6') { $default = JRoute::_('index.php?option=com_users&view=registration'); } switch ($config->get('main_login_provider')) { case 'joomla': $link = $default; break; case 'cb': $link = JRoute::_('index.php?option=com_comprofiler&task=registers'); break; case 'easysocial': $easysocial = DiscussHelper::getHelper('EasySocial'); if ($easysocial->exists()) { $link = FRoute::registration(); } else { $link = $default; } break; case 'jomsocial': $link = JRoute::_('index.php?option=com_community&view=register'); $file = JPATH_ROOT . '/components/com_community/libraries/core.php'; if (JFile::exists($file)) { require_once $file; $link = CRoute::_('index.php?option=com_community&view=register'); } break; } return $link; }
?> <style type="text/css"> <?php echo $styles; ?> </style> <div id="fd" class="es"> <div id="es-signupbox"> <div class="fb-signup-btn"> <?php if ($config->get('oauth.facebook.registration.enabled') && $config->get('registrations.enabled') && ($config->get('oauth.facebook.secret') && $config->get('oauth.facebook.app') || $config->get('oauth.facebook.jfbconnect.enabled'))) { ?> <div class="es-signin-social"> <?php echo $facebook->getLoginButton(FRoute::registration(array('layout' => 'oauthDialog', 'client' => 'facebook', 'external' => true), false), array(), 'popup', JText::_('MOD_EASYSOCIAL_SIGNUPBOX_FB_SIGNUP_BTN_TXT')); ?> </div> <?php } ?> </div> <div class="email-signup-btn"> <a class="btn btn-email-signup" href="<?php echo JRoute::_('index.php?option=com_easysocial&view=registration'); ?> "><i class="fa fa-envelope-o"></i> <?php echo JText::_('MOD_EASYSOCIAL_SIGNUPBOX_EMAIL_SIGNUP_BTN_TXT'); ?> </a>
?> " class="pull-" tabindex="6"><?php echo JText::_('COM_EASYSOCIAL_REGISTRATION_FORGOT_PASSWORD'); ?> </a> </li> </ul> </div> </li> <?php if ($config->get('oauth.facebook.registration.enabled') && $facebook) { ?> <li class="item-social text-center"> <?php echo $facebook->getLoginButton(FRoute::registration(array('layout' => 'oauthDialog', 'client' => 'facebook', 'external' => true), false)); ?> </li> <?php } ?> </ul> <input type="hidden" name="option" value="com_easysocial" /> <input type="hidden" name="controller" value="account" /> <input type="hidden" name="task" value="login" /> <input type="hidden" name="return" value="<?php echo $loginReturn; ?> " /> <?php
function getPasswordAndProfileLinks() { $registerType = $this->params->get('register_type'); $this->forgotLink = ''; if ($registerType == "jomsocial" && file_exists(JPATH_BASE . '/components/com_community/libraries/core.php')) { $jspath = JPATH_BASE . '/components/com_community'; include_once $jspath . '/libraries/core.php'; $this->registerLink = CRoute::_('index.php?option=com_community&view=register'); $user = JFactory::getUser(); $this->profileLink = CRoute::_('index.php?option=com_community&view=profile&userid=' . $user->id); } else { if ($registerType == 'easysocial' && file_exists(JPATH_ADMINISTRATOR . '/components/com_easysocial/includes/foundry.php')) { include_once JPATH_ADMINISTRATOR . '/components/com_easysocial/includes/foundry.php'; $this->registerLink = FRoute::registration(); if (method_exists('FRoute', 'getDefaultItemId')) { $Itemid = '&Itemid=' . FRoute::getDefaultItemId('account'); } else { $Itemid = ''; } $this->forgotUsernameLink = JRoute::_('index.php?option=com_easysocial&view=account&layout=forgetUsername' . $Itemid); $this->forgotPasswordLink = JRoute::_('index.php?option=com_easysocial&view=account&layout=forgetpassword' . $Itemid); $this->profileLink = FRoute::profile(); } else { if ($registerType == "communitybuilder" && file_exists(JPATH_ADMINISTRATOR . '/components/com_comprofiler/plugin.foundation.php')) { $this->registerLink = JRoute::_("index.php?option=com_comprofiler&task=registers", false); $this->forgotLink = JRoute::_("index.php?option=com_comprofiler&task=lostPassword"); $this->forgotUsernameLink = $this->forgotLink; $this->forgotPasswordLink = $this->forgotLink; $this->profileLink = JRoute::_("index.php?option=com_comprofiler", false); } else { if ($registerType == "virtuemart" && file_exists(JPATH_ADMINISTRATOR . '/components/com_virtuemart/version.php')) { require_once JPATH_ADMINISTRATOR . '/components/com_virtuemart/version.php'; if (class_exists('vmVersion') && property_exists('vmVersion', 'RELEASE')) { if (version_compare('1.99', vmVersion::$RELEASE)) { // -1 if ver1, 1 if 2.0+ $this->registerLink = JRoute::_("index.php?option=com_virtuemart&view=user", false); } else { if (file_exists(JPATH_SITE . '/components/com_virtuemart/virtuemart_parser.php')) { require_once JPATH_SITE . '/components/com_virtuemart/virtuemart_parser.php'; global $sess; $this->registerLink = $sess->url(SECUREURL . 'index.php?option=com_virtuemart&page=shop.registration'); } } } $this->profileLink = ''; } else { if ($registerType == 'kunena' && JFolder::exists(JPATH_SITE . '/components/com_kunena')) { $this->profileLink = JRoute::_('index.php?option=com_kunena&view=user', false); $this->registerLink = JRoute::_('index.php?option=com_users&view=registration', false); } else { if ($registerType == 'custom') { $this->profileLink = ''; $this->registerLink = $this->getLoginRedirect('registrationlink', false); } else { $this->profileLink = ''; $this->registerLink = JRoute::_('index.php?option=com_users&view=registration', false); } } } } } } // common for J!, JomSocial, and Virtuemart if (!$this->forgotUsernameLink) { $this->forgotUsernameLink = JRoute::_('index.php?option=com_users&view=remind', false); } if (!$this->forgotPasswordLink) { $this->forgotPasswordLink = JRoute::_('index.php?option=com_users&view=reset', false); } }
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); border-style: solid; border-width: 1px; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 1px 2px rgba(0, 0, 0, 0.05); border-radius:2px; -moz-border-radius:2px; -webkit-border-radius:2px; "><?php echo JText::_('COM_EASYSOCIAL_EMAILS_ACTIVATE_NOW'); ?> </a> <p> <?php echo JText::_('COM_EASYSOCIAL_EMAILS_REGISTRATION_ACTIVATION_ALTERNATIVE'); ?> <a href="<?php echo FRoute::registration(array('external' => true, 'layout' => 'activation', 'userid' => $id)); ?> "><?php echo JText::_('COM_EASYSOCIAL_EMAILS_REGISTRATION_ACTIVATION_ALTERNATIVE_THIS_PAGE'); ?> </a>. </p> <blockquote style="margin-bottom: 50px;"> <?php echo $token; ?> </blockquote> <table align="center" width="96px" border="0" cellpadding="0" cellspacing="0"> <tbody><tr>
public static function getRegistrationLink() { $config = EasyBlogHelper::getConfig(); $default = JRoute::_('index.php?option=com_users&view=registration'); switch ($config->get('main_login_provider')) { case 'easysocial': $easysocial = EasyBlogHelper::getHelper('EasySocial'); if ($easysocial->exists()) { $link = FRoute::registration(); } else { $link = $default; } break; case 'cb': $link = JRoute::_('index.php?option=com_comprofiler&task=registers'); break; break; case 'joomla': $link = $default; break; case 'jomsocial': $link = JRoute::_('index.php?option=com_community&view=register'); break; } return $link; }
/** * Shorthand for view to pass in quick as parameter to the registration page * * @author Jason Rey <*****@*****.**> * @since 1.2 * @access public */ public function selectProfile() { $this->redirect(FRoute::registration(array('quick' => true))); }
/** * Overrides the parent's implementation of store * * @since 1.3 * @access public * @param string * @return */ public function store($pk = null) { $isNew = !$this->id; // Save this into the table first parent::store($pk); // Add this into the mail queue if ($isNew) { $jconfig = FD::jconfig(); $mailer = FD::mailer(); $template = $mailer->getTemplate(); $sender = FD::user($this->user_id); $params = new stdClass(); $params->senderName = $sender->getName(); $params->message = $this->message; $params->siteName = $jconfig->getValue('sitename'); $params->manageAlerts = false; $params->link = FRoute::registration(array('invite' => $this->id, 'external' => true)); $template->setSender($sender->getName(), $sender->email); $template->setReplyTo($sender->email); $template->setRecipient('', $this->email); $template->setTitle(JText::sprintf('COM_EASYSOCIAL_FRIENDS_INVITE_MAIL_SUBJECT', $jconfig->getValue('sitename'))); $template->setTemplate('site/friends/invite', $params); $mailer->create($template); // Assign points to the user that created this invite $points = FD::points(); $points->assign('friends.invite', 'com_easysocial', $this->user_id); } }
/** * Resends activation emails to the user. * * @since 1.0 * @access public * @param SocialUser The user object. * @param SocialTableProfile The profile type. * @return bool True if success, false otherwise. * @author Mark Lee <*****@*****.**> */ public function resendActivation(SocialUser $user) { // Get the application data. $jConfig = FD::jConfig(); $config = FD::config(); // Push arguments to template variables so users can use these arguments $params = array('site' => $jConfig->getValue('sitename'), 'username' => $user->username, 'password' => $user->password_clear, 'name' => $user->getName(), 'id' => $user->id, 'avatar' => $user->getAvatar(SOCIAL_AVATAR_LARGE), 'profileLink' => $user->getPermalink(true, true), 'email' => $user->email, 'activation' => FRoute::registration(array('external' => true, 'task' => 'activate', 'controller' => 'registration', 'token' => $user->activation)), 'token' => $user->activation, 'manageAlerts' => false); // Get the email title. $title = JText::_('COM_EASYSOCIAL_REGISTRATION_ACTIVATION_REMINDER'); // Immediately send out emails $mailer = FD::mailer(); // Get the email template. $mailTemplate = $mailer->getTemplate(); // Set recipient $mailTemplate->setRecipient($user->name, $user->email); // Set title $mailTemplate->setTitle($title); // Set the contents $mailTemplate->setTemplate('site/registration/reactivate', $params); // Set the priority. We need it to be sent out immediately since this is user registrations. $mailTemplate->setPriority(SOCIAL_MAILER_PRIORITY_IMMEDIATE); // Try to send out email now. $state = $mailer->create($mailTemplate); return $state; }
/** * Redirects users view to easysocial * * @since 1.0 * @access public * @return */ public function processUsersRedirection() { $doc = JFactory::getDocument(); if ($doc->getType() != 'html') { return; } // Check if the admin wants to enable this if (!$this->params->get('redirection', true)) { return; } // If this is registration from com_users, redirect to the appropriate page. if ($this->isUserRegistration()) { // Redirect to EasySocial's registration $url = FRoute::registration(array(), false); return $this->app->redirect($url); } // If this is username reminder, redirect to the appropriate page. if ($this->isUserRemind()) { // Redirect to EasySocial's registration $url = FRoute::account(array('layout' => 'forgetUsername'), false); return $this->app->redirect($url); } // If this is password reset, redirect to the appropriate page. if ($this->isUserReset()) { // Redirect to EasySocial's registration $url = FRoute::account(array('layout' => 'forgetPassword'), false); return $this->app->redirect($url); } // If this is password reset, redirect to the appropriate page. if ($this->isUserLogin()) { // Determine if there's any "return" url in the query string $return = JRequest::getVar('return'); if ($return) { FD::setCallback(base64_decode($return)); } // Redirect to EasySocial's registration $url = FRoute::login(array(), false); return $this->app->redirect($url); } // If this is password reset, redirect to the appropriate page. if ($this->isUserProfile()) { // Redirect to EasySocial's registration $url = FRoute::profile(array(), false); return $this->app->redirect($url); } }
</a> </li> <?php } ?> </ul> <?php } ?> </div> </div> <?php } ?> </div> <div class="modal-footer"> <a href="<?php echo FRoute::registration(array('controller' => 'registration', 'task' => 'selectType', 'profile_id' => $profile->id)); ?> " class="btn btn-es-primary btn-medium btn-list-profile pull-right"> <?php echo JText::_('COM_EASYSOCIAL_JOIN_NOW_BUTTON'); ?> </a> </div> </div> </li>
<span class="step-number">0</span> </a> </li> <!-- Progress --> <?php $counter = 1; ?> <?php foreach ($steps as $step) { ?> <?php $customClass = $step->sequence == $currentStep || $currentStep > $step->sequence || $currentStep == SOCIAL_REGISTER_COMPLETED_STEP ? ' active' : ''; $customClass .= $step->sequence < $currentStep || $currentStep == SOCIAL_REGISTER_COMPLETED_STEP ? $customClass . ' past' : ''; if ($registration->hasStepAccess($step->sequence)) { // $link = $step->sequence == $currentStep ? 'javascript:void(0);' : FRoute::registration( array( 'layout' => 'steps' , 'step' => $step->sequence ) ); $link = $step->sequence == $currentStep ? 'javascript:void(0);' : FRoute::registration(array('layout' => 'steps', 'step' => $counter)); } else { $link = 'javascript:void(0);'; } ?> <li class="divider-vertical<?php echo $customClass; ?> "></li> <li class="stepItem<?php echo $customClass; ?> " data-original-title="<?php echo JText::_($step->title, true); ?>