Support

  1. peanutp
  2. Support
  3. Thursday, October 01 2015, 02:02 PM
Hello,

I have set up a few profile fields that I want users to complete once they are registered. they are currently not asked during registration.

What I would like to do is direct the user to a specific page after first login. I have set this up on my demo site and it sends to the page correctly. what I would like to do is be able to directly show the optional fields as soon as they go to the page. At the moment if they click on Edit profile, they then select the Group tab I set up to complete these fields. Is there a way to take the user straight to the easy profile group tab? Other wise users could miss this.

Hope this makes sense?!

cheers Pete
admin Accepted Answer
Admin
Hi,
you can do this:
- Set these fields as required
- Set in Easy Profile options to "Force compilation of required fields"

With this when use make a login it will be redirect on Edit profile page with message to complete required fields.
  1. more than a month ago
  2. Support
  3. # 1
peanutp Accepted Answer
Content Protected
  1. more than a month ago
  2. Support
  3. # 2
admin Accepted Answer
Admin
Hi,
There are different way to do this, but required developer Knowledge.

This is one solution:

Step 1 - Add javascript code to show correct Tab, Highlight Field and show message when is available some Hash in URL
Example, see this code:
jQuery( window ).load(function( ){   
if( location.hash=='#test' ) { // CUSTOMIZE YOUR HASH, now it is #test
jQuery( '#profile_tabs a[href="#tab1"]' ).click( ); // SHOW TAB - change #tab1 with your tab index
jQuery( '#jform_interests-lbl').css('color' , 'red' ); // HIGHLIGHT FIELD - change #jform_interests-lbl with ID of your field label, normally is #jform_FIELDALIAS-lbl
alert( 'Your message' ); // SET MESSAGE - Customize your message
}
});

We have added this code on our site, so you can check by going to https://www.easy-profile.com/account/edit-profile.html#test

Step 2 - Set redirect on Edit Profile Page with hash
Easy Profile allow you to redirect on predefined menu item on first login, but not allow you to add some other parameter on redirect URL.
So you need to do minor customization in our Users Plugin:
- open file /plugins/users/jsn_users/jsn_users.php
- change line 654 from
JFactory::getApplication( )->setUserState( 'users.login.form.return' , 'index.php?Itemid=' . $this->config->get( 'firstLoginUrl' ) );

to
JFactory::getApplication( )->setUserState( 'users.login.form.return' , 'index.php?Itemid=' . $this->config->get( 'firstLoginUrl' ).'#test' ); // Use same hash from previous Javascript code, in our Javascript function we use #test

- Set Easy Profile to go on some menu item of type Edit Profile when user make first login
  1. more than a month ago
  2. Support
  3. # 3
peanutp Accepted Answer
Excellent, thank you. I'll give this a try later and let you know. cheers Pete.
  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.
Sorry, the discussion is currently locked. You will not be able to post a reply at the moment.

Request Support

Support is currently Offline

Support Availability

Working days: Monday to Friday. The support staff is not available on weekends; in the most of cases tickets will not be answered during that time.

Reply time: Depending on the complexity of your support issue it's usually between a few minutes and 24 hours for paid members and about one week for free members. When we expect longer delays we will notify you.

Guidelines

Before you post: read the documentation and search the forums for an answer to your question.

When you post: include Site Details if you request a support (you can use the form below the reply in Site Details tab).

Auto Solved Question: If after a week the author of the post does not reply to a request by moderator, the question will be marked as resolved.

Language: only English

Search Users

Easy Profile® is not affiliated with or endorsed by Open Source Matters or the Joomla Project. Joomla is Free Software released under the GNU/GPL License.