HI
I’m using usermanager
I want to remaind the user if is having less than 24 hour to close his account
but no success tell now
i tried this script
:foreach i in=[/ip hotspot active find Session-Time-Left < 23:59:59]
do={
:log info ("payment reminder: " . [/ip hotspot active get $i user]);
/redirect to www.whatever.html ;
The Hotspot servlets already redirect all HTTP traffic to themselves so this is rather hard to do.
You can’t use scripts at all. Scripts cannot affect traffic flowing through the router directly. You have to use the script to populate an address-list. Based on that address list you have to accept all traffic in the pre-hotspot NAT chain to circumvent the servlet. You can the roughly use the guide at http://wiki.mikrotik.com/wiki/Payment_Reminders. Your script should also parse the has-seen-reminder list and use it to remove people from the initial list populated with people that have less than 24 hours left.