Page 1 of 1
hotspot html login
Posted: Thu Sep 27, 2012 5:49 am
by nicmo
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
Re: hotspot html login
Posted: Thu Sep 27, 2012 12:11 pm
by paka
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'">
Re: hotspot html login
Posted: Fri Sep 28, 2012 4:45 am
by nicmo
ok Thanks
Re: hotspot html login
Posted: Fri Sep 28, 2012 8:40 am
by nicmo
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?
Re: hotspot html login
Posted: Fri Sep 28, 2012 11:39 am
by paka
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.
Re: hotspot html login
Posted: Fri Sep 28, 2012 7:31 pm
by nicmo
Im still getting a error404 from when i try to go to signup page from login page.
Re: hotspot html login
Posted: Fri Sep 28, 2012 11:15 pm
by paka
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.