1. mrmark71
  2. General
  3. Tuesday, March 24 2015, 10:44 AM
Hi people,

On the website of Easy-Profile I see a module on the right side which show my avatar, name, day of today, free and pro member, a logout button and useful links.
I want that also in my website. Which module is this?

Regards, Mark
Accepted Answer
admin Accepted Answer
Admin
I see your site and found the container class.

to choose size of avatar on right side you can add this code at the end of file templates/2015_bznvrienden/css/template.css
.module img.avatar{
width:50px;
}


you can consider putting some other style like this (see screenshot ;) )
.module img.avatar{
width:50px;
padding:3px;
border:1px solid #ccc;
background:white;
}


replace 50px with your size.
Attachments (1)
  1. more than a month ago
  2. General
  3. # Permalink
admin Accepted Answer
Admin
To render user data we use our Content Plugin (docs at https://www.easy-profile.com/docs/26-plugin-content.html) on simple Custom HTML module*

to see avatar we use {user avatar_mini}
to see name {user name}
and last visit date {user lastvisitdate}

Plugin to render subscription status is provided by other subscription component

All buttons are simple links. Logout button has this link index.php?option=com_users&task=user.logout, normally this not work because Joomla check Tokens before do logout action, to do this we have edit a core Joomla file.

* To trigger content plugins you need to enable "Prepare Content" paramter in module options

NOTE: I'd like to be more precise, but unfortunately this component (forum) after the update not display more HTML tags, we hope to solve soon. original post (with HTML code) was here https://www.easy-profile.com/support/i-would-like-to-make-the-login-logout-module-look-like-yours.html#reply-6132
  1. more than a month ago
  2. General
  3. # 1
mrmark71 Accepted Answer
Hi,

I get already the avatar, but it is big and not round.
How do i get it round?

Regards, Mark
  1. more than a month ago
  2. General
  3. # 2
admin Accepted Answer
Admin
Hi,
sorry for late reply.

BIG
when you use {user avatar_mini} the system load avatar thumbs without styles, so you need to add some CSS rule to fit your image

ROUND
Easy Profile not apply any style, it use Bootstrap Classes. Avatar image have as default CSS classes these:
- avatar - this become from alias of field, for example if you create a image field with alias "testimage" than this image will have "testimage" class
- img-circle - this become from paramter Class attribute into field paramters, for avatar field is a default value (see screenshot)

img-circle is a standard bootstrap class that make rounded your image, so I think in your CSS fields missing this class.

Anyway, please post me your site link, we will send you CSS code to add at your site ;)
Attachments (1)
  1. more than a month ago
  2. General
  3. # 3
mrmark71 Accepted Answer
Thanks for your answer.
In the profile page and userlist page are images round.
But i need to know acxactly the css code and where to put this for the module at the right site of your website with the loged in user. That image is not round at the moment.

Als this image is the bigone in steat of the thumbnail one.

my site is still in state of build. so i set offline the site for visitors.

Regards, Mark
  1. more than a month ago
  2. General
  3. # 4
mrmark71 Accepted Answer
And if i use {user avatar_mini} in de module for the FrontPage on the right side, then the image is less clear, but still as big as when i show {user avatar} avatar.
So it seems that the full size is still shown but with the thumbnail image in it.

Look at the attachment.
  1. more than a month ago
  2. General
  3. # 5
admin Accepted Answer
Admin
Hi,
And if i use {user avatar_mini} in de module for the FrontPage on the right side, then the image is less clear, but still as big as when i show {user avatar} avatar.
This because the size of image depends of your CSS style, for example many templates have this CSS rule:
img{max-width:100%}
or
img{width:100%}

so small and big image will have same size in your layout.


You can simply add these Rule for example
Size
.your-module-container img.avatar{width:60px;}

Round
img.img-circle{border-radius:1000px;}

To tell you exactly what we should see your add, all depends on your template.
  1. more than a month ago
  2. General
  3. # 6
mrmark71 Accepted Answer
Hi,

I cant find it. So i put the css file of my template as attachment.
Maybe you can do this for me?

Thank you for your help...

Regards,
Mark
  1. more than a month ago
  2. General
  3. # 7
mrmark71 Accepted Answer
Content Protected
  1. more than a month ago
  2. General
  3. # 8
mrmark71 Accepted Answer
Content Protected
  1. more than a month ago
  2. General
  3. # 9
mrmark71 Accepted Answer
Hi,

I have almost done it. Only the image stays big. I can get it small.
In the attachment you see how the module now is.

Question:
Is the modulecontainer the name of the module this the picture contains?
So:
.your-module-container img.avatar{width:60px;}

which ".your-module-contnainer" becomes: ".Gebruiker-online img.avatar{width:60px}


How do i get the image more small?

regards,
Mark
  1. more than a month ago
  2. General
  3. # 10
admin Accepted Answer
Admin
Hi,
you can choose size of image by CSS so you can change example from 60px to 40px or what you prefer

Is the modulecontainer the name of the module this the picture contains?
No, this depends on your template and on module parameter Advanced->Menu Class Suffix. You can also use Right Side CSS identifiers, but also this depends on your template.

To help you we need to see your site :(
  1. more than a month ago
  2. General
  3. # 11
mrmark71 Accepted Answer
Content Protected
  1. more than a month ago
  2. General
  3. # 12
mrmark71 Accepted Answer
Content Protected
  1. more than a month ago
  2. General
  3. # 13
mrmark71 Accepted Answer
Hi,

Well thank you for your support.
I did solve the large image problem.
But actually it isn't round anymore now.
Now its 50px, but it's normal not round.

So what do i have to do to combine those two?


Regards, Mark
  1. more than a month ago
  2. General
  3. # 14
mrmark71 Accepted Answer
Hi,

It is done now. It works.

Thank you very much for your support.

Regards,
Mark
  1. more than a month ago
  2. General
  3. # 15
  • 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.