Skip to Content Skip to Menu

[SOLVED] Adding graphic to a user profile

  • GUEST
13 years 2 months ago - 13 years 1 month ago #158788 by
We are looking for some way to add a graphic, a little award, to specific users profiles. Not a replacement for their rank, just something to add to their profile. The image will be about 100px square and will not be issued to all users. Something we can control..

Anyone have a suggestion?
Last edit: 13 years 1 month ago by krileon.

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

  • nant
  • nant
  • OFFLINE
  • Posts: 25531
  • Thanks: 1830
  • Karma: 877
13 years 2 months ago #158796 by nant

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

  • GUEST
13 years 1 month ago - 13 years 1 month ago #158818 by
Thanks Nant, and how do I selectively apply it to specific users?

I just tried that, created the field but I didn't see how to insert the image.
Last edit: 13 years 1 month ago by .

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

  • nant
  • nant
  • OFFLINE
  • Posts: 25531
  • Thanks: 1830
  • Karma: 877
13 years 1 month ago - 13 years 1 month ago #158819 by nant
Replied by nant on topic Re: Adding graphic to a user profile

bob britt wrote: Thanks Nant, and how do I selectively apply it to specific users?


Well, the image field is available on every profile, so you could upload an image to a specific profile.

I guess you might want to use the delimiter field logic to show image based on specific field value.

Since you have not really given exact requirements I will assume that you have a single image that you want to show on a single user profile.

To do this you can create a CB checkbox field - lets name it cb_imageyn - and make it read only and put it on a tab that is only seen by superadmins. This way the user has no idea that such a field exists.

As a superadmin you can use CB User Manager to visit the profile of the user you want to the image to show up on and edit his/her cb_imageyn field to check mark it.

Then create a delimiter field with the following logic:

[cb:if user="#displayed" cb_imageyn="1"]
show image html code goes here
[/cb:if]

You can upload the image to your stories media area and reference it above.
Last edit: 13 years 1 month ago by nant.

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

  • GUEST
13 years 1 month ago #158821 by
Sorry for editing my post after you had answered. Thanks for the info, I will check it out and see if I can apply it.

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

  • GUEST
13 years 1 month ago - 13 years 1 month ago #158843 by
I got the image field working, all or none right now.
I have a admin tab created, only visable onthe back end.
I have a check box that toggles on and off..

This delimiter Field , where do i put that code and how does it know where to put that image?
Last edit: 13 years 1 month ago by .

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

Moderators: beatnantkrileon
Powered by Kunena Forum

Facebook Twitter LinkedIn