Ninja Slider / Posts /

License question for the website that has multiple domain names

1

My website has multiple domains pointing to it, and I have acquired the slider licenses for each domain. How do I apply the multiple licenses to the same ninja-slider.js file?

Charles  2 years ago   viewed: 15618    

4 Answers

1

You can add a piece of code just after the var nsOptions = {...} block to handle the different domains.

Suppose you have three domains pointing to the same website: license1 for domain1.com, license2 for domain2.com, and license3 for domain3.com. Below is the sample code how to apply the three licenses:

var nsOptions = { ...... license: "license1" }; if(document.domain.indexOf("domain2.com")!=-1) nsOptions.license = "license2"; else if (document.domain.indexOf("domain3.com")!=-1) nsOptions.license = "license3"; var nslider = new NinjaSlider(nsOptions); /* Ninja Slider ... (the follows are remain unchanged)

Notice the domain names should not include any http:// or www. as the license won't check them. Also, all domain names MUST be in lower case.

Milo   2 years ago
0
However, if your other domains will be redirect to domain1.com, you don't need multiple licenses. You just need one license for the domain1.com.
Milo   2 years ago
0

I have purchased license for app.domain.com. But I have many doamins pointing to the app for example-
app.domain1.com, app.domain2.com, app.domain3.com so on... and obviously it will not work for different domain. But the point is, it is same application hosted on single domain for which i have purchased license except it may use differnet domain names sometime. Do I have to buy license for all of the domains? :(

nijaSlider User   6 months ago
-1

If all domains will be redirected to app.domain.com, you only need to purchase a license for domain.com. Otherwise, you have to purchase multiple licenses for domain1.com, domain2.com, and so on.

Milo   6 months ago

   

Your name*
Password
(Optional. Used to modify this post afterwords)
+ =  

Ask your Own Question

  • If your question is related to the topic of this post, you can post your question to this page by clicking the "Post a reply" button at left;

  • When you want to start a new page for your question: