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