Damainman Posted April 23, 2010 Share Posted April 23, 2010 Greetings, I apologize if this is in the wrong forum but, I was wondering if anyone has successfully used the licensing system to license things such as smarty templates. For example, if I create a theme for WHMCS and sell it to other people can I integrate a license check into it? I ask because there are several 3rd party scripts that I use which utilize smarty templates in a similar fashion as WHMCS and if I can accomplish this for WHMCS, i'm sure I can do the same for these other systems. Quick links: 1. WHMCS licensing add-on: - http://whmcs.com/licensingaddon.php 2. Smarty templates: - http://www.smarty.net 3. ioncube patch for allowing smarty to read encoded files: - http://www.ioncube.com/sa_encoder.php?page=smarty_patch I'm very open to ideas, suggestions, critiques, etc... Anything to point me into the right direction or clarify things like what can or can't be done. This is my first time trying to accomplish the licensing of a theme. Thank you in advance for any replies Smile. *Crosses my fingers* 0 Quote Link to comment Share on other sites More sharing options...
Damainman Posted June 2, 2010 Author Share Posted June 2, 2010 Greetings, I don't mean to bump this thread, but I'm still curious if anyone has made any progress attempting such a thing. 0 Quote Link to comment Share on other sites More sharing options...
rdavis Posted June 3, 2010 Share Posted June 3, 2010 Hi, we just installed WHMCS's licensing code in our new payment gateway module. It works great because our payment gateway addon was written in PHP. So for the short answer YES, if your smarty template has been coded in PHP as the on-line documentation says (see below). Other formats I'm not sure of at the moment. As the WHMCS sample licensing code is included with your package on purchase, but you will still need to make some changes to this sample code to make it work just for your unique situation as we had to for our module. Hope this helps. Compiling: Smarty compiles templates into PHP code behind the scenes, eliminating run-time parsing of templates. 0 Quote Link to comment Share on other sites More sharing options...
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.