Jump to content

mitsos

Members
  • Posts

    51
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

2,392 profile views

mitsos's Achievements

Newbie

Newbie (1/14)

7

Reputation

  1. Manager (www.manager.io), since it's available on *nix.
  2. It was privately developed and development on it has pretty much stopped. EDIT: In my "too many things crammed in a small brain" mode, I've missed the post above about someone working on a different ispconfig module. Please ignore my comment about our module.
  3. mitsos

    Awesome!

    People were complaining about pro-rata because spending time with auditors or quite possibly spending a few months in a cold cell isn't exactly the same as not being able to register a domain. EU is a hellhole for invoicing/transactions. Electronic invoices need to be authenticated (yes, signed with a certificate), not only generated as a PDF. We are looking the other way for now on that, even though the law said all businesses need to implement it by January 1st 2013. "The billing solution we are currently using doesn't implement the signage just yet" isn't a solution that will fly for ever though. EU's new VAT law (in effect as of the day after tomorrow, January 1st 2015, VERY few know that) mandates that VAT must be payed in each customer's country, for electronic services (yes that means all of you webhosters). That means keeping track of VAT rates across the EU, and charging clients accordingly. Even *before* the client enters his/her billing address. My recommendation is to focus more on the business side (keeping track of required legislation and things needed to be done to be inline with it) than to focus on "features". Please, don't get this post wrong. I'm not bashing anyone. I'm just saying that there are far more important things that need to be done first.
  4. Managed to do what I was trying to do by injecting a small php snippet in admin_clients_addservice_basic.pdt that checks if the module is my module, then sets the appropriate inline style for the lis. On to the next roadblock.
  5. This is what I'm trying to do. Now if some could explain how to set the class to those specific <li>s, it would be much appreciated. EDIT: no, changing the .css isn't the answer I'm looking for. I don't want to change every pad's lis, just this specific module's lis
  6. Nope, still can't get it to work as expected. The label is attached to the right of the checkbox, class=inline. I'm either incredibly stupid, or this is an incredibly complex way to code.
  7. I just have another question that I can't seem to figure out on my own. I need to convert the cpanel's module admin add service page to the screenshot shown. Imagine the textfields being replaced by the checkboxes, so that everything is in a single line (row). So the line should be a textfield for the domain, and a couple (or more) checkboxes with a label attached to them. I can't manage to attach the label to the checkboxes though. Moving further to the right, there will be a button to add another domain and configure it using the same fields for it too, depending on the number of domains allowed in the service's template. Responses in plain english are appreciated (ie dumb the response down). Thanks in advance.
  8. Hi all, How can I call a function, capture the resulting array, and work on that array inside the module's manage.pdt file? Function is correctly declared in the module's .php file, array is correctly constructed, but I can't seem to figure out how to do the actual call to the function inside the manage.pdt file. In the manage.pdt file, the function should be called inside a widget (a different one than the manage module one) and some manipulation should be done on the resulting array. Any help is appreciated.
  9. g.sovgut@predictlabs.com add that to the list as well. Shady is when you tell them you can't currently offer them a dedicated server, but they reply "ok, when you have more servers please let us know", without you quoting them with a price first. Stay away from them.
  10. Yeap, it was a combination of head scratching and cursing that got it working :-)
  11. FINALLY! private function getPackages($module_row) { try { $db = $this->DBConnection($module_row->meta->host_name, $module_row->meta->data_base, $module_row->meta->user_name, $module_row->meta->pass_word); $query = $this->DBQuery($db); } catch (PDOException $e) { }
  12. I still can't get it to fire up the query. A few more details: The code snippet is from a module I'm developing for a custom control panel at the-place-that-puts-food-on-the-table. The code is supposed to connect to a remote (keyword, NOT the blesta DB) database (which it does correctly) and execute a select query on the *remote* database (which doesn't work). The query is supposed to return packages for the package creation page, using the remote database for their names/specs. I'm basically stuck on this step and don't know how to fix it. Any help is much appreciated.
  13. See? I knew I was doing it wrong. Thanks for pointing me in the right direction
  14. I can't get a select statement to fire up. Admitedly PHP isn't my strong suit, but I've tried everything I can think of. This function is supposed to return results for creating a new package. Here are the related functions: private function DBConnection ($host_name, $data_base, $user_name, $pass_word) { $db = new PDO ("mysql:host=$host_name;dbname=$data_base", "$user_name", "$pass_word"); } private function getPackages($module_row) { if (!isset($this->DataStructure)) Loader::loadHelpers($this, array("DataStructure")); if (!isset($this->ArrayHelper)) $this->ArrayHelper = $this->DataStructure->create("Array"); try { $db = $this->DBConnection($module_row->meta->host_name, $module_row->meta->data_base, $module_row->meta->user_name, $module_row->meta->pass_word); $stmt = $db->query("SELECT * FROM Packages"); $packages = $stmt->fetch(PDO::FETCH_ASSOC); } catch (PDOException $e) { } return $packages; } Turning on MariaDB's general query log shows the connection going through, but the query isn't executed. Please feel free to throw rotten tomatoes if you see a stupid mistake somewhere.
  15. Never mind figured it out. Scratched mysqli and went pdo. If only I could get past the connection successful... The connection goes through, but a blank pink warning box shows up. If the connection is forced to fail (eg wrong username) the correct warning shows up... Even more headbanging.
×
×
  • Create New...