Leaderboard
Popular Content
Showing content with the highest reputation on 11/02/2014 in Posts
-
[Plugin] Client Notices (Set Text Or Html Notice For Each Client)
PauloV and 2 others reacted to Blesta Addons for a topic
Hello All . we bring free and exclusive content , this plugin will help admin to set a notice for each client (text or html contents). this plugin was coded specially for some request by memebers in this forum . with the plugin, you can : - Add/Edit/Delete notice for each client - Set notice in text or html format . - Filter notice in the list notices page with Jquery . TODO LIST : - nothing at the moment . Some screenshoot : addmin list notices Add/Edit admin page admin staff action in client profile notice in client side as always the installtion steps is : 1 - download the file from your account 2 - upload the client_notices folder inside plugin directory . 3 - goto plugins , and install client Notices . 4 - enjoy the free content . Best regards3 points -
Cpanel Module (Enhanced Integration)
Michael reacted to ModulesBakery for a topic
Admin area >> Packages >> Edit Package >> Enable/Disable Email Accounts AND/OR Enable/Disable Email Forwarders1 point -
Posh area haha my mate Callum is from East Riding Yorkshire haha.1 point
-
LOL no biggie....... I'll just select North Yorkshire then.1 point
-
I would like to see their client ID probably or client name if possible mate at the moment it shows the client ID as their database ID. Also if possible have the notes display at the top of the other boxes It's a bit hard out of view for a notice? As for the above here's our contribution for your module, feel free to add if you would like. OLD design: NEW design: CODE to replace in: plugins/client_notices/views/default/admin_main.pdt <?php echo $this->Html->ifSet($message); $links = array(); $this->Widget->clear(); $this->Widget->setLinks($links); $this->Widget->create($this->_("AdminMain.index.boxtitle_notices", true), array('id'=>"admin_main"), $this->Html->ifSet($render_section, null)); if ($this->Html->ifSet($notices, false) && ($num_notices = count($notices)) > 0) { ?> <div class="content_section"> <div class="inner" style="padding: 20px 20px 0px 20px;font-size: 14px;"> <ul> <li><?php $this->_("AdminMain.add.search_for");?>: <input id="system-search" name="q" type="text" /></li> </ul> </div> </div> <div style="padding: 10px 20px 0px 20px;"> <table class="table table-list-search"> <thead> <tr class="heading_row"> <td><span><a href="<?php echo $this->Html->safe($this->base_uri . "plugin/client_notices/admin_main/index/?sort=id&order=" . ($sort == "id" ? $negate_order : $order));?>" class="ajax<?php echo $this->Html->safe($sort == "id" ? " " . $order : "");?>"><?php $this->_("AdminMain.index.heading_id");?></a></span></td> <td><span><a href="<?php echo $this->Html->safe($this->base_uri . "plugin/client_notices/admin_main/index/?sort=client_id&order=" . ($sort == "client_id" ? $negate_order : $order));?>" class="ajax<?php echo $this->Html->safe($sort == "client_id" ? " " . $order : "");?>"><?php $this->_("AdminMain.index.heading_client_id");?></a></span></td> <td><span><a href="<?php echo $this->Html->safe($this->base_uri . "plugin/client_notices/admin_main/index/?sort=notice_name&order=" . ($sort == "notice_name" ? $negate_order : $order));?>" class="ajax<?php echo $this->Html->safe($sort == "notice_name" ? " " . $order : "");?>"><?php $this->_("AdminMain.index.heading_name");?></a></span></td> <td><span><a href="<?php echo $this->Html->safe($this->base_uri . "plugin/client_notices/admin_main/index/?sort=date_added&order=" . ($sort == "date_added" ? $negate_order : $order));?>" class="ajax<?php echo $this->Html->safe($sort == "date_added" ? " " . $order : "");?>"><?php $this->_("AdminMain.index.heading_date_added");?></a></span></td> <td><?php $this->_("AdminMain.index.heading_options");?></td> </tr> </thead> <tbody> <?php $i=0; foreach ($notices as $notice) { ?> <tr class="<?php echo $this->Html->concat(" ", ($i++%2 == 1) ? "odd_row" : "");?>"> <td><?php $this->Html->_($notice->id);?></td> <td><a href="<?php echo $this->Html->safe($this->base_uri . "clients/view/" . $this->Html->ifSet($notice->client_id));?>"><?php $this->Html->_($notice->client_id);?></a></td> <td><?php $this->Html->_($notice->notice_name);?></td> <td><?php echo $this->Date->cast($notice->date_added);?></td> <td><a href="<?php echo $this->Html->safe($this->base_uri . "plugin/client_notices/admin_main/edit/" . $this->Html->ifSet($notice->id));?>"><?php $this->_("AdminMain.index.option_edit");?></a>, <?php $this->Form->create($this->base_uri . "plugin/client_notices/admin_main/delete/" . $this->Html->ifSet($notice->id)); $this->Form->fieldHidden("id", $this->Html->ifSet($notice->id)); ?> <a href="<?php echo $this->Html->safe($this->base_uri . "plugin/client_notices/admin_main/delete/" . $this->Html->ifSet($notice->id));?>" class="manage" rel="<?php $this->_("AdminMain.modal.delete_notice");?>"><?php $this->_("AdminMain.index.option_delete");?></a> <?php $this->Form->end(); ?> </td> </tr> <?php } ?> </tbody> </table> </div> <?php }else{ ?> <div class="content_section"> <div class="inner" style="padding: 20px 20px 0px 20px;margin-bottom:-12px;font-size: 12px;"> <ul> <li><?php $this->_("AdminMain.index.no_results");?></li> </ul> </div> </div> <?php } $this->Widget->end(); ?> <script type="text/javascript"> $(document).ready(function() { $('#admin_main a.manage[rel]').blestaModalConfirm({base_url: '<?php echo $this->Html->safe($this->base_uri);?>', close: '<?php $this->_("AppController.modal.text_close");?>', submit: true}); }); </script> <script type="text/javascript"> $(document).ready(function() { var activeSystemClass = $('.list-group-item.active'); //something is entered in search form $('#system-search').keyup( function() { var that = this; // affect all table rows on in systems table var tableBody = $('.table-list-search tbody'); var tableRowsClass = $('.table-list-search tbody tr'); $('.search-sf').remove(); tableRowsClass.each( function(i, val) { //Lower text for case insensitive var rowText = $(val).text().toLowerCase(); var inputText = $(that).val().toLowerCase(); if( rowText.indexOf( inputText ) == -1 ) { //hide rows tableRowsClass.eq(i).hide(); } else { $('.search-sf').remove(); tableRowsClass.eq(i).show(); } }); //all tr elements are hidden if(tableRowsClass.children(':visible').length == 0) { tableBody.append('<tr class="search-sf"><td class="text-muted" colspan="6">No entries found.</td></tr>'); } }); }); </script> Table design thanks to Eric who did a module for me New Client Side: CODE to replace in: plugins/client_notices/views/default/client_widget.pdt <?php if ($this->Html->Ifset($notice) ) { // Don't show this container when only rendering the widget section if (!$this->Html->ifSet($render_section) && !$this->Html->ifSet($is_ajax) && $this->Html->Ifset($notice) ) { ?> <div class="col-md-12"> <?php } echo "<div class='alert alert-danger' role='alert'><b>"; echo $this->Html->Ifset($notice->notice_name); echo "</b><br />"; echo $this->Html->Ifset($notice->notice_body); echo "</div>"; // Don't show this container when only rendering the widget section if (!$this->Html->ifSet($render_section) && !$this->Html->ifSet($is_ajax)) { ?> </div> <?php } } ?>1 point
-
1 point
-
[Plugin] Client Notices (Set Text Or Html Notice For Each Client)
Blesta Addons reacted to Michael for a topic
Thanks mate going to try it, just to let you know I edited your post with the correct URL as it was linking to the admin tools, I was a bit confused and client_notices to replace the url folder and it worked so thought I'd save you some time haha1 point -
[Plugin] Client Notices (Set Text Or Html Notice For Each Client)
Blesta Addons reacted to alexistkd for a topic
awesome +1 thank you so much1 point -
Nice one @Licencecart .... full of details... Thanks1 point
-
Blesta Integration 3.3.x (Advanced)
Michael reacted to Blesta Addons for a topic
it was better if you have made it as a new template with your change . this way no core files has been touched thanks for your share .1 point -
Order Number: Offline Payments Module
domaingood reacted to Tyson for a topic
The reason you can't find the order number in Blesta's search is due to it being related to the Order plugin. The Order plugin doesn't provide search functionality (maybe it should), so you couldn't find it from there. However, you can find it in the order widget. Under [billing] -> [Overview], an Orders widget is available. If you don't already have that enabled, you should click to "Manage Widgets" and add it to your billing overview dashboard. It will list orders that are pending, accepted, etc., and will show the order number you're looking for, which is what the client sees on the confirmation page.1 point