× Support requests and general discussions

Privacy policy link

More
20 Mar 2012 19:23 - 01 Apr 2012 10:42 #1 by R Macmillan
R Macmillan created the topic: Privacy policy link
The checkbox field, that enables users to confirm that they accept a privacy policy or relevant terms and conditions, works well. However, it would be useful to be able to create a hyperlink from the field label to the actual privacy policy statement. Users who have not read the policy would then be encouraged to click the link and read the policy.

Could this be added as an option in the back-end setup?

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

More
21 Mar 2012 17:27 - 17 Mar 2013 15:59 #2 by Demis [Fox-Labs]
Demis [Fox-Labs] replied the topic: Privacy policy link
Checkbox fields accept html code in their name.
Try the following name for your checkbox:
I accept your <a href="yourlink.html">privacy policy</a>
and of course set its state to "required".

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

More
24 Mar 2012 11:48 - 17 Mar 2013 16:12 #3 by R Macmillan
R Macmillan replied the topic: Privacy policy link
Thank you.

It would be better to have the privacy policy display in a popup window, with scroll bars, so that the user is not directed away from the contact form - any idea how that might be done?

Thank you for your support.

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

More
24 Mar 2012 12:23 - 26 Mar 2013 01:22 #4 by Demis [Fox-Labs]
Demis [Fox-Labs] replied the topic: Privacy policy link
Add the following to your template
<?php JHTML::_('behavior.modal'); ?>
which should in turn automatically add the following code in the <head> section:
<script type="text/javascript" src="http://yoursite/media/system/js/mootools.js"></script>

<script type="text/javascript" src="http://yoursite/media/system/js/modal.js"></script>

<script type="text/javascript">
  window.addEvent('domready', function() {<
    SqueezeBox.initialize({});
    $$('a.modal').each(function(el) {
      el.addEvent('click', function(e) {
        new Event(e).stop();
        SqueezeBox.fromElement(el);
      });
    });
  });
</script>

<link rel="stylesheet" href="http://yoursite/media/system/css/modal.css" type="text/css" />

Now you are allowed to use Joomla modal windows using class="modal" and rel="..."
<a href="/privacy-policy.php?tmpl=component"
class="modal"
rel="{handler: 'iframe', size: {x: 800, y: 500}}">Accept our terms and conditions</a>

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

More
14 May 2012 14:49 - 15 May 2012 13:57 #5 by Susanne Hartmann
Susanne Hartmann replied the topic: Link to article within form
Thanks a lot - the hyperlink works perfectly! :)
But I failed with the popup-thing so far...

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

More
04 Apr 2013 19:23 - 04 Apr 2013 19:25 #6 by Moroni
Moroni replied the topic: Checkboxes on multicolumn
It's just that i was reading now. ;)

I just ask where you place the last piece of code?

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

More
05 Apr 2013 18:52 #7 by Demis [Fox-Labs]
Demis [Fox-Labs] replied the topic: Checkboxes on multicolumn

where you place the last piece of code?

In the name of the field.
Usually you may call a checkbox field as follows:
"Accept our terms and conditions".

In the example above, on the contrary, you have to use the full HTML code as the field's name. In this way the HTML code will be sent to the browser.

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

More
26 Jul 2013 15:13 #8 by Graeme Moffat
Graeme Moffat replied the topic: Checkboxes on multicolumn
A tip - you might have to use
<a href="index.php/privacy-policy?tmpl=component"
if not using SEF rewrite.

And, if you cut-and-paste the whole thing, make sure that there is a space between
=component" and class="modal", and between class="modal" and rel=...
It may look like there are when displayed in the "Page bottom text" box, but there aren't!!

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

More
25 Feb 2015 09:58 #9 by arianna
arianna replied the topic: Checkboxes on multicolumn
perfect.

but How can I insert in modal window the css code ? (exactly I need te param text font type , h3 format and print icon )

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

More
20 Apr 2015 12:04 - 20 Apr 2015 12:06 #10 by Graeme Moffat
Graeme Moffat replied the topic: Checkboxes on multicolumn
As suggested, the modal window appears in an i-frame, which is effectively a separate HTML page, and its CSS is controlled by the template's stylesheet.
To style your h3, for example, use <h3 class="privacyH3"> with a rule such as
h3.privacyH3 {
   color: red;
   font-size: 2em;
}
and do the same for fonts, ie. use classes with unique names. Add these rules to the template.css (or whatever it's called), not the FoxContact stylesheets.

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