Email Field - Connected User Data

More
13 years 2 months ago #32046 by mauriestate
Hi,

We are providing possibilities for frontend users to upload their own items (articles), we are using contact form to be available for each item and this contact form requires to upload an email in the email field created within FC.

However, each time a registered user will submit a new item, he needs to fill in his email, is there a way that this field is auto filled for connected users? So that, even if the field is present, the email of the connected user is already present and no need for the user to add the email again and again?

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
13 years 2 months ago #32050 by ggppdk
Hello,
are all users (that submit content) registered?

or do you use a FLEXIcontent "submit" menu item that allows submission of content by unregistered users?


-- 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 review. Thanks!

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

More
13 years 2 months ago #32065 by micker
i think you need to use rsform ore ckform to mix flexicontent submission end registred information

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
13 years 2 months ago #32091 by brandonking

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

More
13 years 2 months ago #32100 by ggppdk

ggppdk wrote: Hello,
are all users (that submit content) registered?

or do you use a FLEXIcontent "submit" menu item that allows submission of content by unregistered users?


I ask because if all your users are registered then you could create a select field that only has one option:

like this:
FAQ article

Just in the above:
1. do not add any prefix/suffix texts
2. in the DB query use:
Code:
SELECT email as text, value as text FROM #__users WHERE id = {item->created_by}
3. use all other steps described in FAQ article


-- 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 review. Thanks!

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

More
13 years 2 months ago #32114 by brandonking
I think mauriestate wants a function which inserts current registered(author) user's email address into a email field while submitting an item submission form, not the item author's email address.

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

More
13 years 2 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 review. Thanks!

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

More
13 years 2 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
13 years 2 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 review. Thanks!

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

More
13 years 1 month 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
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