Jump to content

Blesta Addons

Alpha Developers
  • Posts

    4,868
  • Joined

  • Last visited

  • Days Won

    389

Posts posted by Blesta Addons

  1. Sounds like you should just create a plugin to compliment the module. That's what we did with our license management system.

     

    Modules are only intended for service management. Plugins are for everything else.

    this is my attention , i don't need to work in two side , but if not possible is ok no probleme .

    but we want something that let us attach plugin to a module .

    http://www.blesta.com/forums/index.php?/topic/2670-attach-plugin-to-a-module/

  2. Hello

     

    i lot of us has a probleme with some nav links, this link to be adjusted it needthe change group staff or delete the files in the cache directory .

     

    so here is the plugin that let you delete the cache with a simple click ...

     

    TESTED and Work Perfectly .

     

    INSTALLATION :

    1- Download the plugin file FROM GITHUB
    2- upload the emptycache Directory to Plugins
    3- Go to settings/plugins/ install Empty Cache Plugin

    4 - A new link under tools will be added to empty the cache .
    4- You Are Done , ENJOY .


    ANY Suggestion , FeedBack , Bugs , Please Post it inthis thread .

    GItHub Reposity for my Free Blesta Works  ---  https://github.com/blesta-addons

     

     

     

     

  3. Is this for v3.2 of Blesta using the bootstrap-styled LogicBoxes module?

     

    We may be interested in integrating some of these features, but anything based on what you've already written we would need to review first. It'd be great to see some documentation/explanation on what the new features do and how they function so we can gauge whether to include them.

     

    I think it's good to see others making improvements to existing modules. Thanks for the contribution.

    Hello Tyson

    yes, is the default core module shipped with blesta 3.2 . i have added some function/feature to it .

    you can check it and test it , any change are welcome .

    to test it well , delete the order-id field in some domaine service , and test it with the core module , then upload my module and it it .

    the first post i write what i have added in the module , and what i will add next days .

    is better for all together to be in the core module .

  4. Could you rename it to Logicboxes Reloaded not Logicboxes please I think that would be better so people can try both :).

    Hello Mate ,

    it based on the core module , and is easy to delete and upload the core one .

    if we use another name , we need every time change the backage and affect it to the module .

    we hope if blesta staff can add this usefull feature ot the core one .

  5. Hello All,

     

    IF YOU WANT TO THANK ME WITH A LITTE DONATION , you can do it with PAYPAL DONATION from here

    i want to share my updated logicbox Module , the module has some usefull feature .

     

    - Fix the missed ORDER-ID field in database for imported services .

    - Added/Changed Public Function in the module

    - getorderid : with it you can get the order-id of a Domain .

    - UpdateOrderID : This is the magic Function to update database if no order-id is available .

    - EditService : it was empty , now it Support the no_module use for local edit  .

    - Added Child Name Service Tab (ADD -EDIT - DELETE ) - Just For client Side NOW -

    - Rearranged Navs for whois Tab To be Justify .

    - Add nav-bill to see the active Nav in contacts whois .

     

    TODO

     

    - RAA Verification Status -if not verified , resend Verification Button-

    - Domain Status , Active , Lock , Suspended (with reason)

    - DOMAIN FORWARDING tab Settings

    - DNS MANAGEMENT tab Settings

    - Change EPP Code + Send it Via Email .

    - Protect Privacy Option (Enable/Dissable in module setting) - if enabled the client has option to use it FREE .

    - DNSSEC 

    - MOVE Domain To another Account .

     

    INSTALLATION :

     

    1- Download the module file FROM GITHUB

    2- upload the Logicboxes Directory to Compenents/modules

    3- Go to settings/modules/ update logicboxes module

    4- You Are Done , ENJOY .

     

    UPDATE

     

    1- Download the module file FROM GITHUB

    2- upload the Logicboxes Directory to Compenents/modules

    3- Go to settings/modules/ update logicboxes module

    4- You Are Done , ENJOY .

     

     

     

    ANY Suggestion , FeedBack , Bugs , Please Post it inthis thread .

     

    GItHub Reposity for my Blesta Works  ---  https://github.com/blesta-addons

  6. Hello Tyson ...

    after checking and testing the code , the data is not saved in database , and no error is returned

    can please check with me
     

    Loader::loadModels($this, array("Services"));
    $order_id = $this->getorderid($package->module_row , $vars->{'domain-name'});
    $parts = explode('/', $_SERVER['REQUEST_URI']); // get the service id from url
    $this->Services->edit($parts[sizeof($parts)-2], array('domain-name' => $vars->{'domain-name'} , 'order-id' => $order_id)); 
    if (($errors = $this->Services->errors())) {
     echo $errors ;
    }
  7. thanks tyson , i have got it with your code .
     

    $parts = explode('/', $_SERVER['REQUEST_URI']); // get the service id from 
    $this->Services->edit($parts[sizeof($parts)-2], array('domain-name' => $vars->{'domain-name'} , 'order-id' => $order_id)); 
    $errors = $this->Services->errors();

    best regards .

  8. The service isn't available to getAdminEditFields--why do you need it?

    i will give you my scenario .

    after importing from v2.5 , all the domains (logicbox) has not the order-id fields . we should change it manually in phpmyadmin (about 3500 fields is like imposible now )

    what i have found as solution ;

    make the logicbox module get the order-id by the domain , that we have made it .

    make the logicbox module update the order-id in the adminedit view , that we have made it .

    now we need to make the update silence in editadmin view and the client service info function , when a client/staff/admin enter to the service view , we check if the order-id field exist , if not we get the order-id and update the services fields auto .

    we have all don now , it remain just hwo we can update the service fields with the domain-name and order-id

    public function getAdminEditFields($package, $vars=null) {
      if ($package->meta->type == "domain") {
      
       Loader::loadHelpers($this, array("Html"));
      
       $fields = new ModuleFields();
      
       // Get The orderid if missing in the database (usefull for imported services)
      
       if (property_exists($fields, "order-id"))
        $order_id = $vars->{'order-id'};
       else
        {
         $order_id = $this->getorderid($package->module_row , $vars->{'domain-name'});    
         $parts = explode('/', $_SERVER['REQUEST_URI']);   // here we get the servie id    
         $this->editService($package, $parts[sizeof($parts)-2] , array('domain-name' => $vars->{'domain-name'} , 'order-id' => $order_id) , $parent_package=null, $parent_service=null);
        }
      
       // Create domain label
       $domain = $fields->label(Language::_("Logicboxes.domain.domain-name", true), "domain-name");
       // Create domain field and attach to domain label
       $domain->attach($fields->fieldText("domain-name", $this->Html->ifSet($vars->{'domain-name'}), array('id'=>"domain-name")));
       // Set the label as a field
       $fields->setField($domain);
      
       // Create Order-id label
       $orderid = $fields->label(Language::_("Logicboxes.domain.order-id", true), "order-id");
       // Create orderid field and attach to orderid label
       $orderid->attach($fields->fieldText("order-id", $this->Html->ifSet($order_id), array('id'=>"order-id")));
       // Set the label as a field
       $fields->setField($orderid);  
     
       return $fields;  
      }
      else {
       return new ModuleFields();
      }
    }
  9. i get this error

     

    Non-static method Services::edit() should not be called statically, assuming $this from incompatible context on line 946 in /home/xxxxxxx/public_html/blesta/components/modules/logicboxes/logicboxes.php

    when i use the $this->editService i get this fatal error :

     

    Fatal error: Cannot access private property ModuleFields::$fields in /home/xxxxxxx/public_html/blesta/components/modules/logicboxes/logicboxes.php on line 374

    my code is the fallowing :

    $this->editService($package, $fields , array('domain-name' => $vars->{'domain-name'} , 'order-id' => $order_id));

    EDIT :

    this is because maybe i should send the service with the call function .

    How i can get the $service inside the "getAdminEditFields" .

  10. Hello All,

    this thread is a old one that we have already talked, but we have not arrived to any solution .

    my sugggestion is to allow plugins register thier own tabs/actions to the modules . , a simple scenario for that .

    i have the modules instaled cpanel , plesk directadmn , interwoks ect ....

    i want to code plugin , let say csf_plugin , i want my plugin be able to attached extra tab to the cpanel modules , so we will have a new tab csf_unblock , with that tab we can acheive the plugin function . this is better than editing a cpanel or plesk module to include what is not needed by all .

    another scenario

    attache a dedicated softacoulos plugin to cpanel/interwork/directadmin ....ect ..

    native cpanel module + extended cpanel plugin attached to it :)

    in general attach a custom plugin to a module .

    but the best of the best is to make ability to attach tabs/actions of plugins/modules and viceversa .

    the old thread was here http://www.blesta.com/forums/index.php?/topic/673-attach-plugin-to-a-module/

    also i suggest blesta stuff to make the orpholan thread to a new section like archive .... because a lot of old threads are not listed in the forums .

    best regards

×
×
  • Create New...