Skip to Content Skip to Menu

[#7194] File as attachment in the letter to the administrator

  • GorYa
  • GorYa
  • OFFLINE
  • Posts: 8
  • Thanks: 1
  • Karma: 0
6 years 5 months ago - 6 years 5 months ago #305313 by GorYa
Good evening. Since a component is used as a registration form, in some cases it is necessary for the user to attach any supporting document in the form of a file. Unfortunately, at present, in the letter to the administrator only a link to the file in the user's profile comes. If the field is hidden for display in the profile, then the link does not work, because there is simply no such field. Is it possible that the file downloaded at registration would come as an attachment in the letter to the administrator? Thank you
Last edit: 6 years 5 months ago by krileon. Reason: Added [#7194] tag to subject

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48536
  • Thanks: 8290
  • Karma: 1445
6 years 5 months ago #305325 by krileon

Is it possible that the file downloaded at registration would come as an attachment in the letter to the administrator?

Nope. Just be sure the field is accessible on the users profile. Alternative is move it to a tab that's on a not shown on profile tab position (this allows the substitutions to work, but hide the field from profile view) and use the raw substitution of [FIELD_NAME] and it should just be the URL to access the file directly.


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.

  • GorYa
  • GorYa
  • OFFLINE
  • Posts: 8
  • Thanks: 1
  • Karma: 0
6 years 5 months ago - 6 years 5 months ago #305343 by GorYa
Thank you. This is certainly an alternative, but unfortunately, not in my case. It is unfortunate that the moderator can not view the full profile with fields that are hidden from the user. The optimal solution would be to add the option "Send to the administrator in the letter" in the "File" field or in the Configuration-Registration tab (in this case it is not the same as sending it to the moderator for approval). For me, the decision is still open. Thanks again for the good advice.
Last edit: 6 years 5 months ago by GorYa.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48536
  • Thanks: 8290
  • Karma: 1445
6 years 5 months ago - 6 years 5 months ago #305371 by krileon
One option is to purchase and use CB Privacy and force the fields privacy to Private, which allows the profile owner and moderators only to see the field. This can also be done for entire tabs.

Alternatively you can use the Layout parameters and substitutions to determine who can see the fields values. See the below substitution tutorial for substitution usage information.

www.joomlapolis.com/documentation/279-community-builder/tutorials/18353-using-substitutions-throughout-cb

You'd basically set the Profile Value Layout under Parameters > Layout within your field to something like the below.

[cb:if user="#me" viewaccesslevel includes "##"][value][/cb:if]

Replace ## with your CB Moderator view access level id found in Users > Access Levels. This should display the fields value only to those users. This can be expanded on further using AND/OR cases as well as elseif and else cases as shown in the tutorial above.


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: 6 years 5 months ago by krileon.
The following user(s) said Thank You: GorYa

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

  • GorYa
  • GorYa
  • OFFLINE
  • Posts: 8
  • Thanks: 1
  • Karma: 0
6 years 5 months ago - 6 years 5 months ago #305392 by GorYa
Thank you. Method using [cb:if user="#me" viewaccesslevel includes "##"][value][/cb:if] solved my problem. This is an exceptionally simple and excellent solution that helped me. The topic can be changed to Solved.
The only problem is with the formation of links to the download (apparently the case in the router), as the link comes to the mail, where & is replaced by
Code:
&
When you continue on the link, you are re-adding the symbol and the browser is already running a double
Code:
&
and there appears an error "no indexing", only manual copying and pasting it into the browser helps.
Last edit: 6 years 5 months ago by GorYa.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48536
  • Thanks: 8290
  • Karma: 1445
6 years 5 months ago #305409 by krileon
If you're adding it to an email sent as part of the registration workflows ensure you've enabled support for HTML in those emails within CB > Configuration > Registration otherwise you need to be more specific as to which email is giving you problems.


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.

Moderators: beatnantkrileon
Powered by Kunena Forum