Michael Posted February 27, 2014 Report Posted February 27, 2014 Hello, Can you PM the "sorce code/html code" wen visiting the main admin page just to check what is being insert on the menu and on bottom Thanks, PV Ah, thanks mate had to edit: /plugins/support_manager/views/default/admin_tickets_count_include.pdt change admin to the routes admin name. Quote
PauloV Posted February 27, 2014 Author Report Posted February 27, 2014 Hello, Great news Any sugestions tell me Regards, PV Quote
Michael Posted February 27, 2014 Report Posted February 27, 2014 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: Go to: /app/views/admin/default/css/theme.css Put this code anywhere: .status_box{ background: -moz-linear-gradient(top, #theme_header_bg_color_top 19%, #theme_header_bg_color_bottom 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(19%,#theme_header_bg_color_top), color-stop(100%,#theme_header_bg_color_bottom)); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, #theme_header_bg_color_top 19%,#theme_header_bg_color_bottom 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, #theme_header_bg_color_top 19%,#theme_header_bg_color_bottom 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #theme_header_bg_color_top 19%,#theme_header_bg_color_bottom 100%); /* IE10+ */ background: linear-gradient(to bottom, #theme_header_bg_color_top 19%,#theme_header_bg_color_bottom 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#theme_header_bg_color_top', endColorstr='#theme_header_bg_color_bottom',GradientType=0 ); /* IE6-9 */ } Then go to: /plugins/support_manager/views/default/admin_tickets_count.pdt And replace that file with: <?=$this->_("SupportManagerPlugin.nav_primary_client.main", true);?><span id='blcou' class='status_box' style='margin-left: 5px;margin-right: -10px;padding: 7px;color:#ffffff;-webkit-border-radius: 5px;-moz-border-radius: 5px;border-radius: 5px;'><?=$status_count['open'];?></span> PauloV and ariq01 2 Quote
PauloV Posted February 27, 2014 Author Report Posted February 27, 2014 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 Quote
PauloV Posted February 27, 2014 Author Report Posted February 27, 2014 Hello We have merged the 3.1.2 changes and the latest changes in this build. You can download on the first post here: http://www.blesta.com/forums/index.php?/topic/2001-support-manager-tickets-delete-merge-spam-multiple-tickets/?p=15031 Regards, PV Michael 1 Quote
MemoryX2 Posted February 28, 2014 Report Posted February 28, 2014 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. Quote
Michael Posted February 28, 2014 Report Posted February 28, 2014 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. It does work for non edits, you just need to edit the folder url in the one file as above mate. PauloV 1 Quote
PauloV Posted February 28, 2014 Author Report Posted February 28, 2014 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 Quote
MemoryX2 Posted February 28, 2014 Report Posted February 28, 2014 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 What do I need to edit within this so that it will work with a custom route? Is it possible that a future version can get the route or be independent of the route or something? Thanks for your hard work Quote
PauloV Posted February 28, 2014 Author Report Posted February 28, 2014 What do I need to edit within this so that it will work with a custom route? Is it possible that a future version can get the route or be independent of the route or something? Thanks for your hard work Hi Just download again the file form here and upload it again to your blesta plugin directory: Download here Regards, PV Quote
Michael Posted February 28, 2014 Report Posted February 28, 2014 What do I need to edit within this so that it will work with a custom route? Is it possible that a future version can get the route or be independent of the route or something? Thanks for your hard work Well the bit which says admin mate haha Quote
PauloV Posted February 28, 2014 Author Report Posted February 28, 2014 Well the bit which says admin mate haha Hello CubicWebs Im a litle confused about the "admin" is because you have it on outher admin name directory? or someting else? Regards, PV Quote
Michael Posted February 28, 2014 Report Posted February 28, 2014 Hello CubicWebs Im a litle confused about the "admin" is because you have it on outher admin name directory? or someting else? Regards, PV 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 Quote
Cody Posted February 28, 2014 Report Posted February 28, 2014 Just FYI, in views it's always best to use: <?php echo $this->Html->safe($this->base_uri . "path/to/location/");?> base_uri contains the full path to the portal (either admin or client) and takes into consideration Routes. Quote
PauloV Posted February 28, 2014 Author Report Posted February 28, 2014 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 Quote
MemoryX2 Posted February 28, 2014 Report Posted February 28, 2014 I have no idea why, but this still doesn't work for me Quote
PauloV Posted February 28, 2014 Author Report Posted February 28, 2014 I have no idea why, but this still doesn't work for me Can you send me a PM with the Blesta Main Admin HTML/Source (Browser HTML compiled code) to see what is being included on your Blesta admin? Regards, PV Quote
Virtovo Posted March 8, 2014 Report Posted March 8, 2014 PauloV this is great. Do you know when you might make a decision on the poll? We're waiting until it's packaged separately or fully uninstallable before we deploy Quote
cloudrck Posted March 10, 2014 Report Posted March 10, 2014 Nothing works, I get Undefined variable: errors on line 1453 in /home/pathto/blesta/public_html/plugins/support_manager/models/support_manager_tickets.php When either adding to spam or deleting EDIT I fixed it. http://cloudrck.com/patches/support_manager_mass_fix.patch Quote
PauloV Posted March 10, 2014 Author Report Posted March 10, 2014 Nothing works, I get When either adding to spam or deleting EDIT I fixed it. http://cloudrck.com/patches/support_manager_mass_fix.patch Thanks for helping Strange that we dont have that error in our dev enviorments We are going to add your fix in the next release, we hope to release it today, with some new cool features Regards, PV Quote
cloudrck Posted March 10, 2014 Report Posted March 10, 2014 Thanks for helping Strange that we dont have that error in our dev enviorments We are going to add your fix in the next release, we hope to release it today, with some new cool features Regards, PV Thanks for helping Strange that we dont have that error in our dev enviorments We are going to add your fix in the next release, we hope to release it today, with some new cool features Regards, PV What version of PHP are you running? What database/version do you use on your dev environments? Quote
PauloV Posted March 10, 2014 Author Report Posted March 10, 2014 What version of PHP are you running? What database/version do you use on your dev environments? We have enable blesta Configure::errorReporting(-1); and have detected the error , to many hours making simultaneus app's lol, we forgot to enable,or eeing error logs, and we where just seeing the screen errors noting else We have detected more smal bugs and in this release will be more stable then ever Regards, PV Quote
PauloV Posted March 12, 2014 Author Report Posted March 12, 2014 Just to send an update. In this new version that we hope to release this week, it will add major changes and new functions to help improve the blesta support manager plugin Quote
Virtovo Posted March 12, 2014 Report Posted March 12, 2014 Just to send an update. In this new version that we hope to release this week, it will add major changes and new functions to help improve the blesta support manager plugin It sounds great. Did you decide what to do with regards to the poll? PauloV 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.