Email Field - Connected User Data

More
12 years 6 months ago #32127 by ggppdk
You mean select email address of any joomla user?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
12 years 6 months ago #32150 by mauriestate
Hi,

Sorry for the delay in my reply, it's quite strange, I am sure I select the 'Notify me when a reply is posted' but I didn't! :shock:

Some of you got the point but I might have not been clear enough about what I want to achieve.

We are using ContactForm Pro to provide contact form in all submitted items, the plugin tag looks like this:
Code:
{contactformpro mailto="user@email.com" subject="Message from MauriResto.com" title="Contact Author" label="Send Email to Author" error_message="Message not sent." success_message="Your message has been successfully sent to the author." display="popup" style="icones" /}

Therefore, I placed:
Code:
{contactformpro mailto="
in the prefix text and
Code:
" subject="Message from MauriResto.com" title="Contact Author" label="Send Email to Author" error_message="Message not sent." success_message="Your message has been successfully sent to the author." display="popup" style="icones" /}
in the suffix text.

Now, each time a 'registered' user, I say registered user because only registered user have the permission to add new item(s) on our website. Therefore, when a registered user submit a new item, he always needs to enter his email address in the email field that we have created to generate the contact form in frontend so that this contact form is connected to the registered user email address.

Now, micker says something about RSForm, this is basically what we want to do, in RSForm, they use a code like this:
Code:
//<code> $formuser=JFactory::getUser(); return $formuser->email; //</code>

To automatically pre-fill registered user email address, so this is basically what we want to do, micker mention to make a mix between flexicontent and rsform, we are already using rsform on our website but is there not a simpler way to make this working in FC?

Offering professional real estate and investment services in Mauritius. Visit us at www.sjkestate.com to also see the power of Flexicontent with Joomla to promote our services.

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

More
12 years 6 months ago #32151 by ggppdk
We have this FAQ article for Joomla Contact form:

How to create a field that links to contact page of current item author

Use it exactly modifying 2 things:
- Replace prefix/suffix texts with your
- Replace SQL query with:
Code:
SELECT email as value, email as text FROM #__users WHERE id = {item->created_by}


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
12 years 5 months ago #32353 by mauriestate

ggppdk wrote: We have this FAQ article for Joomla Contact form:

How to create a field that links to contact page of current item author

Use it exactly modifying 2 things:
- Replace prefix/suffix texts with your
- Replace SQL query with:

Code:
SELECT email as value, email as text FROM #__users WHERE id = {item->created_by}


Hi ggppdk,

Thank you very much for your clear explanation, this solution is exactly what I was looking for and it solves my issue.

Offering professional real estate and investment services in Mauritius. Visit us at www.sjkestate.com to also see the power of Flexicontent with Joomla to promote our services.

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 1.130 seconds
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save