Jump to content

flangefrog

Members
  • Posts

    282
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by flangefrog

  1. Not sure what country you're in but I find local domains cost 3 - 4 times as much at most international registrars. You may want to check the latency to the registrar's API, my latency for US registrars is > 300ms and so Blesta doesn't feel very snappy. It's not a big deal though so you can just go with the one that has the best range and prices.

  2. Yeah, but I put it inside the blesta .htaccess file.

     

    Even if you put it in the Blesta .htaccess it is still going to be running the regex on the full url so ^/admin won't work as ^ denotes the start of the string.

    Side question: Noticed in your sig you nave a paypal express checkout on your "todo" list; is that the same as my feature request?

    Yes it is, however my priorities have changed so you won't see it within the next few months. I also haven't had a good look at how Blesta handles merchant gateways that only store a token instead of the actual card details. It may not be possible yet without core changes.

  3.  

    In this situation you would want AND though right!? It's basically saying if it's not that AND not that AND not that then send to forbidden?

     

    As for ranges, would this be right?

    RewriteCond %{REQUEST_URI} ^/admin
    RewriteCond %{REMOTE_ADDR} !^127\.0\.0\.1
    RewriteCond %{REMOTE_ADDR} !^128\.0\.
    RewriteRule .* - [F]
    

     

    AND is correct, I just mentioned that in case you wanted to use any other conditions. The IP range looks alright to me

  4. I wasn't able to make this work without manually modifying the css file. This vQmod inserts the .img-responsive class in structure.pdt, but isn't overwriting the .logo class in styles.css.

     

    According to About vQmod, "css & js files - These files are rendered at the browser level, not at the server level, so vQmod has no effect on these."

     

    Is that the case here, or do I need to hunt down a gremlin? I guess it doesn't really matter, because I can just continue to use my manually modified css file. But I'm curious.

     

    Yes, that's correct. not sure what I was thinking there. Try using a combination of vQmod for adding the img-responsive class and use the CSS & JavaScript toolbox for the CSS.

  5. I tried this myself and the domain was also registered. I then looked up the API docs and found this:
     

    We always recommend usage of a Demo Account Reseller Id and Password with the Test URL for authentication as against usage of your Live Account credentials. Usage of your Live Account credentials, even with the Test URL, will result in actions being performed in production environments.
    Additional Information
    Sign up for a Demo Reseller Account


    It seems the only purpose of the test URL is that it enables you to use a GET request for all your requests - even those that would usually require a POST request. This serves no purpose in Blesta so it should probably be removed from the module.

  6. Doesn't look like this domain is registered. If this is not the actual domain you registered and you have confirmed the other domain really has been registered then it's almost definitely an issue with Logicboxes not Blesta as it is submitting to the correct sandbox URL.

  7. Here is my module for Web Drive. I've been using this for several months but just recently rebuilt parts of it to work around some Web Drive quirks. Unfortunately I can't really recommend using Web Drive with Blesta until they make some big changes to their API and reseller system. Presently there are lots of bugs and missing features in their system. This might help if you are already using Web Drive though. Domains, contacts etc will need to be moved to a subaccount for each client in with the username set as the client's ID i.e. 1500. The module is only built to work with New Zealand domains. Web Drive use a reseller (OpenSRS) for their gTLD domains and have some bugs with gTLD contacts so it is better to use a module that directly interfaces with a top level reseller for gTLDs.

     

    The module does have some features not present in other registrar modules including input validation and pre-filling WHOIS data but allowing changes to be made. It also allows you to select Add, Transfer or Register when adding a service via the admin panel.

     

    There are still some things to do (look in code for TODO) but I may not do any more work on this module as I will be switching to another registrar.

    grqPdEh.gif

    module_webdrive_1.0.0.zip

  8. Naja7host's plugin allows you to add CSS, JavaScript and PHP to any page, vQmod allows you to edit any file included by PHP which usually means PHP and PDT files. Both allow you to make changes without actually editing core files, so the changes are persistent across versions. For this particular change I think vQmod is better suited for the job as it will disable the Tax ID field rather than just hide it, but it's not very important and you can use either. You can look inside the vQmod XML file to find which files need to be changed with Naja7host's plugin.

  9. I've narrowed it down to if I add any of these tags:  {module.*} {package.*} {service.*}

     

    It doesn't look like all those tags are available on the service creation template. On my installation it says these are the only available tags: {contact.first_name} {contact.last_name} {package.email_html} {package.email_text}. You probably want to use the package email template (welcome email) which can be found by editing the package.

  10. You will need to make these changes in the following files. * is a wildcard.

    plugins/order/views/templates/*/signup.pdt,

    plugins/order/views/templates/standard/types/registration/signup.pdt

     

    After

    $this->Form->fieldHidden("action", "signup"); 
    Add

    $this->Form->fieldHidden("username_type", "email"); 
    And remove the following code:

    <div class="radio">
    	<label>
    		<?php
    		$this->Form->fieldRadio("username_type", "email", ($this->Html->ifSet($vars->username_type, "email") == "email"), array("id"=>"username_type_email"));
    		$this->_("Signup.index.field_username_type_email");
    		?>
    	</label>
    </div>
    <div class="radio">
    	<label>
    		<?php
    		$this->Form->fieldRadio("username_type", "username", ($this->Html->ifSet($vars->username_type) == "username"), array("id"=>"username_type_username"));
    		$this->_("Signup.index.field_username_type_username");
    		?>
    	</label>
    </div>
    <div class="form-group username">
    	<?php
    	$this->Form->label($this->_("Signup.index.field_username", true), "signup_username");
    	$this->Form->fieldText("username", $this->Html->ifSet($vars->username), array("id"=>"signup_username", 'class' => "form-control", 'placeholder' => $this->_("Signup.index.field_username", true)));
    	?>
    </div>
    
    This won't completely prevent someone from using a custom username, to do that you could use the attached vQmod.

    username_type_email.xml

×
×
  • Create New...