Community discussions

MikroTik App
 
nicmo
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 69
Joined: Sun Oct 03, 2010 11:36 am

hotspot html login

Thu Sep 27, 2012 5:49 am

Hi, i would like to add a button in the login page to take me to the signup page of UM, what should i add to the button to redirect from login to signup.html
 
User avatar
paka
Frequent Visitor
Frequent Visitor
Posts: 81
Joined: Thu Jan 08, 2009 4:25 pm
Location: Bonn, Germany
Contact:

Re: hotspot html login

Thu Sep 27, 2012 12:11 pm

Hi, i would like to add a button in the login page to take me to the signup page of UM, what should i add to the button to redirect from login to signup.html


You should add this code in your login page.
<input type="button" name="myButton" value="to Signup" onclick="location.href='http://ipaddress/user/signup'">
 
nicmo
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 69
Joined: Sun Oct 03, 2010 11:36 am

Re: hotspot html login

Fri Sep 28, 2012 4:45 am

ok Thanks
 
nicmo
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 69
Joined: Sun Oct 03, 2010 11:36 am

Re: hotspot html login

Fri Sep 28, 2012 8:40 am

ok i done that but have slite problem, im getting error 404 not found. look like hotspot is blocking the page.
i disable hotspot it and tried going to the page and it work. is there a firewall rule i can use?
 
User avatar
paka
Frequent Visitor
Frequent Visitor
Posts: 81
Joined: Thu Jan 08, 2009 4:25 pm
Location: Bonn, Germany
Contact:

Re: hotspot html login

Fri Sep 28, 2012 11:39 am

ok i done that but have slite problem, im getting error 404 not found. look like hotspot is blocking the page.
i disable hotspot it and tried going to the page and it work. is there a firewall rule i can use?
Of course the hotspot service has firewall rule. You should enter ip address of UM in walled garden by hotspot. Path: IP -> Hotspot -> Walled Garden IP List. If you do it, then you can access to the signup page.
 
nicmo
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 69
Joined: Sun Oct 03, 2010 11:36 am

Re: hotspot html login

Fri Sep 28, 2012 7:31 pm

Im still getting a error404 from when i try to go to signup page from login page.
 
User avatar
paka
Frequent Visitor
Frequent Visitor
Posts: 81
Joined: Thu Jan 08, 2009 4:25 pm
Location: Bonn, Germany
Contact:

Re: hotspot html login

Fri Sep 28, 2012 11:15 pm

This error message means that the signup page is not found

See this link, here is described how you can create the own signup page.

http://wiki.mikrotik.com/wiki/User_Mana ... ser_Signup

so you should do these things:

* create "umfiles" directory. (Note: The name "umfiles" has to be so, not otherwise)
* create "signup.html" and "signup_pay_form.html" (for content see this link) und insert these files in "umfiles" directory.
* download the file "general.js" from this link and insert it in "umfiles" directory too.
* insert the "umfiles" directory in "file" directory from RouterOS.