Page 1 of 1

Voucher template constants

Posted: Mon Dec 21, 2009 12:18 pm
by routeurspot
Hi,

In userman test, it is possible to create templates.
So, I would like to know if you change the names of Voucher template constants ?

for example with userman : %u_fname%
with userman test : %u_firstName%

bets regards

Re: Voucher template constants

Posted: Mon Dec 28, 2009 9:20 am
by sergejs
The list for voucher constants is here.

_username - Username
u_password - Password
u_firstName - First name
u_lastName - Last name
u_phone - Phone
u_location - Location
u_comment - Comment
u_email - Email
u_ipAddr - IP address
u_callerId - Caller ID
u_shared_users - Shared users
u_usedUpload - Upload Used
u_usedDownload - Download Used
u_usedUptime - Uptime Used
u_lastIpAddr - Last used IP
u_lastMAC - Last used MAC
u_tillTime - Till time
u_timeLeft - Total time left
u_actualProfileName - Actual profile
u_actualProfileStart - Start time
u_actualProfileEnd - End time
u_actualProfileLeft - Time left
u_limitDownload - Download limit
u_limitUpload - Upload limit
u_limitDownload - Transfer limit
u_limitUptime - Uptime Limit
u_actualRateLim - Rate limit
u_moneyPaid - Money paid
u_moneyUsed - Money used
u_moneyLeft - Money left
u_wirelessPsk - Preshared key
u_wirelessEncKey - Encryption key
u_wirelessEncAlgo - Encryption algorithm

Re: Voucher template constants

Posted: Wed Jan 06, 2010 1:06 am
by routeurspot
thanks Sergejs for your response.

so, profiles in the menu there is the category price.
Price is a template constants ?

best regards

Re: Voucher template constants

Posted: Mon Aug 01, 2011 11:27 am
by jocho
The list for voucher constants is here.

_username - Username
u_password - Password
.......
.......
Hi all,
I'm sorry for picking up this old thread, but only here I found an answer for my voucher templates.
I've a 750 RouterBoard, wich is updated to ver. 5.5 and with UserManager package installed. Everything is fine, except
voucher templates. Wiki says some variables (for version 5.x) that didn't work for me. Until I found this thread and
Sergejs answer. May be wiki documents should be updated, just to save time.
Thanks Sergejs.


PS. My english is not so good. :?

Re: Voucher template constants

Posted: Thu Aug 04, 2011 4:35 pm
by sergejs
Wiki page about voucher templates is updated,
http://wiki.mikrotik.com/wiki/User_Mana ... _constants
The latest variables are listed there.

Re: Voucher template constants

Posted: Wed Feb 15, 2012 9:19 pm
by PPJ
For the transfer limit:

As per the link supplied above:

u_limit_transfer_f - This one does not work on my RB750's (ROS 5.7) :(

As per post above:

u_limitDownload - This one work on my RB750's (ROS 5.7) :)

So how correct are the updates :?

Re: Voucher template constants

Posted: Tue Mar 27, 2012 2:00 pm
by RAHQGideon
I am having issues with the constraints on v5.14 even if I use the new wiki. My %u_prep_time% %u_timeLeft% %u_tot_price% in not working. Only my username and password shows correctly. Any ideas?
<table style="color: black; font-size: 11px;" border="2" height="10" width="532"><tr><td><font size="2" face="Arial Black" color="#FF3300">Radio Active Telecommunications - 015 793 0855 <img border="0" src="http://www.radioactivewifi.co.za/usertpl/1vg010-left-column/logoblack2.jpg" width="41" height="37"></font><p>%d/%m/%Y</td></tr><tr><td bordercolorlight="#000000" bordercolordark="#000000"><b><font size="2" face="Arial">Time:</font></b></td><td bordercolorlight="#000000" bordercolordark="#000000"><b><font size="2" face="Arial">%u_prep_time%</font></b></td></tr><tr><td bordercolorlight="#000000" bordercolordark="#000000"><font face="Arial" size="2"><b>Validity</b></font></td><td bordercolorlight="#000000" bordercolordark="#000000"><b><font size="2" face="Arial">%u_timeLeft%</font></b></td></tr><tr><td bordercolorlight="#000000" bordercolordark="#000000"><b><font size="2" face="Arial">Price:</font></b></td><td bordercolorlight="#000000" bordercolordark="#000000"><b><font size="2" face="Arial">%u_tot_price%</font></b></td></tr><tr><td bordercolorlight="#000000" bordercolordark="#000000"><b><font size="2" face="Arial">Username:</font></b></td><td bordercolorlight="#000000" bordercolordark="#000000"></font><b><font size="2" face="Arial">%u_username%</font></b></td></tr><tr><td bordercolorlight="#000000" bordercolordark="#000000"><b><font size="2" face="Arial">Password:</font></b></td><td bordercolorlight="#000000" bordercolordark="#000000"><font face="Arial"><b><font size="2">%u_password%</font></b></font></td></tr></table>

Re: Voucher template constants

Posted: Fri Apr 06, 2012 12:09 am
by skillful
Try out my template.
<table style="color: black; font-size: 11px;" border="2" height="10"> <tr>   <td colspan="2" bordercolorlight="#000000" bordercolordark="#000000">     <b><font size="2" face="Arial Black" color="#FF3300">Cybronix Technologies</font></b>   </td> </tr> <tr>   <td bordercolorlight="#000000" bordercolordark="#000000">     <b><font size="2" face="Arial">Time:</font></b>   </td>   <td bordercolorlight="#000000" bordercolordark="#000000">     <b><font size="2" face="Arial">%u_limitUptime%</font></b>   </td> </tr> <tr>   <td bordercolorlight="#000000" bordercolordark="#000000">     <font face="Arial" size="2"><b>Validity</b></font>   </td>   <td bordercolorlight="#000000" bordercolordark="#000000">     <b><font size="2" face="Arial">%u_timeLeft%</font></b>   </td> </tr> <tr>   <td bordercolorlight="#000000" bordercolordark="#000000">     <b><font size="2" face="Arial">Price:</font></b>   </td>   <td bordercolorlight="#000000" bordercolordark="#000000">     <b><font size="2" face="Arial">%u_moneyPaid%</font></b>   </td> </tr> <tr>   <td bordercolorlight="#000000" bordercolordark="#000000">     <b><font size="2" face="Arial">Username:</font></b>   </td>   <td bordercolorlight="#000000" bordercolordark="#000000">     </font><b><font size="2" face="Arial">%u_username%</font></b>   </td> </tr> <tr>   <td bordercolorlight="#000000" bordercolordark="#000000">     <b><font size="2" face="Arial">Password:</font></b>   </td>   <td bordercolorlight="#000000" bordercolordark="#000000">     <font face="Arial"><b><font size="2">%u_password%</font></b></font>   </td> </tr> </table>

Re: Voucher template constants

Posted: Tue Aug 07, 2012 11:59 am
by swissiws
Same here
v5.19 -RB750

%u_limit_transfer_f%
%u_prep_time%
not working. Additionally, when generating 1000 batch user vouchers, where is the tick to print Voucher directly? I have currently many users loaded and ticking 1000 newly generated user vouchers can just not work?!

example of Voucher printout:

Login ypnen2
Password 2zqtjv
Limitation %u_limit_transfer_f% / %u_prep_time%
Price 10.00

Thanks for your help!

mat

Re: Voucher template constants

Posted: Wed Aug 22, 2012 1:54 am
by swissiws
Found a post

--- USERMAN ---

is not currently under development --- sososo, I am wondering then if it is ever getting developed again?

BTW - I 'solved' my issue in creating different templates with static values. All other issues I was able to solve. One core problem I had is with refresh of values and modifications I made within the GUI using Browser (IE/Chrome). The trick is to log off/ relogin to web page and amendments always showed up as set!

hope this helps for other USERMAN users.

M

Re: Voucher template constants

Posted: Sat Dec 30, 2017 8:57 pm
by mgreant
I tried to use %u_limit_download_f% but that didn't work.

What worked for me wat the %u_limitdownload% which actually seems to be 'friendly' now.

Hope this helps ...

Re: Voucher template constants

Posted: Sat Jan 20, 2018 7:32 am
by migmen
Yo quiero que los voucher o ticket se generen pero secuencial

ejemplo

ticket001
ticket002
ticket003
....
ticket100


habrĂ¡ algun modo?