Skip to Content Skip to Menu

Fetch user ID or email address

9 years 6 months ago #264229 by huguesmarcil
Fetch user ID or email address was created by huguesmarcil
Hello,

I would like the Community Builder profile view to display a link that opens a form to contact the user. The goal is to make people able to contact each other’s with attachments and through complex forms (I am using Breezingforms).

This means I need to find the variable which echos the userid (or email address) in the profile view and assign this variable to my link so the form could be automatically prefilled with the recipient information.

Do you have an idea about the name of the variable? I am also open to other suggestions.
Thank you in advance :) !

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

  • gtrennert
  • gtrennert
  • OFFLINE
  • Posts: 128
  • Thanks: 4
  • Karma: 0
9 years 6 months ago #264387 by gtrennert
Replied by gtrennert on topic Fetch user ID or email address
I'm guessing only :
Breezingforms seems to support parameters as seen here
And perhaps you can save the link in a msql field (plugin for cb) ?

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

9 years 6 months ago #264578 by huguesmarcil
Replied by huguesmarcil on topic Fetch user ID or email address
Thank you for your answer!
Can you precise what CB plugin you are talking about ?
Yes BreezingForms supports parameters and my question is just to know by which parameter I should replace “1234” in the following link to get the userID info of the page:
Code:
<a href="index.php?option=com_breezingforms&ff_name=MYCONTACTFORM&tmpl=component&userid=1234">Contact User</a>

Any idea ?

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

  • gtrennert
  • gtrennert
  • OFFLINE
  • Posts: 128
  • Thanks: 4
  • Karma: 0
9 years 6 months ago #264581 by gtrennert
Replied by gtrennert on topic Fetch user ID or email address
The plugin is here

First you could create a webadress field
Then you could create a my sql field that saves only a value to the webadress field - once you will be in the plugin interface you will understand how to get user id

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

9 years 5 months ago - 9 years 5 months ago #265413 by huguesmarcil
Replied by huguesmarcil on topic Fetch user ID or email address
Hello and sorry about the wait for my answer.

Are you sure this plugin still works with Community Builder ?

Since I publish a new mysql field I receive this message :

Strict Standards: Only variables should be assigned by reference in <span>/</span>home<span>/</span>partagedzk/www/components/com_comprofiler/plugin/user/plug_cbmysqlfield/cb.mysqlfield.php on line 40


And other bugs on the website.

Or is it just something I did wrong somewhere ?
Last edit: 9 years 5 months ago by huguesmarcil.

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

9 years 5 months ago - 9 years 5 months ago #265414 by huguesmarcil
Replied by huguesmarcil on topic Fetch user ID or email address
The other bug on the site is that I simply cannot connect anymore to Community Builder on the frontend, here is what is said :

1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 SQL=SELECT CONCAT(name, ' - ', viewscount) AS mysqlfield FROM n68wn_comprofiler_views, n68wn_users WHERE viewer_id = id AND profile_id =

Last edit: 9 years 5 months ago by huguesmarcil.

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

Moderators: beatnantkrileon
Powered by Kunena Forum