Jump to content

FrostByte

Member
  • Posts

    41
  • Joined

  • Last visited

About FrostByte

FrostByte's Achievements

Member

Member (2/3)

0

Reputation

  1. This was the case on my setup too. Even though the file actually DID exist in that directory.
  2. I had the same diagnostics and unfortunately we could not get it working so had to give up.
  3. What's the difference between the paid and the free version?
  4. Ok so i downloaded this for my website and no matter what i try i simply cannot get it working. WHMCS v5.0.3 and IPB v3.2.3 I have followed the installation instructions down to a T and i have checked API access and all values under the configs. Is this addon supported on WHMCS 5?
  5. Where's the currency selector gone from the order forms??
  6. Hi, very nice mod but you should also enable the option to process HTML for links etc.
  7. I hope you find it useful, please leave feedback on this topic
  8. Introduction Ok so I've seen a few old topics on the forums from users requesting help on filtering the products/services page. Ordering active services, seperate to terminated etc. Well i've recently felt the need to do this myself so i thought i'd share this little tutorial with you all. This topic will not sort the products/services, but will allow your clients to select which services to show. Here's a screenshot of what i've done: So as you can see, i've added checkboxes that allow your clients to select which services they want to see. I've also added the number of services in brackets - Active (4). Let's Get Started To achieve the above, you only need to edit one file - clientareaproducts.tpl Please make a copy of the original file, in case you mess up or you decide to revert back in future! Open clientareaproducts.tpl with a text editor and make the following changes: FIND: <table class="data" width="100%" border="0" cellpadding="10" cellspacing="0"> REPLACE WITH: <table id="services" class="data" width="100%" border="0" cellpadding="10" cellspacing="0"> FIND: {foreach key=num item=service from=$services} REPLACE WITH: {foreach key=num item=service from=$services} {if $service.class == "active"}{php}$services['active']++;{/php}{/if} {if $service.class == "pending"}{php}$services['pending']++;{/php}{/if} {if $service.class == "suspended"}{php}$services['suspended']++;{/php}{/if} {if $service.class == "terminated"}{php}$services['terminated']++;{/php}{/if} FIND: {foreachelse} <tr> <td colspan="6">{$LANG.norecordsfound}</td> </tr> {/foreach} REPLACE WITH: {/foreach} <tr class="clientareatablenone"> <td colspan="6">{$LANG.norecordsfound}</td> </tr> FIND: <table border="0" align="center" cellpadding="10" cellspacing="0"> <tr> <td width="10" align="right" class="clientareatableactive"> </td> <td>{$LANG.clientareaactive}</td> <td width="10" align="right" class="clientareatablepending"> </td> <td>{$LANG.clientareapending}</td> <td width="10" align="right" class="clientareatablesuspended"> </td> <td>{$LANG.clientareasuspended}</td> <td width="10" align="right" class="clientareatableterminated"> </td> <td>{$LANG.clientareaterminated}</td> </tr> </table><br /> REPLACE WITH: <table border="0" align="center" cellpadding="10" cellspacing="0"> <tr> <td width="10" align="right" class="clientareatableactive"><input type="checkbox" id="showactive" {php}if ($services['active'] < 1) { echo "DISABLED"; } {/php}></td> <td>{$LANG.clientareaactive} ({php}if ($services['active'] > 0) { echo $services['active']; } else { echo "0"; }{/php})</td> <td width="10" align="right" class="clientareatablepending"><input type="checkbox" id="showpending" {php}if ($services['pending'] < 1) { echo "DISABLED"; } {/php}></td> <td>{$LANG.clientareapending} ({php}if ($services['pending'] > 0) { echo $services['pending']; } else { echo "0"; }{/php})</td> <td width="10" align="right" class="clientareatablesuspended"><input type="checkbox" id="showsuspended" {php}if ($services['suspended'] < 1) { echo "DISABLED"; } {/php}></td> <td>{$LANG.clientareasuspended} ({php}if ($services['suspended'] > 0) { echo $services['suspended']; } else { echo "0"; }{/php})</td> <td width="10" align="right" class="clientareatableterminated"><input type="checkbox" id="showterminated" {php}if ($services['terminated'] < 1) { echo "DISABLED"; } {/php}></td> <td>{$LANG.clientareaterminated} ({php}if ($services['terminated'] > 0) { echo $services['terminated']; } else { echo "0"; }{/php})</td> <td>Show <a id="showall" style="cursor:pointer">All</a> | <a id="shownone" style="cursor:pointer">None</a></td> </tr> </table><br /> <script type="text/javascript"> {literal} $(document).ready(function(){ $("#showactive").click(); $('tr.clientareatableactive').show(); $('tr.clientareatablepending').hide(); $('tr.clientareatablesuspended').hide(); $('tr.clientareatableterminated').hide(); $('tr.clientareatablenone').hide(); }); jQuery.fn.checkvisible = function() { if (($("#showactive:checked").length == 0) && ($("#showpending:checked").length == 0) && ($("#showsuspended:checked").length == 0) && ($("#showterminated:checked").length == 0)) { $('tr.clientareatablenone').show(); } else { $('tr.clientareatablenone').hide(); } }; $('#showactive').click(function(){ $('#showactive').checkvisible(); if (this.checked) { $('tr.clientareatableactive').show(); } else { $('tr.clientareatableactive').hide(); } }); $('#showpending').click(function(){ $('#showpending').checkvisible(); if (this.checked) { $('tr.clientareatablepending').show(); } else { $('tr.clientareatablepending').hide(); } }); $('#showsuspended').click(function(){ $('#showsuspended').checkvisible(); if (this.checked) { $('tr.clientareatablesuspended').show(); } else { $('tr.clientareatablesuspended').hide(); } }); $('#showterminated').click(function(){ $('#showterminated').checkvisible(); if (this.checked) { $('tr.clientareatableterminated').show(); } else { $('tr.clientareatableterminated').hide(); } }); $('#showall').click(function(){ $('tr.clientareatableactive').show(); $('tr.clientareatablepending').show(); $('tr.clientareatablesuspended').show(); $('tr.clientareatableterminated').show(); $('#showactive').attr('checked', true); $('#showpending').attr('checked', true); $('#showsuspended').attr('checked', true); $('#showterminated').attr('checked', true); $('#showall').checkvisible(); }); $('#shownone').click(function(){ $('tr.clientareatableactive').hide(); $('tr.clientareatablepending').hide(); $('tr.clientareatablesuspended').hide(); $('tr.clientareatableterminated').hide(); $('#showactive').attr('checked', false); $('#showpending').attr('checked', false); $('#showsuspended').attr('checked', false); $('#showterminated').attr('checked', false); $('#shownone').checkvisible(); }); {/literal} </script> And that should be all! The above code has been tested on WHMCS 4.5.2. If you have any feedback or suggestions, please feel free to reply
  9. The project has now been passed on to a new developer. Watch the forums for new releases!
  10. Due to lack of time and interest, ive decided to offer the source code to anybody who wishes to continue development of this addon. I will offer the code for free, only to persons with previous contributions to the development community. Anybody interested in this project?
  11. Hi there, unfortunately i have been a little pre-occupied recently with another project but i do intend to continue development on this addon soon. The source files will not be released but if you would like to suggest features for future releases please feel free to share them with me.
  12. im sorry if my reply appeared rude in any way but the addon is written to perform specific tasks. If the addon is useless because alteration is not possible surely the addon would be useless whether encrypted or not? I welcome any suggestions and feedback so if the user in question would like to suggest an alteration i could consider making the alteration in a future release or even write a custom release just for him/her.
  13. im sorry if my reply appeared rude in any way but the addon is written to perform specific tasks. If the addon is useless because alteration is not possible surely the addon would be useless whether encrypted or not? I welcome any suggestions and feedback so if the user in question would like to suggest an alteration i could consider making the alteration in a future release or even write a custom release just for him/her.
×
×
  • 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