nant wrote:
edmundcheong wrote:
krileon wrote: You need to provide valid PHP. Do not include the <php tags. All PHP is ran as an anonymous function using create_function.
In fact, i have used basic examples from www.w3schools.com/php/showphp.asp?filename=demo_print1
Code:<?php print "<h2>PHP is Fun!</h2>"; print "Hello world!<br>"; print "I'm about to learn PHP!"; ?>
Auto Action: CODE
Method: PHP
Trigger: After User Profile Edit Display
Condition: [cb_action] equal to Print
Return: Print
Still nothing appears as well..
As Kyle said:
Do not include <php tags.
Means remove the first and last lines.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
krileon wrote: You need to write your code as if it was ran through create_function. This behavior is a little bit different from just executing a PHP script. The code is isolated for security purposes to prevent exploiting. Try the below usage for example.
Code:Return: EchoCode:return "PASS";
Please Log in or Create an account to join the conversation.