Jump to content

timnboys

Members
  • Posts

    436
  • Joined

  • Days Won

    13

Posts posted by timnboys

  1. On 3/23/2018 at 6:55 PM, Paul said:

    Are you using the REMI packages? If so, then that would probably work. What's the output of:

    rpm -qa | grep php

    I fully recommend using the REMI packages they seem to have included the mailparse extension with there php extensions which makes it 100% more easier to build up a new vm with blesta on it.

  2. 2 hours ago, evolvewh said:

    Thanks for keeping everyone updated. We have stopped using the Blesta Support Plugin so we won't be reporting updates on this but I did see they've finally included this in v4.3 so this thread won't be needed for much longer.

    I hope so, this is the only reason I updated everyone since I am like everyone else hoping v4.3 comes along and removes this manual editing requirement for this(this is just to help people achieve the same effect until then).

  3. On 3/5/2016 at 10:03 PM, evolvewh said:

    I just added this and wanted to share. I do not see any issues on our side and I did not do anything to modify the clients views. I looked at their view and it's acceptable as is for us.

     

    Blesta Version: 3.6.1

     

    Warning: BACKUP your files and database first!

     

    If anyone has suggestions or sees something I did wrong, please let me know.

     

    Files to modify:

     

    plugins/support_manager/views/default/admin_tickets.pdt

     

    Add after Line 7:

    array('name'=>$this->("AdminTickets.index.category_on_hold", true) . " <span>(" . $this->Html->($status_count['on_hold'], true) . ")</span>", 'current'=>($this->Html->ifSet($status) == "on_hold" ? true : false), 'attributes'=>array('href'=>$this->base_uri . "plugin/support_manager/admin_tickets/index/on_hold/", 'class'=>"ajax")),

     

    plugins/support_manager/language/en_us/support_manager_tickets.php

     

    Add after Line 51:

    $lang['SupportManagerTickets.status.on_hold'] = "On Hold";

     

    plugins/support_manager/language/en_us/admin_tickets.php

     

    Add after Line 27:
    $lang['AdminTickets.index.category_on_hold'] = "On Hold";

     

    plugins/support_manager/models/support_manager_tickets.php

     

    Add after Line 266:

    where("support_tickets.status", "!=", "on_hold")->

     

    Add after Line 1029:

    'on_hold' => $this->_("SupportManagerTickets.status.on_hold"),

     

    plugins/support_manager/controllers/admin_tickets.php (adds the status count)

     

    Add after Line 90:
    'on_hold' => $this->SupportManagerTickets->getStatusCount("on_hold", $this->staff_id),

     

    Add after Line 149:
    'on_hold' => $this->SupportManagerTickets->getStatusCount("on_hold", $this->staff_id, $client->id),

     

    In your database, go to the support_tickets table and under structure, add the following to the Status column: 'on_hold' (I added it right before 'closed')

    just to update everyone the lines have changed a bit in blesta v4.2

    plugins/support_manager/models/support_manager_tickets.php

     

    Add after Line 300:

    where("support_tickets.status", "!=", "on_hold")->

     

    Add after Line 1200:

    'on_hold' => $this->_("SupportManagerTickets.status.on_hold"),

    the rest is the same as above in op.

  4. 6 hours ago, Doctrine said:

    User creation is working without any problem. Strange thing

    I fixed the bug by doing this in direct_admin_api.php:

    'suspendUser' =>
    			array('POST','','CMD_API_SELECT_USERS',array('suspend'=>'Suspend','location'=>'CMD_API_SELECT_USERS')),
    		'unsuspendUser' =>
    			array('POST','','CMD_API_SELECT_USERS',array('suspend'=>'Unsuspend','location'=>'CMD_API_SELECT_USERS')),

    from:

    'suspendUser' =>
    			array('POST','','CMD_API_SELECT_USERS',array('suspend'=>'Suspend','location'=>'CMD_SELECT_USERS')),
    		'unsuspendUser' =>
    			array('POST','','CMD_API_SELECT_USERS',array('suspend'=>'Unsuspend','location'=>'CMD_SELECT_USERS')),

    that was likely a oversight on the blesta dev's part but is actually easily to fix as shown above, since directadmin's api information here:

    http://www.directadmin.com/features.php?id=807

    states the default CMD_SELECT_USERS will not return the standard json api response like the module is expecting, CMD_API_SELECT_USERS does return the standard json api response and therefore it works finally, tried to find the module on github to submit a pull request to apply this patch to module but didn't find it so thought would just post it here instead.

    EGcXLr.jpg

    wLjUH9.jpg

    thanks to @Doctrine for providing the directadmin panel to patch the issue and make sure it works.

    information redacted for security reasons.

  5. 16 hours ago, Doctrine said:

    I sent a PM for you many times, a year ago or earlier and you said will be done once. Well i am going to pay, just somebody code it for me. Budget should start from 300USD, then if i see the module is getting more features i should pay more and more. Just i need a module for my clients to manage everything from one place.

    But seems my offer was never valid for you, because the module development never started.

     

    I sent you a PM, please check :)

    PM answered 

  6. On 3/14/2018 at 2:28 PM, Tyson said:

    If you haven't resolved this issue yet, you may want to contact DirectAdmin support for help. The module POSTs a suspension via the API command CMD_API_SELECT_USERS, with a location set to CMD_SELECT_USERS. Normally, this would suspend the user in DirectAdmin and respond back to Blesta that there was no error performing this action, however, the DirectAdmin API returned an invalid HTML response that is not expected for that end point, which leads me to believe that the DirectAdmin API or or its configuration has gone awry.

    read the below, it shows why that isn't the correct command.

  7. On 3/10/2018 at 3:57 PM, Doctrine said:

    Hello

    Got this error:

    An internal error occurred, or the server did not respond to the request.

    Latest directadmin, latest Blesta, packages created without any problem, i could check the user package, server IP. But i cannot suspend users for example. Seems everything is configured correctly.

    Input:

    Here is the output from the module:

     

    Any suggestion? I use the default Directadmin Theme...

    Got this issue on multiple server.. on multiple company.

    looks like a api issue, possibly just needs to be patched to support any newer api directadmin is using maybe?

    since usually api's aren't supposed to output html like that.

    I can try patching it for you and post it here for you, though do note I don't use directadmin and therefore won't be able to test it for you, since at best would be following directadmin's api guides and hope it works.

    after further investigation it looks like it isn't logging into directadmin api as seen by this header?

     <title>DirectAdmin Login</title>

     

  8. 9 hours ago, Doctrine said:

    Yes which is sometimes working sometimes not, many output from the module is html, and not working then , and i cannot figure out why. But yes i need more feature.

    This could take years, and time is money.

    I just want this module to blesta: But modulesgarden said this should be around 9000 USD to Blesta. Well thats a lot money for me..i bought my car for 9000usd.. :)

    https://www.modulesgarden.com/products/whmcs/directadmin-extended

    that is what I was told by blesta for a dcim module like hostbill 50k like I or anyone else for that matter have that money lol so I decided instead to make it myself.

    though I haven't and don't use directadmin so I am not aware of it's problems though if you are willing to "sponsor" the panel and required licenses,etc to make a better module I could possibly easily do so for you as the usually the way I usually do module development like this is the person wanting the module basically provides all required "stuff"(like the panel there wanting the module made for,etc) and once the module is done the person who "sponsored" the development of the module gets a owned license free for the module and it is then put up for sale on cubedata's site at normal pricing.

    though since this is PauloV's thread pm me since I don't want to detract from his thread though.

  9. Just now, BlestaStore said:

    Just to clarify mate it's a different plugin to the cms but I hope it's cool feel free to see the demo: http://demo.blesta.store/client/plugin/blesta_forums/main/index/`

    If you wish you can have an account

    I know it is a different plugin to the cms but it is something that I thought was missing to start with since if you have the cms but no forum you are missing something important in my opinion considering not every host wants to have a external forum to have to work out SSO with blesta for especially if you are using your cms mike as I have found out with modx integrating SSO with blesta is harder than it looks and at this point would rather just have it all integrated and not have to build custom SSO bridges,etc to make modx and blesta talk to each other. since with the cms and this forum plugin it would share logins with blesta and therefore make SSO(single sign on) even easier which is why I said at this point I am looking for easy solutions not having to build both a modx plugin for SSO to integrate sharing logins between modx<->blesta. 

  10. On 2/9/2018 at 8:59 AM, BlestaStore said:

    you can ask the guys to add it or you can add it yourself.


    If you ant to enable it by default you can add 

    
    'autostart' => 1,
    'usesource' => 1

    in: /components/modules/centovacast/centovacast.php

    you can also make a custom field and have it editable by following what the other values are. If you can code you could add a configurable option to the module and make the package have a charge for autodj.

     

    On 2/9/2018 at 9:03 AM, thehoster4you said:

    thanks i wil ask the guys to update this

     

     

    that is already implemented in my module though since I implemented all "useful" api functions of centovacast in it.

  11. 4 minutes ago, BlestaStore said:

     

    Thank you guys I've finally got where I want almost :D just need to fix that routes as it's working at the moment via forum/index/1/ but not /forum/1/ so I need to use the client_loc and plugins and then the folder name I think :) 

    okay great, would be looking forward to beta test or get the plugin on release because I would like to pair blestacms and blestaforums together and move back from modx lol :D

  12. 13 minutes ago, BlestaStore said:

    So mate if I put the page() information in the index it would show /forum/1/ mate?

    that is sounding like you are looking for a way to rewrite the url so for example if announcements is forum id one it shows as {blestaroot}/plugin/blestaforums/forum/1/ correct? if so that sounds like some sort of route or rewrite you would have to tell blesta about.

    I would recommend in your forum controller php file mike to put what cyandark showed in your index function as such:

    class Forum extends MyPluginController {
    .....
        public function index() {
            if (!empty($this->get[0]) && is_numeric($this->get[0])) {
                $page_id = $this->get[0];
            } else {
                $page_id = 1;
            }
    
            // Load forum model
            Loader::loadModels($this, ['MyPlugin.ForumsFunctions']);
    
            // Get forum page
            $forum = $this->ForumsFunctions->getForum($page_id);
        }
    ....
    }

    put the above in your index function for your forum controller and yes it will show up with the structure you want in the url.

    eg this structure:

    http://awesomecompany.com/client/plugin/my_plugin/forum/1/

    that would get the forum id 1 as shown in the example url like you want.

    do note the .... is to be your existing code don't copy the .'s please they have no real purpose other than being a placeholder for your other code. 

  13. 5 minutes ago, BlestaStore said:

    Thanks mate,

    So I put the top code in a model called: forums_functions.php

    I put the bottom code in the controller: blesta_forums_controller.php in a function eg:

    
    public function forum(){
            $forum_id = $this->ForumsFunctions->getForum($forum);
            echo $forum_id;
        }

    and it just fails to load up do I need a pdt or something as the controller is forum so the id comes after so I was hoping we don't need a pdt as we'd need one for each id wouldn't we?

    http://demo.blesta.store/client/plugin/blesta_forums/main/index/ if you click announcement or something they just error out.

    seems to be 404 error to me, you might want to check your php error log to verify it isn't a php syntax error.

  14. 3 minutes ago, cyandark said:

    I guess that $this->get can do the job.

    For example, for http://awesomecompany.com/client/plugin/my_plugin/page/12/ $page will be 12

    
    if (!empty($this->get[0]) && is_numeric($this->get[0])) {
    	$page = $this->get[0];
    } else {
    	$page = 1;
    }

    Then you can get the page from your model

    
    Loader::loadModels($this, ['MyPlugin.MyModel']);
    
    $page = $this->MyModel->getPage($page);

     

    that sounds like what I did similar to that in my vultr module to grab the saved plan from the db to be selected by default in the dropdown select box on editing a package 

    I would "fish" the code out I used to do that but I don't think it is relevant to what mike is trying to do since he wants to do exactly as you described @cyandark because mine was for a module this is probably in relation to mike's blestaforums plugin. 

  15. 15 minutes ago, rebus9 said:

    Unable to get Blesta to config.  Running through the web installer for the app, all I get is a blank white screen after entering in the info requested and clicking the Start Install button.

    Environment is Windows Server 2012 R2
        PHP 7.1 
        MySQL 5.5

    IonCube Loader for 7.1 (Windows VC14 Non-TS 64 bit from here: https://www.ioncube.com/loaders.php )
        Modified php.ini for the DLL per instructions (zend_extension = "C:\Program Files\PHP\v7.1\ext\\ioncube_loader_win_7.1.dll") is at top of .ini.

    phpinfo() shows:
        API Extensions:  mysqli.pdo_mysql
        PDO drivers:  mysql, sqlite
        cUURL Support:  enabled
        cURL Information:  7.54.1
        OpenSSL Support:  enabled
        OpenSSL Library Version:  OpenSSL/1.0.2k 
      
    Used PHPmyAdmin to create a Blesta database in MySQL and created a user with full permissions on it.

    Everything seems to meet the minimum requirements.  

    Deleted all Blesta files and replaced with a fresh copy from the ZIP downloaded from Blesta for eval.  Same results.

    Some DATABASE tables appear to have been created, from "accounts_ach" thru "log_account_access" (alphabetical order)... so at least SOME of the install routines fired off.

    Advice, next steps?

    did you apply the patch for php 7.1 in the install files? as the white screen is likely ioncube stating to you php 5.6 encoded files doesn't work on php 7.1.

    as I run my dev instance off IIS on 2012R2 so I know the tricks of how you have to configure IIS to make it work with blesta.

  16. 8 hours ago, MineHarvest66 said:

    I just wanted to drop a message here that @timnboys had helped me all morning/afternoon being able to put this module in production in place of the Fraud Labs Pro. :) 

    I will keep this updated when I start getting orders with this module and see how it "pans out". 

    hopefully it works fine for you haven't heard anymore ticket replies so maybe I fixed it finally lol ;)

     

  17. On 1/31/2018 at 10:55 PM, MineHarvest66 said:

    Absolutely Blesta is at this point even could cost you if your not careful. :( 

    I will try to hold on but if I don't see improvements with this and that extra potential costs that this billing platform will eventually place for one of their integrations sorted out I too will has to consider other options. :(

    that is sad to hear everyone is having to move back to the dark side of whmcs or some other panel because of domain manager features not being added yet. this is sad though since I would hate to see everyone having to find other options :(

  18. 13 hours ago, activa said:

    Asked from 2015, requested and voted from users... maybe it will implemented next month ?

    I would hope yes, because it would be easier for my colocation module planned as stated in my club to be finished to do the cron tasks inside the module to run cron tasks to retrieve snmp entries from a switch/router than to have to build a extra plugin just to do the cron tasks.

×
×
  • Create New...