Hi,
you need to changing jomsocial core file:
edit /components/com_community/controllers/register.php
around line 803, find this code
and changing it from
public function registerSucess()
{
// @rule: Clear any existing temporary session.
$session = JFactory::getSession();
$session->clear('tmpuser');
$session->clear('JS_REG_TOKEN');
$view = $this->getView('register');
echo $view->get(__FUNCTION__);
}public function registerSucess()
{
// @rule: Clear any existing temporary session.
$session = JFactory::getSession();
$session->clear('tmpuser');
$session->clear('JS_REG_TOKEN');
$mainframe = JFactory::getApplication();
$mainframe->redirect(CRoute::_('index.php?option=com_community&view=frontpage', false));
$view = $this->getView('register');
echo $view->get(__FUNCTION__);
}
Hi, the problem is that you have hardcoded the button link after registration to the default page who have "index.php?option=com_community&view=frontpage" ut im using a single page for the index. So if i turn off the article "index temporal" i will have a broken link. I need that this buttton after registry redirect me to my index.
Im using a single page because if i use the component of jomsocial with ""index.php?option=com_community&view=frontpage" i miss the 404 page error. i have to use a sinlge page iwth JS hello and JS stream to have the 404error active. That is an error from Jomsocial.
Hi,
please override this file:
/components/com_community/templates/jomsocial/layouts/register/success.php
and changing this code
<a href="<?php echo $uri; ?>" class="joms-button--primary joms-button--full-small"><a href="<?php echo CRoute::_('index.php'); ?>" class="joms-button--primary joms-button--full-small">
Hi,
you must create override file for that. this is joomla method.
please copy success.php from /components/com_community/templates/jomsocial/layouts/register/ to /templates/[your frontned template]/html/com_community/layouts/register (create this folders if not exist)
after that you can edit that file that copied to frontend template location.
and every upgrade process the changes will be stayed/not disappear.
Regards
Albertus Im using a single page because if i use the component of jomsocial with ""index.php?option=com_community&view=frontpage" i miss the 404 page error. i have to use a sinlge page iwth JS hello and JS stream to have the 404error active. That is an error from Jomsocial.
but i want to use the jomsocial index is better than use JS Stream and hello module.
Do you know how to use this jomsocial page for the index without loosing the 404 page error.
i have this page as 404 page error.
www.identifican.cl/index.php?option=com_...t&view=article&id=34
Hi,
simple say, you want to put login and jomsocial stream at that 404 page?
you must still using that JS stream and JS hellome module.
maybe this link can help:
docs.joomla.org/How_do_you_put_a_module_inside_an_article%3F
we can load module into article section.
I saw your site homepage, why you not set jomsocial frontpage at homepage, instead using modules?
Regards
because if i use jomsocial frontpage i loose the 404 page. i dont know why jomsocial have this problem been frontpage with the 404 page error. so if jomsocial is in the frontpage (not modules) if i go to for example www.identifican.cll/fjgnañdljñdnhljdnhñj will redirect me to identifican.cl
/home/identifi/public_html/templates/protostar/html/com_community/layouts/register/success.php
/home/identifi/public_html/components/com_community/templates/jomsocial/layouts/register/success.php
/home/identifi/public_html/components/com_community/templates/default/register.success.php
im trying to change the button in this files but is not working.
Hi,
I made a changes at:
/public_html/templates/protostar/html/com_community/layouts/register/success.php
<a href="<?php echo JURI::base(); ?>" class="joms-button--primary joms-button--full-small">