Jump to content

PauloV

Members
  • Posts

    1,387
  • Joined

  • Last visited

  • Days Won

    42

Posts posted by PauloV

  1. Some people like myself don't like using the /admin/ we call it like administration, staff, staffportal to hide it from the public.

     

    You can do this by editing the "Routes" in the routes file found at /config/routes.php

    /**
     * Admin panel directory name
     */
    Configure::set("Route.admin", "backend");
    /**
     * Client panel directory name
     */
    Configure::set("Route.client", "customers");
    

    That's ours at the moment.

     

    You can find out more about this by reading: http://docs.blesta.com/display/user/Installing+Blesta#InstallingBlesta-ChangingthepathtotheAdminarea

     

     

    Thanks once again :)

     

    Now all plugins and modes auto detect the admin directory :)

     

    we have replace the "admin" with <?=Configure::get("Route.admin");?> that get the current admin directory.

     

    Justo download the plugin or mod again and replace :)

     

    Regards,

    PV

  2. I haven't installed it yet but curious, is there a way to get this to show on a regular website as well through JavaScript or is it just loadable on Blesta?

     

    I don't have a dynamic website so doing something through PHP isn't viable for me.

     

     

    Hello :)

     

    Yes it does :)

     

    In Blesta Admin, wen you click on "Live Chat" it will popup the Blesta Live Chat, then on Menu->Setings you will see an option called "Widget embed code", just click on it, and copy the javascript code to put in outer external pages even on static pages :)

     

    Regards,

    PV

  3. I wasn't able to get this to work probably because I'm not runnning the entire modified support plugin.

     

    I really like the changes you've made they look awesome (although I'm not yet using it)

     

     

    As far as voting goes, personally I'd rather seem changes merged into the official release especially since you're doing this to help people out.. At least as long as your coding matches up and looks good.

     

    Hello MemoryX2

     

     

    We have fixed the problem, you can download again the Badge Mod in the same link: Download Here

     

    The problem was first dtected by CubicWebs and we forgot to fix yesterday. What we have done to fix was simple:

     

     

    We have open the file plugins/support_manager/views/default/admin_tickets_count_include.pdt and then change te code from URL:

    <!-- display ticket count menu badge-->
    <script>
    jQuery(function($){
      $( document ).ready(function() {
        $.get( '//<?=$_SERVER["HTTP_HOST"];?>/admin/plugin/support_manager/admin_tickets_count/', function(newRowCount){
          $("a[href='/admin/plugin/support_manager/admin_main/']").html( newRowCount.trim() );
        });
      });
      setInterval(function(){
        $.get( '//<?=$_SERVER["HTTP_HOST"];?>/admin/plugin/support_manager/admin_tickets_count/', function(newRowCount){
          $("a[href='/admin/plugin/support_manager/admin_main/']").html( newRowCount.trim() );
        });
      },5000);
    });
    </script>
    <!-- end display ticket count menu badge-->
    

    to relative paths like this:

    <!-- display ticket count menu badge-->
    <script>
    jQuery(function($){
      $( document ).ready(function() {
        $.get( '/admin/plugin/support_manager/admin_tickets_count/', function(newRowCount){
          $("a[href='/admin/plugin/support_manager/admin_main/']").html( newRowCount.trim() );
        });
      });
      setInterval(function(){
        $.get( '/admin/plugin/support_manager/admin_tickets_count/', function(newRowCount){
          $("a[href='/admin/plugin/support_manager/admin_main/']").html( newRowCount.trim() );
        });
      },5000);
    });
    </script>
    <!-- end display ticket count menu badge-->
    

    Once again thanks CubicWebs for helping :)

     

    Regards,

    PV

  4. I've made a nice edit I believe myself for this support ticket counter. I have a OCD of colours and everything must fit in and look modern. So you can tell I'm not a fan of red on my skins. This little tweaker is much nicer in my opinion. If you like it then you can do it by editing a few things...

     

     

    Hello CubicWebs

     

    Thanks for your sugestion, i have integrated  :)

     

    I have optimised the code, no need to add code to the file /app/views/admin/default/css/theme.css :)

     

    Just open the file /plugins/support_manager/views/default/admin_tickets_count.pdt and replace the code with:

            <?=$this->_("SupportManagerPlugin.nav_primary_client.main", true);?><span class="top_row" style='margin-left: 5px;margin-right: -5px; padding: 4px 7px 4px 7px;color: #fff;-webkit-border-radius: 5px;-moz-border-radius: 5px;border-radius: 5px;float: none !important'><?=$status_count['open'];?></span>
    

    I have updated the downloaded file :)

     

    Regards,

    PV

  5. Hello Blestars :)
     
    Now you can have realtime (5 sencods delay), without reloading the Blesta page, a Red  Badge on Support Manager Menu, diplaying the number of Open Tickets :)
     
     
    Teaser:
     
    support_manager_badge.png
     
     
    How to Install:
     
    Download below the extra Support Manager files (it dosent replace any file), and upload to /plugins/ directory. (Download here) (updated 01-03-2014)
     
    Open the app/views/admin/default/structure.pdt  (if your template dosent called "default", change the name "default" to your admin template name), and then find the bottom latest lines:
     
     
    </body>
    </html>
    
    change to:
     
    <?include(PLUGINDIR . DS . "support_manager" . DS . "views" . DS . "default" . DS . "admin_tickets_count_include.pdt");?>
    </body>
    </html>
    

    Now enjoy :)

     

    P.S- We will include this change in the Support Manager that we have released, after the merge diff betwin 3.1.1 and 3.1.2 released yesterday.

     

    Regards,

    PV

  6. Hello Paul

     

    We think that we have apllied your strict Programming Style Guide, because we whant to Help Blesta Grow and attract more users to help us also build more plugins, extensions and modules for Blesta :)

     

    If you whant we can send a detailled explanation what modifications we have made to help you see more cleary the modifications that we made to you implement to core :)

     

    The modifications are secured and dosent afect any other action on Blesta, you can easily revert the Plugin, just putting an original Support Manager Plugin :) (we can build a revert qwery to run).

     

    We will also support future releases, because, we are using this modifications, and will in the future releases, also use, so, the support will go on :)

     

    Thanks to all, for your feedback about this modifications. Please send us your sugestions to implement and build a almost perfect Support Manager Plugin.

     

    Regards,

    PV

×
×
  • Create New...