hi there we have a code on the old test site that worked perfect
{if $auth.user_id}
{assign var="user_data" value=$auth.user_id|fn_get_user_info}
{$lang.sub_balance} <br>You have $ {$user_data.fields.36}, left of {$user_data.company} Subsidy</br>
{/if}
but we installed the 4.17 version as the trial and this is throwing all kinds of errors.
What has changed that this no longer works?
the error message on the bright template is
Syntax error in template "string:{if $auth.user_id} {if $user_info.firstn..." on line 9 "{assign var="user_data" value=$auth.user_id|fn_get_user_info}" modifier 'fn_get_user_info' not allowed by security setting
no clue what it means or how to fix this before the server gets moved to php 8.1
Thank you
I put this in func.php in my_changes folder and removed the line {assign var="user_data" value=$auth.user_id|fn_get_user_info} that has removed the error from the template but still isn’t showing any of the users information
This is the code in the template and the fields are still blank on the front end
{if $auth.user_id}
{$lang.sub_balance} <br><b>You have $ {$user_data.fields.36}, Left of the current {$user_data.company} Subsidy</b></br>
{/if}</p>
Thank you folks
I’ve added the controller as per your instructions and added this file app/addons/my_changes/controllers/frontend/init.post.php
and it still will not show the users data on the homepage after they log in
This code works to show the first name and last name and email address but it won’t show the company name. very strange to me!
Syntax error in template "string:if $auth.user_id} {$user_data|fn_print_..." on line 3 "{$user_data|fn_print_r}" modifier 'fn_print_r' not allowed by security setting
this is the code in the block
if $auth.user_id}
{$user_data|fn_print_r}
{/if}
I took everything else out of the block just to make sure it wasn’t something else in the older code