krileon wrote: First append your variable to the first time login redirect within CB > Configuration > Registration. Next you'll need to create a code action that acts on the profile display trigger with a conditional as follows.
Conditional: [get_firstlogin] Equal To 1
You can then use the JS or jQuery methods to add whatever code you like. Note when using either of those you provide raw JS/jQuery, you do not need script tags or anything (e.g. StartTour(); ).
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
krileon wrote: There is a redirect right after that trigger. Your JS never has time to append to the header and output. You need to add your JS at the endpoint (where you're redirecting to).
Please Log in or Create an account to join the conversation.
I've already explained how to do this. Please see my previous replies. You need to edit your first time login redirect URL within CB > Configuration > Registration with a variable you can check for in your action. Example as follows.i just want an alert OnLogin, but obiouvsly i cant add the alert in profile page (i want 1 time alert not an extremely annoyng one who appears each profile page visit )
Please Log in or Create an account to join the conversation.
krileon wrote:
I've already explained how to do this. Please see my previous replies. You need to edit your first time login redirect URL within CB > Configuration > Registration with a variable you can check for in your action. Example as follows.i just want an alert OnLogin, but obiouvsly i cant add the alert in profile page (i want 1 time alert not an extremely annoyng one who appears each profile page visit )
Redirect: index.php?option=com_comprofiler&first=1
Conditional: [get_first] Equal To 1
The first time login redirect is only used when it's the users first login. Your regular login can just exclude &first from the URL and your action won't do anything.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.