Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Thrillerek Posted August 17, 2015 Posted August 17, 2015 Yeah, still getting used to the new version. I tried the following code:/* !Hook Data - DO NOT REMOVE */ public static function hookData() { $test_var = 'a test value'; return array_merge_recursive( array ( 'profile' => array ( 0 => array ( 'selector' => '#elProfileInfoColumn > div.ipsAreaBackground_light.ipsPad', 'type' => 'add_inside_start', 'content' => '{template="test_template" group="plugins" location="front" app="test_app" params="$test_var"}', ), ), ), parent::hookData() ); } /* End Hook Data */Well, this gives me an error saying that the variable $test_var doesn't exist. So how can I achieve this?
Adriano Faria Posted August 19, 2015 Posted August 19, 2015 You can't do this. You'll need to extend any other file to pass your php variables/functions.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.