Community discussions

MikroTik App
 
User avatar
sky_16
just joined
Topic Author
Posts: 20
Joined: Wed Nov 15, 2006 4:36 am

How to change hotspot script status.html...

Wed Nov 15, 2006 5:33 am

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.
 
freebird
Frequent Visitor
Frequent Visitor
Posts: 98
Joined: Sun Feb 20, 2005 1:16 pm

Thu Nov 16, 2006 11:57 am

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
--
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26381
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Thu Nov 16, 2006 12:03 pm

`popup` and `new window` is the same thing :D
 
User avatar
bjohns
Member Candidate
Member Candidate
Posts: 271
Joined: Sat May 29, 2004 4:11 am
Location: Sippy Downs, Australia
Contact:

Fri Nov 17, 2006 1:25 am

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 :/
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26381
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Fri Nov 17, 2006 11:22 am

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
 
freebird
Frequent Visitor
Frequent Visitor
Posts: 98
Joined: Sun Feb 20, 2005 1:16 pm

Fri Nov 17, 2006 11:37 am

That would be a cool lynx or w3m plugin: "Open the link in new xterm" ... :P

seandsl
--
 
User avatar
balimore
Forum Veteran
Forum Veteran
Posts: 884
Joined: Mon Apr 10, 2006 3:38 am

Fri Nov 17, 2006 11:42 am

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
-----
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26381
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Fri Nov 17, 2006 11:44 am

yes, something like that is recommended :)
 
User avatar
balimore
Forum Veteran
Forum Veteran
Posts: 884
Joined: Mon Apr 10, 2006 3:38 am

Fri Nov 17, 2006 12:09 pm

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
-----
 
User avatar
sky_16
just joined
Topic Author
Posts: 20
Joined: Wed Nov 15, 2006 4:36 am

Mon Nov 20, 2006 9:03 am

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.... :) urgent!
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26381
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Mon Nov 20, 2006 9:39 am

sky - popup is the same thing as new window !!!
 
User avatar
sky_16
just joined
Topic Author
Posts: 20
Joined: Wed Nov 15, 2006 4:36 am

Tue Nov 21, 2006 10:32 am

ok...thanks a lot.
 
User avatar
balimore
Forum Veteran
Forum Veteran
Posts: 884
Joined: Mon Apr 10, 2006 3:38 am

Tue Nov 21, 2006 10:41 am

ok...thanks a lot.
---
:wink:
---

Who is online

Users browsing this forum: No registered users and 30 guests