Skip to Content Skip to Menu

[SOLVED] show and edit tab only when owner

12 years 2 months ago - 12 years 2 months ago #207961 by stefantausg
[SOLVED] show and edit tab only when owner was created by stefantausg
hello,
i need a tab, in which only the owner the fields can show and edit.
in the frontend the fields are hidden, but if the owner logged in, schow all the fields in the tab.
I need to create a new user-lever?

Thanks
Stefan

cb 1.8.1
cb privacy 1.3
cb conditional 1.8.5
Last edit: 12 years 2 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48444
  • Thanks: 8279
  • Karma: 1443
12 years 2 months ago #207973 by krileon
Replied by krileon on topic Re: show and edit tab only when owner
Move the fields to a tab that is in a not shown on profile position. Once done use a delimiter field to display the fields values. This allows you to use IF substitutions to check that the viewing user is the user being viewed. See tutorials within my signature for further substitution usage information.


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.

12 years 2 months ago #207981 by stefantausg
Replied by stefantausg on topic Re: show and edit tab only when owner
Hi Kyle

it does not work yet

i use this in the delemitter field. i hidden the tab on a position that not displayed.

[cb:usertab tab="32" user="#displayed" /]

need i insert a user ID at the # ?

Now all users can view this field in the profile view, but it will be visible only to the owner.

Thanks Stefan

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48444
  • Thanks: 8279
  • Karma: 1443
12 years 2 months ago #207993 by krileon
Replied by krileon on topic Re: show and edit tab only when owner
You need to use IF substitutions. Please see tutorials with in my signature where I have detailed various substitution usages as well as provided several IF examples at the bottom. Example as follows.

[cb:if user_id="myid"][username][/cb:if]

The below might also work.

[cb:if user_id="myid"][cb:usertab tab="32" /][/cb:if]


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.

12 years 2 months ago #208001 by stefantausg
Replied by stefantausg on topic Re: show and edit tab only when owner
Yes... Great... B)

Thanks

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

Moderators: beatnantkrileon
Powered by Kunena Forum