Community discussions

MikroTik App
 
User avatar
marieL
just joined
Topic Author
Posts: 18
Joined: Mon Sep 22, 2008 10:58 am

show a web page each 10 minutes

Sun Dec 21, 2008 4:10 pm

Hi all.
In a hotspot, is it possible to show to the user a certain pag each 10 minutes it navigates ?
I want to display the status page of the connection.
Have someone an hint ?

thanks to all.
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: show a web page each 10 minutes

Sun Dec 21, 2008 7:35 pm

The hotspot/status.html page already does that kinda. That is the page that shows the "logged in" stats. The timing on it can be changed to every ten minutes. You could add what you want to it.
 
User avatar
marieL
just joined
Topic Author
Posts: 18
Joined: Mon Sep 22, 2008 10:58 am

Re: show a web page each 10 minutes

Sun Dec 21, 2008 7:43 pm

thank you SurferTim.
this happen also if the user close the status page ?
I can say to the hotspot to reopen this page each 10 minutes ?

thanks
marie
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: show a web page each 10 minutes

Sun Dec 21, 2008 8:00 pm

I don't know about that. Even the advertising page seems to work off the status page. Once it is closed, I see no way to reopen it. Maybe the advertising popup will reopen it if you have 'advertise=yes' set in '/ip hotspot user profile'. I have not tried that.
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: show a web page each 10 minutes

Sun Dec 21, 2008 8:56 pm

Here may be a way. I used a file called "test.html" for the test:
/ip hotspot user profile set X advertising=yes advertise-interval=10m
/ip hotspot user profile set X advertising-url=http://192.168.0.1/test.html
Replace X's with the profile line number and the advertising-url with the IP of your MT box. Mine is 192.168.0.1.
It will popup only when the user navigates from one page to another after 10 minutes. If the user stays on one page, the advertising popup sequence does not activate without the status page.
Upload a file "test.html" into the hotspot directory of your MT box. The servelet section in the hotspot docs should help with the variables you may need.
 
User avatar
marieL
just joined
Topic Author
Posts: 18
Joined: Mon Sep 22, 2008 10:58 am

Re: show a web page each 10 minutes

Mon Dec 29, 2008 9:44 am

Thanks a lot surferTim.
It works as you describe.
Anyone think coud be another way to force the opening of a page also if the user do not change page ?

Happy new Year!
 
reinerotto
Long time Member
Long time Member
Posts: 523
Joined: Thu Dec 04, 2008 2:35 am

Re: show a web page each 10 minutes

Mon Jan 05, 2009 8:08 pm

Thanks a lot surferTim.
It works as you describe.
Be careful using the ad-feature !
Refere to my reported bug in
http://forum.mikrotik.com/viewtopic.php?f=2&t=28642

In case, you can confirm the bug, it might help both of us :-)
 
reinerotto
Long time Member
Long time Member
Posts: 523
Joined: Thu Dec 04, 2008 2:35 am

Re: show a web page each 10 minutes

Thu Jan 22, 2009 12:11 pm

Update on the bug, which I reported, on
http://forum.mikrotik.com/viewtopic.php?f=2&t=28642

3.19 fixed the problem BUT: Please read ...
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: show a web page each 10 minutes

Thu Jan 22, 2009 12:24 pm

Like I said, and as normis' signature says, "Ask and you shall receive"! But for others, IF YOU DON'T ASK, you can't expect to receive. Got a challenge? Let them know! :D
 
propeller4
just joined
Posts: 1
Joined: Sun Apr 19, 2009 7:06 pm

Re: show a web page each 10 minutes

Sun Apr 19, 2009 7:07 pm

very useful information, thank

Who is online

Users browsing this forum: No registered users and 28 guests