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.

Change link button after register

10 years 6 months ago
Licenses:
JomSocial Active

ISSUE SUMMARY:

hi, could you help me, i can't find the route to change the link of the button after the registration of jomsocial.

STEPS TO REPLICATE:
1
2
3
4
5
RESULT
EXPECTED RESULT
BROWSER

10 years 6 months ago
Licenses:

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__);
}
to
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__);
}

remember, core changes not recommended, because you need to re-apply the changes after upgrade process. and this code not guarantee valid for next updates.

Regards

10 years 6 months ago
Licenses:
JomSocial Active

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.

10 years 6 months ago
Licenses:

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">
to
<a href="<?php echo CRoute::_('index.php'); ?>" class="joms-button--primary joms-button--full-small">

Regards

10 years 6 months ago
Licenses:
JomSocial Active

thanks, this will be fixed in the new lrelase or i will have to change it again after the update?

10 years 6 months ago
Licenses:

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

The following user(s) said Thank You: Jonathan
10 years 6 months ago
Licenses:
JomSocial Active

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

10 years 6 months ago
Licenses:

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

10 years 6 months ago
Licenses:
JomSocial Active

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

10 years 6 months ago
Licenses:
JomSocial Active

is not working... i dont know where to fix this button route to redirect me to the index.php

Attachments:
10 years 6 months ago
Licenses:
JomSocial Active

/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.

10 years 6 months ago
Licenses:

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">

now after registration link will open homepage.
please test it. I got difficulty to access your site, extreamly slow. seem your server under maintenance. not sure

Regards

10 years 5 months ago
Licenses:
JomSocial Active

So there is a way to use the index of jomsocial with the 404 page error?

I have it now but usong only the modules with a single article

10 years 5 months ago
Licenses:

Hi,

sorry it cant.

Regard

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