Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated

Logout and Login Issues

10 years 4 months ago
  • Lee's Avatar
    Topic Author
  • Lee
  • Offline
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 0
Licenses:
JomSocial Expired Socialize Expired

Hi Albert!

OK that's great! When will this fix take place? Will it be sometime soon?? Can someone update me when this bug is fixed?

Kind Regards

Lee

10 years 4 months ago
Licenses:

Hi Lee,

here I provide you temporary fix:
1. edit /plugins/system/jomsocialredirect/jomsocialredirect.php
2. around line 68, find this code

if ($this->params->get('redirect_previous') == 1) {
    /* in com_user we need to save reference url for these tasks to know previous page */
    if ($task === 'user.login' || $task === 'login' || $task === 'user.logout' || $task === 'logout') {
        $session = JFactory::getSession();
        $session->set('redirect_previous_url', $_SERVER['HTTP_REFERER']);
    }
}
and changing it to
if ($this->params->get('redirect_previous') == 1) {
    /* in com_user we need to save reference url for these tasks to know previous page */
    if ($task === 'user.login' || $task === 'login' || $task === 'user.logout' || $task === 'logout') {
        $session = JFactory::getSession();
        if (preg_match("/view=login/", $_SERVER['HTTP_REFERER'])) {
            $app  = JFactory::getApplication();
            $session->set('redirect_previous_url', base64_decode($app->input->post->get('return', '', 'BASE64')));
        } else {
            $session->set('redirect_previous_url', $_SERVER['HTTP_REFERER']);
        }
    }
}

dont forget to make backup first.

Regards,
Albert

The following user(s) said Thank You: Lee
10 years 4 months ago
  • Lee's Avatar
    Topic Author
  • Lee
  • Offline
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 0
Licenses:
JomSocial Expired Socialize Expired

Hi Albert,

Thank you for the code it now works perfect!! Thanks again!

Kind Regards,

Lee

9 years 7 months ago
  • Lee's Avatar
    Topic Author
  • Lee
  • Offline
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 0
Licenses:
JomSocial Expired Socialize Expired

Hi Guys,

Im not sure how i can post a new ticket on here but here is my question.....

On the first registration page after the 'Register Account' Button is pressed its has:

Name
Username
Email
Password and Verify Password

I want to change the first label from 'Name' to 'Company'. I just want to change the Label 'text'.

Kind Regards,

Lee

9 years 7 months ago
Licenses:

Hi,

please goto joomla backend > manage > languages, click overrides
and put new langauge for:
COM_COMMUNITY_NAME

Regards

9 years 6 months ago
  • Lee's Avatar
    Topic Author
  • Lee
  • Offline
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 0
Licenses:
JomSocial Expired Socialize Expired

Hi Albert,

Thank you for the temporary fix you supplied to me about 9 months ago. Is there any news on a permanent fix for this Redirection bug?

Kind Regards,

Lee

9 years 6 months ago
Licenses:

Hi,

please unzip this, and put it at:
/plugins/system/jomsocialredirect

we not release this code into our official plugin. because the issue from joomla side.

Regards

This message has an attachment file.
Please log in or register to see it.

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