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.

How to get back to profile view after editing?

6 years 8 months ago
  • Anders's Avatar
    Topic Author
  • Anders
  • Offline
  • Junior Boarder
  • Posts: 134
  • Thank you received: 2
Licenses:
JomSocial Active

Hi!
When I edit my profile and then click "Save changes", the page will remain in edit mode." How can I get back to my profile instead?

I have JomSocial version 4.5.1_Beta_1

Best regards
Anders Hidman
Sweden

6 years 8 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi,

You need hack the code, modify this file components/com_community/controllers/profile.php
find this code :

$mainframe->redirect(CRoute::_('index.php?option=com_community&view=profile&task=edit'.$additionalInfo, false), $msg);
replace to
$mainframe->redirect(CRoute::_('index.php?option=com_community&view=profile' , false), $msg);

6 years 8 months ago
  • Anders's Avatar
    Topic Author
  • Anders
  • Offline
  • Junior Boarder
  • Posts: 134
  • Thank you received: 2
Licenses:
JomSocial Active

No, sorry!
That change did not work, I'm still in Edit mode when I click "Save Changes"

BR
Anders

6 years 8 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi,

Sorry, it should change this code :

$mainframe->redirect(CRoute::_('index.php?option=com_community&view=profile&task=edit&userid='.$user->id, false), $msg);
to this code :
$mainframe->redirect(CRoute::_('index.php?option=com_community&view=profile', false), $msg);

thank you!

6 years 3 months ago
  • Anders's Avatar
    Topic Author
  • Anders
  • Offline
  • Junior Boarder
  • Posts: 134
  • Thank you received: 2
Licenses:
JomSocial Active

Hi!
I have changed, as you said..


You need hack the code, modify this file components/com_community/controllers/profile.php
find this code :
$mainframe->redirect(CRoute::_('index.php?option=com_community&view=profile&task=edit&userid='.$user->id, false), $msg);
to this code :
$mainframe->redirect(CRoute::_('index.php?option=com_community&view=profile', false), $msg);

.....but it only works in my site "vuxenflirta.se" but NOT in my site "spejset.se"
How is it that?

Best regards
Anders Hidman
Sweden

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