You can't modify a trigger variable by reference. You can substitute in a trigger variable using [var1-10] as explained in the description and above.1. How am I supposed to access a variable from a triggers function? I want to access it, manipulate it and return it.
I've already explained this. Please read my above replies carefully. You use them as strings.2. How am I supposed to use substitutions within PHP code?
Please Log in or Create an account to join the conversation.
krileon wrote: If not even null is output then your action probably isn't firing. It also depends on the trigger used. Trying to output in the middle of a operation is going to do nothing (for example if you try to output during login, it will never be seen). Try an on after profile display trigger or some other display based trigger that can actually show something.
You can't modify a trigger variable by reference. You can substitute in a trigger variable using [var1-10] as explained in the description and above.1. How am I supposed to access a variable from a triggers function? I want to access it, manipulate it and return it.
I've already explained this. Please read my above replies carefully. You use them as strings.2. How am I supposed to use substitutions within PHP code?
You can see this usage working perfectly fine below.
Action:
Result:
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.