Skip to Content Skip to Menu

Fetch user ID or email address

  • gtrennert
  • gtrennert
  • OFFLINE
  • Posts: 128
  • Thanks: 4
  • Karma: 0
9 years 3 months ago #265415 by gtrennert
Replied by gtrennert on topic Fetch user ID or email address
the Strict Standards problem :
I think this is related to the php version you use and the php version that existed when this plugin was written - but this is no probleme - on production sites the display of this messages is turned off and you can meke the same thing by editing your php.ini file :
Look for a line like :
error_reporting = E_ALL ...
and add & ~E_STRICT to turn of the strict standard messages

the login problem is normal because your sql query contains errors because at the end there is the id missing :
... WHERE viewer_id = id AND profile_id = (here there should be the id you want to compare to

Please Log in or Create an account to join the conversation.

9 years 3 months ago #265417 by huguesmarcil
Replied by huguesmarcil on topic Fetch user ID or email address
Ok, I still have to learn how to use SELECT, FROM and WHERE. But once the MySQL field returns the right email adress, how can I implement it to the webadress link ?

Isn't it risky to edit php.ini ? I'll have to do it every time I update Joomla ?

Please Log in or Create an account to join the conversation.

  • gtrennert
  • gtrennert
  • OFFLINE
  • Posts: 128
  • Thanks: 4
  • Karma: 0
9 years 3 months ago #265418 by gtrennert
Replied by gtrennert on topic Fetch user ID or email address
you could perhaps make a select to get directly the mail address, no ?
this would be kind of :
select : email
from : #__users
where : id = {USERID}

for php.ini : I suppose that you work on a local machine with your own apache server
here you can do what you like
the only thing is - if you are also programming in php on this server - the messages will not appear and so you can't react to this messages and make the necessary corrections.
Update Joomla does not affect php.ini

Please Log in or Create an account to join the conversation.

9 years 3 months ago - 9 years 3 months ago #265652 by huguesmarcil
Replied by huguesmarcil on topic Fetch user ID or email address
THANK YOU ! It works ! The only thing left to do is to use this info in the Breezingform forms, I'll keep you aware wether it works or not.

Actually I am not on a local server, and my host refuses to let met access the PHP.ini file. I will need to do that through the htaccess file, if possible.
Last edit: 9 years 3 months ago by huguesmarcil.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum