Skip to main content
Topic: Not working ActiveUser.id (Read 2827 times) previous topic - next topic

Not working ActiveUser.id

Text field :ActiveUser.id is not working in Add Page


Parse error: syntax error, unexpected 'id' (T_STRING), expecting ',' or ')' in C:\xampp\htdocs\mymm\app\views\partials\education\my_education.php on line 56




Re: Not working ActiveUser.id

Reply #1
please anybody help me
how to get there ACTIVE USER ID

Re: Not working ActiveUser.id

Reply #2
This is a new bug introduced with the latest release.

Please use <?php echo USER_ID ?>
Here are other user fields record you can use for setting default value in a textbox.
USER_NAME
USER_EMAIL
USER_PHOTO
USER_ROLE

Re: Not working ActiveUser.id

Reply #3
Do you have an ETA on a bug fix for this issue?  Even if it is only 2.4.2 or something?

 

Re: Not working ActiveUser.id

Reply #4
Hi
I had maybe the same, maybe a similar problem.
Solves like this: I added the field which needs to have the user_id later in ADD / EDIT forms (mark checkbox, that the field is shown), bit then display as NONE and set the USER_ID there as default.
Also make sure, you have configured phprad to actually use authentication - as this is where you define the user id which seems to be used later for this purpose.


Olaf
(working with vue 2.62)