special fields: like user's name as a default field value

More
12 years 4 months ago #33698 by magj
Hi

How may I have a field that is pre-filled by user's name when a user is logged into the frontend. (or other user related parameters , like email)

regards
magj

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

More
12 years 4 months ago #33699 by ggppdk
Use this FAQ article for current author of the item (but not for currently logged user):

flexicontent.org/documentation/f ... uthor.html

-- Do not change "name as text"
-- But instead of
"id as value"
use:
"name as value" for saving author's fullname into the DB
"email as value" for saving author's email into the DB

Otherwise you will need
-- either a custom field that does this
-- or add a default that is replace via a system plugin


-- 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 4 months ago #33701 by magj
thank you so much for the great Idea of plugin, I couldn't find a ready made plugin for that purpose yet,

is there anyway to insert php code in a field? (sorry if it seem silly) :oops:
i.e.
Code:
$user =& JFactory::getUser(); echo $user->username;


thanks again


[EDIT]
I used "mgetsys" plugin
extensions.joomla.org/extensions/contact...back/greetings/16341

and it worked for logged in , user's name and email address
[/edit]

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.330 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