Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Activation email trouble

9 years 1 month ago
  • S's Avatar
    Topic Author
  • S
  • Offline
  • Fresh Boarder
  • Thank you received: 0
Licenses:
JomSocial Expired

I am getting trouble with the activation email page.

When new user clicks and activates new account they are sent to a joomla login page,

Is this correct? should it not be a jomsocial login page page ?

index.php?option=com_users&view=login is where they are getting sent and it traps them in this area of site. is this the correct page ?

9 years 1 month ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi S,

That is correct, that is default behavior from Joomla itself. to change the page after activation you should hack the code.. please look this old topic for more information www.jomsocial.com/forum/technical-issues...joomla-login-i#92921

thank you

9 years 1 month ago
  • S's Avatar
    Topic Author
  • S
  • Offline
  • Fresh Boarder
  • Thank you received: 0
Licenses:
JomSocial Expired

That thread is three pages long and has many fixes and fix's to fix the broken fix's the last post says " can you check this? Its urgent" ???

And support writes >>> "ALWAYS open NEW threads for new issues. This thread has already 3 pages (!) .
Your new issue is irrelevant to thread subject. " ???

THE THREAD ENDS WITH NO REAL ANSWER

So no thanks to that fix/hack

Is there not a setting in the new JS for this ?

9 years 1 month ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

well, this is the proper solution, open this file components/com_community/controllers/register.php. find this code :

if ($useractivation == 0) {
            $mainframe->redirect(
                'index.php?option=com_users&view=login',
                JText::_('COM_COMMUNITY_REGISTRATION_ACTIVATE_SUCCESS'),
                "message"
            );
        } elseif ($useractivation == 1) {
            $mainframe->redirect(
                'index.php?option=com_users&view=registration&layout=complete&view=login',
                JText::_('COM_COMMUNITY_REGISTRATION_ADMINACTIVATE_SUCCESS'),
                "message"
            );
        }

replace to :

if ($useractivation == 0) {
            $mainframe->redirect(
                'index.php?option=com_community',
                JText::_('COM_COMMUNITY_REGISTRATION_ACTIVATE_SUCCESS'),
                "message"
            );
        } elseif ($useractivation == 1) {
            $mainframe->redirect(
                'index.php?option=com_community',
                JText::_('COM_COMMUNITY_REGISTRATION_ADMINACTIVATE_SUCCESS'),
                "message"
            );
        }

9 years 1 month ago
  • S's Avatar
    Topic Author
  • S
  • Offline
  • Fresh Boarder
  • Thank you received: 0
Licenses:
JomSocial Expired

// Attempt to activate the user.
$useractivation = $model->activate($token);

if ($useractivation === false) {
// Redirect back to the homepage.
$mainframe->redirect("index.php", $model->getError(), "warning");
return false;
}

// Redirect to the login screen.
if ($useractivation == 0) {
$mainframe->redirect(
'index.php?option=com_users&view=login',
JText::_('COM_COMMUNITY_REGISTRATION_ACTIVATE_SUCCESS'),
"message"
);
} elseif ($useractivation == 1) {
$mainframe->redirect(
'index.php?option=com_users&view=registration&layout=complete&view=login',
JText::_('COM_COMMUNITY_REGISTRATION_ADMINACTIVATE_SUCCESS'),
"message"
);
}

I dont see the code you are asking me to replace its similar but NOT the same as I have so I dont want to replace it.

Thanks

9 years 1 month ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

ops I was wrong, please you re-check again my post www.jomsocial.com/forum/modules-plugins-...email-trouble#124496 , I already fix it

9 years 1 month ago
  • S's Avatar
    Topic Author
  • S
  • Offline
  • Fresh Boarder
  • Thank you received: 0
Licenses:
JomSocial Expired

OK thanks

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW