Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

Creating Modal/Pop Up window for Terms and Conditions link in upload image page

  • AlexRag
  • AlexRag
  • OFFLINE
  • Posts: 501
  • Thanks: 33
  • Karma: 6
10 years 11 months ago - 10 years 11 months ago #237030 by AlexRag
Further to the recommendation made in this post: www.joomlapolis.com/forum/153-professional-member-support/206312-solved-create-terms-and-conditions-in-community-builder?start=6#215989

Can a popup window also be created where the same "Term and Conditions" link appears when a user id uploading a profile image. The link is preceded by the sentence:

By clicking "Upload", you certify that you have the right to use distribute photo and that it does not violate the Terms and Conditions.
Last edit: 10 years 11 months ago by AlexRag.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48473
  • Thanks: 8281
  • Karma: 1443
10 years 11 months ago - 10 years 11 months ago #237078 by krileon
Yes, using the before profile edit display and before registration form display triggers you can add your needed jQuery to make the link popup as a jQuery model window. See the original topic for example of how this is done.


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

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

  • AlexRag
  • AlexRag
  • OFFLINE
  • Posts: 501
  • Thanks: 33
  • Karma: 6
10 years 11 months ago - 10 years 11 months ago #237135 by AlexRag
Having trouble getting this to work.

The sentence "By clicking "Update", you certify that you have the right to distribute this photo and that it does not violate the Terms and Conditions" appears in the profile edit area (upload profile image), but the "Terms and Conditions" link is not giving me a popup.

I tried these triggers that you mentioned (both together an independently)
onBeforeUserProfileEditDisplay,onBeforeRegisterFormDisplay

but it messing up the tab display.

Is the code from the previous post need to change (I copied it exactly)




Another option is for me to remove the Sentence and link altogether. Can I just comment out the info in the language.php file? OR in there another way?
Attachments:
Last edit: 10 years 11 months ago by AlexRag.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48473
  • Thanks: 8281
  • Karma: 1443
10 years 11 months ago #237179 by krileon
You need to modify the jQuery to target that fields terms and conditions URL. For example the below selector will target every image field row that has a link.

.cbft_image a

Sorry, there is nothing more I can do for you. We do not provide custom coding and have already provided a fully working example that can be modified. If you need further coding assist consider hiring a contract developer to write any code you may need.

but it messing up the tab display.

Typically means you've a fatal JS error. Review your browser error console for details on the error.

Is the code from the previous post need to change (I copied it exactly)

Yes, it needs to modified. Just copying it isn't going to work.


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.

  • AlexRag
  • AlexRag
  • OFFLINE
  • Posts: 501
  • Thanks: 33
  • Karma: 6
10 years 11 months ago - 10 years 11 months ago #237368 by AlexRag
Fair enough. One last question:

What is the best way just want to disable the message ""By clicking "Update", you certify that you have the right to distribute this photo and that it does not violate the Terms and Conditions"

Would commenting out some language items do the trick?
Last edit: 10 years 11 months ago by AlexRag.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48473
  • Thanks: 8281
  • Karma: 1443
10 years 11 months ago #237400 by krileon

What is the best way just want to disable the message ""By clicking "Update", you certify that you have the right to distribute this photo and that it does not violate the Terms and Conditions"

You'd need to modify the language string and change it to whatever you like.

Would commenting out some language items do the trick?

No, the terms and conditions link is in that message so removing it would ensure it absolutely won't work. Making this work for an image field means editing all of the jQuery to target it specifically. It wasn't designed for image fields, but was designed for the terms and conditions registration field.


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