Page 1 of 1

User manager reminders

Posted: Wed Mar 27, 2013 6:26 pm
by gvango
Hello everyone,
Is there a way to set up some kind of a reminder so that I remind users their account will expire in 3 days, 2 days and finally 1 day?
I use user manager and RB750 V. 5.20

Maybe redirect them to a page that will tell them: YOUR ACCOUNT WILL EXPIRE IN 3 DAYS. PLEASE RENEW TO STAY CONNECTED.!

Thanks to all of you experts.

George

Re: User manager reminders

Posted: Thu Mar 28, 2013 8:29 am
by mankomal
Hello everyone,
Is there a way to set up some kind of a reminder so that I remind users their account will expire in 3 days, 2 days and finally 1 day?
I use user manager and RB750 V. 5.20

Maybe redirect them to a page that will tell them: YOUR ACCOUNT WILL EXPIRE IN 3 DAYS. PLEASE RENEW TO STAY CONNECTED.!

Thanks to all of you experts.

George
George,
not hijacking your post but a very good question if it is possible ...

Re: User manager reminders

Posted: Thu Mar 28, 2013 9:23 am
by samir494
hi

check this one

you need to check filed Character constants from http://wiki.mikrotik.com/wiki/User_Mana ... _constants


:foreach a in [/ip hotspot active find] do={
:if ([/ip hotspot active get $a %u_actualProfileLeft%]<3d) do={
/tool e-mail send
to=xxx@xxx.de
subject=("'" . [/ip hotspot active get $a user] . "' logged in") \
body=("User:" . [/ip hotspot active get $a user] . " Date:" . \
[/system clock get time] . " IP address:" . \
[/ip hotspot active get $a address] . " MAC address:" . \
[/ip hotspot active get $a mac-address] . " actualProfileEnd:" . \
[/ip hotspot active get $a %u_actualProfileEnd%])
}
}

Re: User manager reminders

Posted: Sat Mar 30, 2013 11:46 am
by gvango
Thanks a lot samir494,
I was looking for a redirection script. To send the user that is approaching expiration date to lets say: http://192.168.80.1/exp-reminder.htm
Many of my customers do not even have an e-mail account. They are just only interested in Facebook and Skype.!!
If a redirection could work, that would be ideal.! Say every half hour they are directed to the reminder page so they renew their account.
I would appreciate your reply if you have something like this.

George

Re: User manager reminders

Posted: Mon Apr 01, 2013 4:03 am
by neandero

Re: User manager reminders

Posted: Tue Jun 25, 2013 9:11 pm
by ven16
hi

check this one

you need to check filed Character constants from http://wiki.mikrotik.com/wiki/User_Mana ... _constants


:foreach a in [/ip hotspot active find] do={
:if ([/ip hotspot active get $a %u_actualProfileLeft%]<3d) do={
/tool e-mail send
to=xxx@xxx.de
subject=("'" . [/ip hotspot active get $a user] . "' logged in") \
body=("User:" . [/ip hotspot active get $a user] . " Date:" . \
[/system clock get time] . " IP address:" . \
[/ip hotspot active get $a address] . " MAC address:" . \
[/ip hotspot active get $a mac-address] . " actualProfileEnd:" . \
[/ip hotspot active get $a %u_actualProfileEnd%])
}
}
hi,

where can we keep this code?

thank you,

ven

Re: User manager reminders

Posted: Wed Jun 26, 2013 3:28 pm
by samir494
you need to add this code in scripts

Re: User manager reminders

Posted: Sun Sep 13, 2015 1:41 pm
by cicserver
you need to add this code in scripts
is there any possibility to implement it for PPPOE USERS (with userman)
?

Re: User manager reminders

Posted: Mon Sep 28, 2015 11:18 am
by tiran
you need to add this code in scripts
is there any possibility to implement it for PPPOE USERS (with userman)
?
i also try to add user reminds or alerts about their usage. but i couldn't yet find a proper solution. actually i want to alert on web browser before end user allocated transfer limit or time (eg: "you have only 50 MB more..")

Re: User manager reminders

Posted: Sat Oct 31, 2015 5:57 pm
by tiran
actually i use limited packages such as 512MB, 1GB. i want to display a alert before end of this limits (ex. when user reach 480MB from 512MB, display massage ":dear customer you have 32 MB more".)