Community discussions

MikroTik App
 
routeurspot
just joined
Topic Author
Posts: 13
Joined: Thu Dec 10, 2009 9:23 pm

Voucher template constants

Mon Dec 21, 2009 12:18 pm

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
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6694
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: Voucher template constants

Mon Dec 28, 2009 9:20 am

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
 
routeurspot
just joined
Topic Author
Posts: 13
Joined: Thu Dec 10, 2009 9:23 pm

Re: Voucher template constants

Wed Jan 06, 2010 1:06 am

thanks Sergejs for your response.

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

best regards
 
jocho
just joined
Posts: 1
Joined: Wed Jul 27, 2011 10:47 am

Re: Voucher template constants

Mon Aug 01, 2011 11:27 am

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. :?
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6694
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: Voucher template constants

Thu Aug 04, 2011 4:35 pm

Wiki page about voucher templates is updated,
http://wiki.mikrotik.com/wiki/User_Mana ... _constants
The latest variables are listed there.
 
PPJ
newbie
Posts: 36
Joined: Sat Oct 08, 2011 12:55 pm
Location: South Peninsula Cape Town
Contact:

Re: Voucher template constants

Wed Feb 15, 2012 9:19 pm

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 :?
 
User avatar
RAHQGideon
newbie
Posts: 43
Joined: Wed Jun 30, 2010 9:18 am
Location: SA
Contact:

Re: Voucher template constants

Tue Mar 27, 2012 2:00 pm

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>
 
User avatar
skillful
Trainer
Trainer
Posts: 552
Joined: Wed Sep 06, 2006 1:42 pm
Location: Abuja, Nigeria
Contact:

Re: Voucher template constants

Fri Apr 06, 2012 12:09 am

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>
 
swissiws
Member Candidate
Member Candidate
Posts: 105
Joined: Sat Apr 04, 2009 12:42 am

Re: Voucher template constants

Tue Aug 07, 2012 11:59 am

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
 
swissiws
Member Candidate
Member Candidate
Posts: 105
Joined: Sat Apr 04, 2009 12:42 am

Re: Voucher template constants

Wed Aug 22, 2012 1:54 am

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
 
mgreant
just joined
Posts: 11
Joined: Sat May 31, 2014 2:25 pm

Re: Voucher template constants

Sat Dec 30, 2017 8:57 pm

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 ...
 
migmen
just joined
Posts: 3
Joined: Thu Dec 29, 2016 12:47 am

Re: Voucher template constants

Sat Jan 20, 2018 7:32 am

Yo quiero que los voucher o ticket se generen pero secuencial

ejemplo

ticket001
ticket002
ticket003
....
ticket100


habrá algun modo?

Who is online

Users browsing this forum: No registered users and 10 guests