Jump to content

License key warning on localhost


Michael

Recommended Posts

I run some development boards on my localhost machine, and one thing that's always been kind of annoying is that they nag me for the license key. On 3.2 this nag has gotten significantly more in-your-face. Would it be possible to block these nags when the board URL is something like http://localhost/ or http://localhost:*?

For folks running just Apache they'd have URLs that are just http://localhost/whatever, but if you run both Apache and IIS like I do your URLs might have the port number in them. Mine are all something like http://localhost:8080/whatever/.

Link to comment
Share on other sites

  • Replies 68
  • Created
  • Last Reply

I also have a habit of setting up a DNS server on my LAN that sets up a fake .dev TLD. I usually will do something like sitename.dev or sitename.com.dev. Perhaps this could be a regular expression in a define() that can be changeable?


^(local[a-z]+|[0-9.]+|.*(?<=\.dev))(\:[0-9]+)?$

Link to comment
Share on other sites

I sympathize guys, but honestly if we made some sort of "localhost override" or "definable regular expression" or what not....those trying to bypass the license message would simply use that functionality to do so.

I'll see if we can come up with any sort of other ideas here, but giving easy to use bypasses of the message simply defeats the purpose of such a message.

Link to comment
Share on other sites


Why dont you just put the message at the top and not make it scroll with you because that is the part that i hate




Because the idea is that it is in your face, to try and get people to insert their license key. When I first installed 3.2 a while ago, the first thing I mentioned was that 'the popup was so annoying, it made me put my license key in straight away'.
Link to comment
Share on other sites



Because the idea is that it is in your face, to try and get people to insert their license key. When I first installed 3.2 a while ago, the first thing I mentioned was that 'the popup was so annoying, it made me put my license key in straight away'.




fair i removed my it on my localhost
Link to comment
Share on other sites

I just downloaded admin/skin_cp/acp.css and deleted the code below (the message still shows but is at the top and no red and not hiding anything anymore etc) then re-uploaded
And it disappears completely when you edit the templates or css


/* License Nagging CSS */

#license_notice_force {

min-height: 120px;

top: 0px;

background: #; /* Old browsers */

background: -moz-linear-gradient(top, # 0%, # 100%); /* FF3.6+ */

background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#), color-stop(100%,#)); /* Chrome,Safari4+ */

color: #f6edef;

position: fixed;

z-index: 15050;

text-shadow: 0 -1px 0 #80001c;

line-height: 1.4;

border-bottom: 1px solid #80001c;

-webkit-box-shadow: 4px 0 10px rgba(0,0,0,0.3);

padding: 0 10px;

}

#license_notice_force h4 {

  font-size: 20px;

  padding: 10px 10px 0;

  color: #fff;

}

#license_notice_force p {

  padding: 10px;

  font-size: 14px;

}


#license_notice_force a {

  display: inline-block;

  background: #80001c;

  -moz-border-radius: 10px;

  border-radius: 10px;

  padding: 2px 10px;

  color: #fff;

}

#license_notice_expired {

min-height: 70px;

top: 0px;

background: #f7f7f7; /* Old browsers */

background: -moz-linear-gradient(top, #f7f7f7 0%, #e5e5e5 100%); /* FF3.6+ */

background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f7f7f7), color-stop(100%,#e5e5e5)); /* Chrome,Safari4+ */

position: fixed;

color: #575757;

text-shadow: 0px 1px 0px rgba(255,255,255,0.5);

padding: 10px 15px;

line-height: 1.4;

z-index: 15050;

border-bottom: 1px solid #acacac;

-webkit-box-shadow: 4px 0 10px rgba(0,0,0,0.3);

}

#license_notice_expired h4 { font-size: 18px; }

#license_notice_expired div.right {

  position: absolute;

  top: 10px; right: 10px;

}


  #license_notice_expired div.right a {

   background: #575757;

   color: #fff;

   display: inline-block;

   padding: 2px 10px;

   -webkit-border-radius: 10px;

   -moz-border-radius: 10px;

   border-radius: 10px;

   font-size: 11px;

  }

#license_notice_expired p {

  padding-top: 5px;

  font-size: 12px;

}

#ipboard_body.force_license { margin-top: 120px !important; }

#ipboard_body.expired_license { margin-top: 90px !important; }



If you enter your key on a test board then it messes up your live board does it not?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...