- Posts: 10
- Thank you received: 0
Disable Colorbox Popup
- Nikolai van Nes
- Topic Author
- Offline
- New Member
-
Less
More
3 years 9 months ago #147885
by Nikolai van Nes
Disable Colorbox Popup was created by Nikolai van Nes
Is there any way to fully disable the colorbox popup for the registration form?
I have created overrides but the colorbox javascript still get's loaded. When overriding the default_js file I can disable the colorbox loading a little bit.
But the file "site-register-default.js" in the media folder of com_osmembership also contains a refereal to .colorbox which causes an error. And this error prevents me from using a third party modal plugin.
If it would be possible to override this media folder file (site-register-default.js") also it would solve my "issues".
By the way; when keeping the colorbox enabled I get multple popups because Membership and the third party modal plugin get activated both at the same time
Any help is very much appreciated
I have created overrides but the colorbox javascript still get's loaded. When overriding the default_js file I can disable the colorbox loading a little bit.
But the file "site-register-default.js" in the media folder of com_osmembership also contains a refereal to .colorbox which causes an error. And this error prevents me from using a third party modal plugin.
If it would be possible to override this media folder file (site-register-default.js") also it would solve my "issues".
By the way; when keeping the colorbox enabled I get multple popups because Membership and the third party modal plugin get activated both at the same time

Any help is very much appreciated

Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
3 years 9 months ago #147886
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Disable Colorbox Popup
Hello
We do not have an option to allow disabling colorbox. However, I just updated code of the extension to allow overriding the javascript files:
1. Access to My Downloads menu item, download latest package, upgrade it to your site
2. Now, to override that site-register-default.js file (shouldn't you override site-register-default.min.js ?) , you need to make a copy of that file, add override. to the original name
So the override file will be in same folder, but with different filename:
override.site-register-default.js
override.site-register-default.min.js
Please try that and let me know if you need more help
BTW, what's the library you are using for making the modal?
Tuan
We do not have an option to allow disabling colorbox. However, I just updated code of the extension to allow overriding the javascript files:
1. Access to My Downloads menu item, download latest package, upgrade it to your site
2. Now, to override that site-register-default.js file (shouldn't you override site-register-default.min.js ?) , you need to make a copy of that file, add override. to the original name
So the override file will be in same folder, but with different filename:
override.site-register-default.js
override.site-register-default.min.js
Please try that and let me know if you need more help
BTW, what's the library you are using for making the modal?
Tuan
Please Log in or Create an account to join the conversation.
- Nikolai van Nes
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 10
- Thank you received: 0
3 years 9 months ago - 3 years 9 months ago #147887
by Nikolai van Nes
Replied by Nikolai van Nes on topic Disable Colorbox Popup
Hi Tuan,
Thanks for the quick respons - just downloaded the version in My Downloads (but still version 2.26.0???) and installed it.
No matter what I do; the site-register-default.min.js (yes, that's the one I should use, my bad) isn't "replaced" with my override.site-register-default.min.js.
I've tried to place the overrides in serveral different folders:
./templates/my_template/js
./templates/my_template/js/com_osmembership
./templates/my_template/js/com_osmembership/js
./templates/my_template/media/com_osmembership
./templates/my_template/media/com_osmembership/js
The files are called:
override.site-register-default.js
override.site-register-default.min.js
What am I missing here?
Greetz, Nikolai.
p.s. I am using the Regular Labs Modals plugin.
Thanks for the quick respons - just downloaded the version in My Downloads (but still version 2.26.0???) and installed it.
No matter what I do; the site-register-default.min.js (yes, that's the one I should use, my bad) isn't "replaced" with my override.site-register-default.min.js.
I've tried to place the overrides in serveral different folders:
./templates/my_template/js
./templates/my_template/js/com_osmembership
./templates/my_template/js/com_osmembership/js
./templates/my_template/media/com_osmembership
./templates/my_template/media/com_osmembership/js
The files are called:
override.site-register-default.js
override.site-register-default.min.js
What am I missing here?
Greetz, Nikolai.
p.s. I am using the Regular Labs Modals plugin.
Last edit: 3 years 9 months ago by Nikolai van Nes.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
3 years 9 months ago #147888
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Disable Colorbox Popup
Hello Nikolai
Please put the file on the same folder with it's location. So the file must be placed in media/com_osmembership/js folder and it will be loaded to replace the original one
Regards,
Tuan
Please put the file on the same folder with it's location. So the file must be placed in media/com_osmembership/js folder and it will be loaded to replace the original one
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Nikolai van Nes
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 10
- Thank you received: 0
3 years 9 months ago #147891
by Nikolai van Nes
Replied by Nikolai van Nes on topic Disable Colorbox Popup
Well, sadly enough no luck with that.
Place them in media/com_osmembership/js as:
override.site-register-default.js and override.site-register-default.min.js
But still the original get's loaded
Than again, the version for download (in My Downloads) is 26.0.0 and is the same as I already had installed. Shouldn't this be another version? If that's the case I do not have access to it.
Thakns for your help so far!
Greetz, Nikolai.
Place them in media/com_osmembership/js as:
override.site-register-default.js and override.site-register-default.min.js
But still the original get's loaded

Than again, the version for download (in My Downloads) is 26.0.0 and is the same as I already had installed. Shouldn't this be another version? If that's the case I do not have access to it.
Thakns for your help so far!
Greetz, Nikolai.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
3 years 9 months ago #147892
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Disable Colorbox Popup
Hello Nikolai
That's strange. I tested and it worked OK here. Maybe it is not working because you made override to components/com_osmembership/view/register/tmpl/default_js.php before? Please change :
1. Remove the line
2. And add the line:
Better compare the original file with the modified file to see difference and apply the change
Regards,
Tuan
That's strange. I tested and it worked OK here. Maybe it is not working because you made override to components/com_osmembership/view/register/tmpl/default_js.php before? Please change :
1. Remove the line
Code:
->addScript(Uri::root(true) . '/media/com_osmembership/js/site-register-columns.min.js');
2. And add the line:
Code:
OSMembershipHelperHtml::addOverridableScript('media/com_osmembership/js/site-register-default.min.js');
Better compare the original file with the modified file to see difference and apply the change
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Nikolai van Nes
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 10
- Thank you received: 0
3 years 9 months ago #148002
by Nikolai van Nes
Replied by Nikolai van Nes on topic Disable Colorbox Popup
Oh darn, thought I had allready replied to your message.
Well, you are absolutely right; still had the override for the default_js.php in my template folder. Plain stupid. Removed it and your media folder override works perfectly!
Thanks for your good and quick support!
Greetz, Nikolai
UWiX
Well, you are absolutely right; still had the override for the default_js.php in my template folder. Plain stupid. Removed it and your media folder override works perfectly!
Thanks for your good and quick support!
Greetz, Nikolai
UWiX
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
3 years 9 months ago #148014
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Disable Colorbox Popup
Great Nikolai. Could I ask what library you are using to replace colorbox? I'm searching for one to replace colorbox in my extensions in the future
Regards,
Tuan
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Nikolai van Nes
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 10
- Thank you received: 0
3 years 9 months ago #148187
by Nikolai van Nes
Replied by Nikolai van Nes on topic Disable Colorbox Popup
Hello Tuan,
Im using the Modal plugin from Regular Labs and that one uses Colorbox also - but a bit of modified version. That's why the 'conflict' occured - two popup's with the same Information because two scripts want to use the colorbox settings
There are a lot of colorbox type scripts but the colorbox is the most flexibel for changing everything by using plain simple CSS. I would stick to that one
Greetz, Nikolai
Im using the Modal plugin from Regular Labs and that one uses Colorbox also - but a bit of modified version. That's why the 'conflict' occured - two popup's with the same Information because two scripts want to use the colorbox settings

There are a lot of colorbox type scripts but the colorbox is the most flexibel for changing everything by using plain simple CSS. I would stick to that one

Greetz, Nikolai
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
3 years 9 months ago #148188
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Disable Colorbox Popup
Thanks Nikolai. I'm asking the question because colorbox still depends on jQuery while in Joomla 4, vanilla js script is preferred. If we could not find a better replacement, we can stay with it for now. Thanks for the info.
Regards,
Tuan
Regards,
Tuan
Please Log in or Create an account to join the conversation.
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.