Ninja Slider / Posts /

License question for the website that has multiple domain names

4

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  7 years ago   viewed: 30516    

7 Answers

2

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   7 years ago
1
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   7 years ago
1

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   5 years 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   5 years ago
0

Interesting. I am currently facing a similar issue with my Himalayan Salt Spa website that was built using two different hosts and for some reason, there are two different domains that link back to my actual website. I just one, our main one. I'm no tech wiz, can anyone here be of assistance? it would be much appreciated. Thanks

Gary

Gary George
  15 hours ago
0

My Long Term Parking Dia website is having the same issue, too. 

Felicity Young
  12 hours ago
0

Thanks for this great share. tree trimming lafayette in


Breana
  11 hours 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: