Jump to content

Eduardo G.

Member
  • Content Count

    192
  • Joined

  • Last visited

  • Days Won

    2

Eduardo G. last won the day on November 15 2018

Eduardo G. had the most liked content!

Community Reputation

5 Neutral

About Eduardo G.

  • Rank
    Level 2 Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Thanks, Kian I've been working on that approach too, just didn't want to reinvent the wheel 😕 But it seems there's no other way. Well, I could fill a feature request xD xD
  2. Hi all. I have created several multi-language addons using "lang" folder inside the addon folder: https://developers.whmcs.com/addon-modules/multi-language/ And it's ok as long I use those translations from _output and _sidebar. But then my hooks cannot take that advantage. They just can't see _LANG variables Also method Lang::trans() is not valid because it doesnt take into account those custom addon's language files. Of course I cannot ask the customers to edit their global lang overrides, also that wouldn't be correct. So question is: how could I use custom addon own lang files and translation from inside this adddon's hook file? TIA.
  3. As I read: ->useCurrent() Set TIMESTAMP columns to use CURRENT_TIMESTAMP as default value Thats not what I'm trying, just want the first timestamp field's defaults works just like the second one
  4. Hi all I have a strange problem. When creating a table from my addon's activate() method I get a default value for the first timestamp field. For example: Capsule::schema()->create('sample_table', function($table) { $table->increments('table_id'); $table->integer('age'); $table->string('name', 100); $table->timestamp('created'); $table->timestamp('updated'); $table->float('amount', 8, 2); $table->text('description'); }); This creates a table like this: CREATE TABLE `sample_table` ( `table_id` int(10) unsigned NOT NULL AUTO_INCREMENT, `age` int(11) NOT NULL, `name` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `created` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), `updated` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `amount` double(8,2) NOT NULL, `description` text COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`table_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci See default value for "created" and "updated"? Can someone explain why? Or how should I get it filled by zeros like the other timestamp field? Thank you
  5. Hi all! I have created an addon module, with two language files. It's working fine with _ADDONLANG vars. But then I create a hook that displays a message in client area home, and I need to access _ADDONLANG from that hook I tried LANG, _ADDONLANG, Lang::trans... and can't get it working. Can somebody tell me if addon's _ADDONLANG variables are accessible from hook?
  6. Check https://github.com/mdpuma/whmcs-notification-telegram
  7. That sounds like a web application firewall like modsec. It's triggering an alert because of the POSTed data
  8. Glad to see it's fixed in version 8 😄
  9. Thanks, @string I think I've see the problem: when I look at ticket list from the admin panel I see the Submitter column shows the client name, which is not the submitter. But then when I open that ticket from client area I see the sender is a Staff member. So I think it was warking before but admin panel was showing wrong submitter.
  10. Hi! I'm using OpenTicket local API call to automatically create a ticket for a client. I want to create the ticket as admin, but cant find the way to set admin username in the ticket (`admin` column in `tbltickets` table) There's an admin bool parameter: "Is an Admin opening the ticket" that I set to true, but nothing changes. In the end, OpenTicket keeps creating ticket as client, not as admin. Can you hel me creating an admin ticket?
  11. First you need a load balancer, lets put HAProxy Then you create scripts to use with agent-check so each node can report a dynamic load value (%) based on feee memoty or whatever you want to return from your script to the agent-check https://cbonte.github.io/haproxy-dconv/2.2/configuration.html#5.2-agent-check
  12. Sorry, I thought I was talking to the original OP, but seems you've hijacked his post with another issue.
  13. Fine! next thingk I would try is enabling PHP error logging and wait for the next daily run Maybe there's a provisioning module returning an error so the daily cron stops in the iddle of the run
  14. Anyway, can you see if daily cron appear in the activity log? Next step should be looking in the cron log
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated