1. peacetree
  2. Support
  3. Saturday, April 06 2019, 01:53 PM
Is there a way to let the users decide whether they would like to have their profile visible?

Thank you
Accepted Answer
admin Accepted Answer
Admin
Hi,
sorry for late reply, it was a weekend :D

This is not possible without Social Network plugin, anyway this is easily manageable with a very simple plugin:
- Create a Usergroup called "Private Group" (child of Public usergroup)
- Create a field called "Profile Type" of type Radio with 2 options
1|Public
2|Private
- Add condition to the new field like: If equal to custom value 2 then add to usergroup "Private Group" (Inverse: Yes)
- Download and install attached plugin
- Go to Extensions->Plugins and search for "Private Profile" plugin
- Enable the plugin and check options to set the private usergroup to "Private Group"
Attachments (1)
  1. more than a month ago
  2. Support
  3. # Permalink
peacetree Accepted Answer
Awsome thank you!

btw: do you offer custom developments?
  1. more than a month ago
  2. Support
  3. # 1
peacetree Accepted Answer
Is it possible to redirect to a specific user page?
At the moment its a 403 page not found.

This feature could be well used for premium members or to teaser site visitors to sign up with easy profile.

You could add an option to the plugin:

redirect to registration page (include error message above form)?
redirect to specified url or content item?
  1. more than a month ago
  2. Support
  3. # 2
admin Accepted Answer
Admin
Hi,
do you offer custom developments?
No sorry, but if it's a simple request then we always try to point our customers to the best solutions.

Is it possible to redirect to a specific user page?
This is easy:
- Open file at /plugins/jsn/privateprofile/privateprofile.php
- At line 30 replace this code:
JError::raiseError(403, JText::_('JERROR_ALERTNOAUTHOR'));
with this
$app = JFactory::getApplication();
if( $visitor->id > 0 ) { /* Registered User */
$app->enqueueMessage('Here the error message','error'); /* Message */
$app->redirect(JRoute::_('index.php?Itemid=123',false)); /* Redirect to menu item with id 123 */
}
else { /* Guest User */
$app->enqueueMessage('Here the error message','error'); /* Message */
$app->redirect(JRoute::_('index.php?option=com_users&view=registration',false)); /* Redirect to registration page */
}
  1. more than a month ago
  2. Support
  3. # 3
peacetree Accepted Answer
Best dude ever : )

Thank you!
  1. more than a month ago
  2. Support
  3. # 4
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.