Page 1 of 1
How to change hotspot script status.html...
Posted: Wed Nov 15, 2006 5:33 am
by sky_16
do anyone can help me how to change the script on all hotspot script.so the billing when we login not become a popup instead a new window?cause,browsers have a feature to block all pop-up,so sometimes the popup not show up and the time still running and people will get confuse by that.
these are the cgi script that i got.
status.html
login.html
alogin.html
radvert.html
redirect.html
error.html
logout.html
thanks for helping me.i really need ur help.
Posted: Thu Nov 16, 2006 11:57 am
by freebird
What do you mean with
... not become a popup instead a new window ...
??
Isn't a popup the same like a new window?
The "status.html" page is called from the "alogin.html file"
...
<script language="JavaScript">
<!--
function startClock() {
$(if popup == 'true')
open('$(link-status)', 'hotspot_status', 'toolbar=0,location=0,directories=0,status=0,menubars=0,resizable=1,width=290,height=200');
$(endif)
location.href = '$(link-redirect)';
}
//-->
</script>
</head>
<body onLoad="startClock()">
...
You can switch opening the status page off in MT hotspot configuration.
What exactly do you wanna achieve?
seandsl
--
Posted: Thu Nov 16, 2006 12:03 pm
by normis
`popup` and `new window` is the same thing
![Very Happy :D](./images/smilies/icon_biggrin.gif)
Posted: Fri Nov 17, 2006 1:25 am
by bjohns
I got around 'most' pop-up blockers by sneaking a 'onclick' into a submit button. Tied it to some js that forms a new window and populates it with a refresh/redirect meta tag that brings up the status window. So it appears to the browser that it's a user requested pop-up. Some zealous blockers prevent even this method tho :/
Posted: Fri Nov 17, 2006 11:22 am
by normis
some people use textual browsers ... so what? tell your customer to add that site to their popup exceptions. you can't make it work for everyone
Posted: Fri Nov 17, 2006 11:37 am
by freebird
That would be a cool lynx or w3m plugin: "Open the link in new xterm" ...
seandsl
--
Posted: Fri Nov 17, 2006 11:42 am
by balimore
i never confuse about it, just my hotspot and suggestion to my hotspot user
with login authentication first.
e.g: now my hotspot address at: http://hotspot.um2link.net/ and i must tell them for prosedure as bellow and assumsy without walled garden:
1. open browser to any site when you are not connected login page is comming.
2. when still connected and want to see own statistic, you must open above link address and status is appear and get logout button.
3. need disconnecting visit again that address and click 'Logout' button and logout session and last record are appear.
only tree points prosedure for my user, so sorry that's my suggestion for myself.
Regards
Hasbullah.com
-----
Posted: Fri Nov 17, 2006 11:44 am
by normis
yes, something like that is recommended
![Smile :)](./images/smilies/icon_smile.gif)
Posted: Fri Nov 17, 2006 12:09 pm
by balimore
i never confuse about it, just my hotspot and suggestion to my hotspot user
with login authentication first.
e.g: now my hotspot address at: http://hotspot.um2link.net/ and i must tell them for prosedure as bellow and assumsy without walled garden:
1. open browser to any site when you are not connected login page is comming.
2. when still connected and want to see own statistic, you must open above link address and status is appear and get logout button.
3. need disconnecting visit again that address and click 'Logout' button and logout session and last record are appear.
only tree points prosedure for my user, so sorry that's my suggestion for myself.
Regards
Hasbullah.com
-----
-----
so sorry i forgot, only one problem when your internet gateway is down first item is failed...!!, i think no big problem.
regards
Hasbullah.com
-----
Posted: Mon Nov 20, 2006 9:03 am
by sky_16
i mean: popup can be blocked by browser feature such as block all popups.but if u can make this billing into new window it can be seen by the customer so they can logout first before they shut the system down...
if we use the current setting of mikrotik.sometimes the status bill not shown. if we not turn the feature block all popups off.
So,this solution can make customer feel convenient.and they all know must logout first before they shutdown the windows.
can anybody help me pls....
![Smile :)](./images/smilies/icon_smile.gif)
urgent!
Posted: Mon Nov 20, 2006 9:39 am
by normis
sky - popup is the same thing as new window !!!
Posted: Tue Nov 21, 2006 10:32 am
by sky_16
ok...thanks a lot.
Posted: Tue Nov 21, 2006 10:41 am
by balimore
ok...thanks a lot.
---
![Wink :wink:](./images/smilies/icon_wink.gif)
---