Skip to Content Skip to Menu

[SOLVED] Content of tabs in profile view and profile edit

  • startup
  • startup
  • OFFLINE
  • Posts: 113
  • Thanks: 7
  • Karma: 1
  • Add-ons
9 years 10 months ago - 9 years 10 months ago #254800 by startup
Hi there,

I'm wondering about the following situation:

In the profile view the user image ("portrait") and the "canvas" image are displayed in certain places (canvas image in top background area and the portrait image left on top of it).

Now in profile edit, each one of these seems to use a very own tab: "portrait" and "canvas".

When I now try to make either one of them or both part of another tab in profile edit, e.g. called "Information about myself", then this is possible. However in the profile view then the canvas and portrait elements are then also displayed in a different place, completely destroying the layout.

Is there a way to avoid this or to work around this? Because it really seems weird to have tabs in profile edit for a single item each (one for canvas and another one for portrait) in addition to the normal tabs, like e.g. "Information about myself".

Thank you very much for any help!
Last edit: 9 years 10 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48480
  • Thanks: 8283
  • Karma: 1443
9 years 10 months ago #254893 by krileon
Create a new tab within CB > Tab Management then add a Custom HTML field to it that is set to display on profile only with the following substitution.

[cb:userfield field="canvas" /]

Now ensure the new tab is in the "Canvas Background" position with "Div without Title" display.

This allows your canvas field to be output on profile view anywhere you want, but the actual canvas field can be put on any tab you want. You may end up with the canvas field display twice on profile view. One solution for this is to make sure the tab it is on is set to not display on profile, hide the profile view display (will break your substitution), or use CSS to hide its profile view row.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

  • startup
  • startup
  • OFFLINE
  • Posts: 113
  • Thanks: 7
  • Karma: 1
  • Add-ons
9 years 10 months ago #256048 by startup
Thank you very much!

I did that but now I only see the canvas picture displayed within this tab in the profile edit view.
What I'm after is the canvas picture edit functionality in a tab other than the canvas tab itself, so that the user can change his canvas picture from within this tab.

And the same for profile image.

Thank you!

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

  • heyai
  • heyai
  • OFFLINE
  • Posts: 324
  • Thanks: 79
  • Karma: 24
9 years 10 months ago - 9 years 10 months ago #256084 by heyai
Kyle, this is what I tried:

Create new tab: Canvas Display
Position: Canvas Background
Display Type: Div without Title
Save and Close

Create new Field: Canvas Display
Type: Custom HTML
Tab: Canvas Display
Show in Profile: Yes, 1 Line without Title
Show on Registration: No
Show on Profile Edit: No
Description: [cb:userfield field="canvas" /]
Save and Close

Upon making the original Canvas field not visible on Profile the canvas field is empty.
Sorry if I am/we're missing something obvious :-)

Also, when you change the display status in the Field Manager view you get interesting feedback:

Message

Row no successfully!


hey-ai - the community for asian guys and non-asian girls

The search bar is your friend, not just decoration!
Last edit: 9 years 10 months ago by heyai.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48480
  • Thanks: 8283
  • Karma: 1443
9 years 10 months ago - 9 years 10 months ago #256159 by krileon
The original canvas field needs to be set to display on profile. Shutting off its profile display will cause the profile substitution to respect that parameter and display nothing. The original canvas field instead should be on a tab in the not shown on profile position to hide it from profile view. The edit display of the Custom HTML field should be set to No so it doesn't show up in profile edit. This effectively should use the original canvas field for profile edit/registration and the Custom HTML for profile view.

If you want the original canvas field to display on a tab that is visible on profile then you need to use CSS to suppress its display as any parameters turning off its display will affect your substitution. So for example you could use the following CSS.

Code:
.cbProfile #cbfr_17 { display: none; }

The 17 in the above is the field id. This should hide its entire field row. This shouldn't affect the substitution display though as that'd have a different field row id.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Last edit: 9 years 10 months ago by krileon.
The following user(s) said Thank You: heyai

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

  • startup
  • startup
  • OFFLINE
  • Posts: 113
  • Thanks: 7
  • Karma: 1
  • Add-ons
9 years 10 months ago #256224 by startup
Hi Krileon,

Thanks very much for your immediate follow-up. I must admit I am just a little more confused now. Following your instructions does something but not what I am trying to accomplish. Perhaps I did not explain clear in the beginning what the result is I am trying to achieve. Allow me to try and explain once more:

1. I'd like to show the Canvas field in a tab 'About user' in the user's profile edit view (instead of in the Canvas tab in the user's profile edit view). And I'd like to not show the Canvas tab in the profile edit view at all. That way the user could set his canvas image in the same tab where s/he fills, e.g., his birthday, etc.
2. I'd like for the Canvas image to show in the standard Canvas Background position on the users profile (non-edit view), when people visit his/her page.

Just to make sure that there is no misunderstanding. When I follow your instructions, things change on the profile edit and profile view, but not in the desired fashion.

If you could please try once more and let me know if you had understood the desired outcome from my original request as explained above. Or if there was a misunderstanding and I should indeed try something different to keep the look on the profile view as is, but just add the canvas field into another tab in the profile edit view, so I can get rid of the Canvas tab in the profile edit view.

Thanks again so much!

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

Moderators: beatnantkrileon
Powered by Kunena Forum