Ziaur Rashid Posted September 11, 2017 Report Posted September 11, 2017 Hello Everyone, After checking some forum discussion, finally I've managed to check domain availabilty from external/home page Procedure: First go to (for edit) /{blesta-install-directory}/config/blesta.php & search following line: Configure::set("Blesta.csrf_bypass",array()); Now replace that line with following code (No need to disable automatic csrf token protection for whole site): Quote Configure::set("Blesta.csrf_bypass", array('config::preconfig','domain_form::index')); Now configure your external/home page domain checker form, here is my code: Quote I've tested this with logicboxes (resellerclub) & namecheap module. Check live: http://nextophost.com Thanks everyone isijosamua, bdacus01, bunny and 4 others 4 3 Quote
Ziaur Rashid Posted September 11, 2017 Author Report Posted September 11, 2017 40 minutes ago, BlestaStore said: Legend well done mate thanks mate Michael 1 Quote
HostCram Posted September 17, 2017 Report Posted September 17, 2017 Great! I am also going to do this. Quote
Ziaur Rashid Posted September 18, 2017 Author Report Posted September 18, 2017 On 9/17/2017 at 7:43 PM, HostCram said: Great! I am also going to do this. that will be awsome shakib bhai HostCram 1 Quote
Ziaur Rashid Posted September 22, 2017 Author Report Posted September 22, 2017 On 9/19/2017 at 4:56 AM, Laflecha said: excellent worked for me? glad to hear Quote
faysal Posted April 5, 2018 Report Posted April 5, 2018 i did not find "Configure::set("Blesta.csrf_bypass",array());" in blesta.php file i did find Configure::set('Blesta.csrf_bypass', []); " Quote
Michael Posted April 5, 2018 Report Posted April 5, 2018 1 hour ago, faysal.mahmud89@gmail.com said: i did not find "Configure::set("Blesta.csrf_bypass",array());" in blesta.php file i did find Configure::set('Blesta.csrf_bypass', []); " same thing it's just using [ ] now for array( ). Quote
faysal Posted April 5, 2018 Report Posted April 5, 2018 i place code in this page, can you check, http://digitalsynapsebd.com/domain01.php blesta install in a sub-doamin Quote
Blesta Addons Posted April 5, 2018 Report Posted April 5, 2018 6 hours ago, faysal.mahmud89@gmail.com said: i did not find "Configure::set("Blesta.csrf_bypass",array());" in blesta.php file i did find Configure::set('Blesta.csrf_bypass', []); " why not try our plugin , he will do the job for you Quote
isijosamua Posted October 6, 2018 Report Posted October 6, 2018 It's working great with Namesilo domain module. Thanks. Quote
zomex Posted June 28, 2019 Report Posted June 28, 2019 Thanks for the tutorial. The line example from this tutorial seems to have changed to: Configure::set('Blesta.csrf_bypass', []); Can anyone confirm the new the new edit to make to this line? Quote
Amit Kumar Mishra Posted June 28, 2019 Report Posted June 28, 2019 you may put this inside [] -- 'config::preconfig','domain_form::index' ------ and let me know if this works Quote
zomex Posted July 3, 2019 Report Posted July 3, 2019 On 6/28/2019 at 6:33 PM, Amit Kumar Mishra said: you may put this inside [] -- 'config::preconfig','domain_form::index' ------ and let me know if this works Thank you. Where/how should I put this? As a new line or? Quote
Tyson Posted July 3, 2019 Report Posted July 3, 2019 What he's suggesting to do is to assume "[]" is equivalent to "array()" and set the same line as the OP: Configure::set('Blesta.csrf_bypass', ['config::preconfig','domain_form::index']); Quote
Chrisdave Posted February 10, 2020 Report Posted February 10, 2020 Please i use wordpress is there anyway i can add a blesta domain checker on my page Quote
Web Hosting UK Posted November 12, 2020 Report Posted November 12, 2020 Do I need to update the code when I upgrade Blesta? Quote
renjith.vs Posted June 16, 2021 Report Posted June 16, 2021 On 4/5/2018 at 11:12 PM, faysal said: i place code in this page, can you check, http://digitalsynapsebd.com/domain01.php blesta install in a sub-doamin Hi Faysal Please could you guide me the way you did? I've a domain checker in my website and connected to link "mydomain.com/order/config/preconfig/domain" upon submission. But when clicked, I see general order page with all the package groups are shown. No domain checker and Not the keyword used in domain search bar in website Quote
renjith.vs Posted June 16, 2021 Report Posted June 16, 2021 On 9/11/2017 at 9:18 PM, Ziaur Rashid said: Hello Everyone, After checking some forum discussion, finally I've managed to check domain availabilty from external/home page Procedure: First go to (for edit) /{blesta-install-directory}/config/blesta.php & search following line: Configure::set("Blesta.csrf_bypass",array()); Now replace that line with following code (No need to disable automatic csrf token protection for whole site): Now configure your external/home page domain checker form, here is my code: Thanks everyone Hi Ziaur.. I could not see ORDER folder inside Blesta directory.. I've added the link "mydomain/com/billing/order/config/preconfig/domain" in to submit button of domain checker in my website.. But when clicked, it shows general order page with all other options.. No domain availability checker.. I've added ENOM module and configured with my reseller account.. Kindly guide me.. Quote
xtianfab Posted June 22, 2021 Report Posted June 22, 2021 Hi, I tried to follow the steps but I can't get it to work. Change the configuration in blesta.php and it looks like this: // Enable / disable automatic CSRF token verification Configure :: set ('Blesta.verify_csrf_token', true); // Bypasses automatic CSRF checking for a set of controllers and actions (eg. Array ('client_login :: index')) // CSRF checking is a security feature, BE SURE YOU KNOW WHAT YOU ARE DOING BEFORE SETTING THIS VALUE //Configure::set('Blesta.csrf_bypass', []); Configure :: set ('Blesta.csrf_bypass', ['config :: preconfig', 'domain_form :: index']); Then I put the form on the page where I need the domain checker: <div class="section-domain clearfix mb-5"> <h2>Registra tu dominio</h2> <p>Encuentre un dominio que exprese lo que hace y tome posesión de su marca</p> <form action="/client_area/order/config/preconfig/domain" method="post" class="d-flex"> <div class="input-group input-group-lg mr-2"> <div class="input-group-prepend"> <span class="input-group-text"> <i class="material-icons">Buscar</i> </span> </div> <input name="domain" type="text" class="form-control" placeholder="Ingresa tu dominio" aria-label="Buscar"> </div> <button class="btn btn-primary btn-lg" name="lookup" type="submit">Buscar</button> </form> </div> But when clicked, it shows general order page with all other options .. No domain availability checker. Can someone helpe? Regards Quote
mendozal Posted May 28, 2024 Report Posted May 28, 2024 Thanks. This is still working after all these years. Quote
Benjamin Biswas Posted May 31, 2024 Report Posted May 31, 2024 Thanks @Ziaur Rashid bhai, it's still working fine & I was able to perfectly be connecting with my html pages, same way it can be connect with WordPress or anything else. But I was modifying the code as per my need. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.