Change position of the checkboxs for the GDPR part of the registration form

  • Cosmin Circu
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 years 11 months ago #113489 by Cosmin Circu
Hi there

How can I change the position of the checkboxes from right to left or from left to right of the text in the GDPR part of the registration form? I have all 3 active: mail, privacy and T&C active but 2 checkboxes are on the left of the text and 1 on the right of the text....

Kind regards
Cosmin

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

More
6 years 11 months ago #113501 by Tuan Pham Ngoc
Hi Cosmin

If you want to change it, you will need to customize the code. The file which you need to customize is components/com_osmembership/view/register/tmpl/default_gdpr.php

Take a look at it and try to change it to meet your need

Regards,

Tuan

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

  • Cosmin Circu
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 years 11 months ago #113547 by Cosmin Circu
Hi Tuan

Thank you for the reply.

I`ve identified the elements in the indicated php file, played around, but the css part is time-consuming to work on, at this stage anyway. I will have to take it as it is for now. I`m still in the learning curve of building my website and prefer to concentrate on other aspects.

Maybe, for the future, you guys could continue the great job you`ve started, and implement some sort of easy way to move elements around in the forms/views. While the current setup might be advantageous for the more advanced users in css and php, I don`t think it helps guys like me ... working on a small project after work.

Kind regards
Cosmin

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

More
6 years 11 months ago #113552 by Sven Mitscherlich
Hi there,
I think the div's and classes are a bit cluttered up. It should be fixed in the release of Membership Pro!!
I did the necessary changes by myself in the following files:
components/com_osmembership/view/register/tmpl/default_gdpr.php
components/com_osmembership/view/register/tmpl/default_terms_and conditions.php

Change default_gdpr.php in the lower part as follows:
Code:
(...) if ($this->config->show_subscribe_newsletter_checkbox) { ?> <div class="<?php echo $controlGroupClass; ?> osm-subscribe-to-newsletter-container"> <label class="<?php echo $controlLabelClass; ?> for="subscribe_to_newsletter"> <?php echo JText::_('OSM_JOIN_NEWSLETTER'); ?> </label> <div class="<?php echo $controlsClass ?>"> <input type="checkbox" name="subscribe_to_newsletter" id="subscribe_to_newsletter" value="1" class="osm_inputbox inputbox" /> </div> </div> <?php }

Change default_terms_and conditions.php in the lower part as follows:
Code:
(...) ?> <div class="<?php echo $controlGroupClass; ?> osm-terms-and-conditins-container"> <label class="<?php echo $controlLabelClass; ?> "> <strong><?php echo JText::_('OSM_ACCEPT'); ?>&nbsp;<a href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($article->id, $article->catid).'&tmpl=component&format=html'); ?>" class="osm-modal" rel="{handler: 'iframe', size: {x: 700, y: 500}}"><?php echo JText::_('OSM_TERM_AND_CONDITION'); ?></a></strong> </label> <div class="<?php echo $controlsClass ?>"> <input type="checkbox" id="osm-accept-terms-conditions" name="accept_term" value="1" class="validate[required] osm_inputbox inputbox" /> </div> </div> <?php }

Hope this helps somebody to fix this annoying issue.

... And keep up this great work and piece of software!
Greets from Germany
Sven
The following user(s) said Thank You: Cosmin Circu

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

More
6 years 11 months ago #113558 by Tuan Pham Ngoc
Hi Sven

Maybe you can upload the modified file here to help in case someone needs it?

Thanks for sharing the code

Regards,

Tuan

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

More
6 years 11 months ago #113591 by Sven Mitscherlich
Not possible ... LOL
tried attaching the files as txt files then submit button is disabled ...
And as inline text in Code brackets I get blocked by site Firewall because it suspects a SQL injection ...

Sometimes security is a pita ... LOL

Greets
Sven

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

More
6 years 11 months ago #113592 by Sven Mitscherlich
Last try as a zip Archive ... Keep fingers crossed ...

Seems to work ... LOL

File Attachment:

File Name: ChangedScripts.zip
File Size:2 KB
Attachments:
The following user(s) said Thank You: Tuan Pham Ngoc, Cosmin Circu

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

  • Cosmin Circu
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 years 11 months ago #113597 by Cosmin Circu
Hi there guys

That is exceptional work, Sven! Done backup of the site and new files uploaded to the server ( at least I know how to do that :P ) and looks great. There is somehow more symmetry to it :P

Thank you all for the great support.
Cosmin

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

More
6 years 11 months ago #113603 by Tuan Pham Ngoc
Thanks Sven. If there are other customers like the layout you made, I will look at it and steal your layout :D

Tuan

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