Support

  1. johnnys
  2. General
  3. Monday, March 24 2014, 04:40 PM
Hello,

I wonder if you could help me.

I am creating a customhtml module that displays the users name and registered date, so far the code I have works and is as follows;

{user firstname}, hello.

{source}

<?php
$user = JFactory::getUser();
echo 'Registered Date: ' . $user->get('registerDate');

?>

{/source}



Should I be using different syntax?

(note - I am using NoNumbers source plugin to embed php)

Thanks
admin Accepted Answer
Admin
You can use this:
Registe Date: {user registerdate}
  1. more than a month ago
  2. General
  3. # 1
johnnys Accepted Answer
Thanks for the reply however it doesn't work, I've tried both {user registerdate} and {user registerDate}

My code is below, it shows the name fine but register date is blank.

<p>{user firstname}, you are part of the Alumni</p>
<p>Registe Date: {user registerdate}</p>
  1. more than a month ago
  2. General
  3. # 2
admin Accepted Answer
Admin
Which version of Easy Profile?
  1. more than a month ago
  2. General
  3. # 3
johnnys Accepted Answer
1.1.3 - I'll update now and get back to you!
  1. more than a month ago
  2. General
  3. # 4
admin Accepted Answer
Admin
We have fixed this issue from version 1.1.7. Try to update (there should be no problems, but I recommend making a backup of your site before upgrading)
  1. more than a month ago
  2. General
  3. # 5
johnnys Accepted Answer
Hi,

Updated to latest version - now it simply shows

{user firstnamename}, you are part of the Alumni
Registe Date: {user registerdate}
  1. more than a month ago
  2. General
  3. # 6
admin Accepted Answer
Admin
ok,
go to the module, in option tab set Prepare Content on Yes.

We have changed our content plugin, now is more secure.
  1. more than a month ago
  2. General
  3. # 7
johnnys Accepted Answer
I have set prepare content, logged in and out, deleted cache and tried different syntax (uppercase & lowercase).

No change, still showing

{user firstnamename}, you are part of the Alumni
Registe Date: {user registerdate}
  1. more than a month ago
  2. General
  3. # 8
admin Accepted Answer
Admin
Can you please post me your site details? (you can use the form below the reply in Site Details tab)
  1. more than a month ago
  2. General
  3. # 9
johnnys Accepted Answer
Apologies my site is local currently so I cannot share a link. It isn't an emergency, I appreciate your excellent support.

I will post a link once the site is live.
  1. more than a month ago
  2. General
  3. # 10
admin Accepted Answer
Admin
ok,
only try to check the HTML code.

example wrong:
{user <span>firstname</span>}

example correct
{user firstname}

sometimes TinyMCE adds some HTML
  1. more than a month ago
  2. General
  3. # 11
johnnys Accepted Answer
Yea I checked that, I also am not using any editor - turned off.
  1. more than a month ago
  2. General
  3. # 12
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.
Sorry, the discussion is currently locked. You will not be able to post a reply at the moment.

Request Support

Support is currently Offline

Support Availability

Working days: Monday to Friday. The support staff is not available on weekends; in the most of cases tickets will not be answered during that time.

Reply time: Depending on the complexity of your support issue it's usually between a few minutes and 24 hours for paid members and about one week for free members. When we expect longer delays we will notify you.

Guidelines

Before you post: read the documentation and search the forums for an answer to your question.

When you post: include Site Details if you request a support (you can use the form below the reply in Site Details tab).

Auto Solved Question: If after a week the author of the post does not reply to a request by moderator, the question will be marked as resolved.

Language: only English

Search Users

Easy Profile® is not affiliated with or endorsed by Open Source Matters or the Joomla Project. Joomla is Free Software released under the GNU/GPL License.