Community discussions

MikroTik App
 
airforce1
just joined
Topic Author
Posts: 20
Joined: Sun Dec 09, 2007 1:21 pm

POST VOUCHER TEMPLATES HERE

Sun Dec 09, 2007 2:16 pm

Lets all post our edited voucher templates here to help users without html knowledge


here's mine
<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">BIU Tech Airforce1 Wireless</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"></font><b><font size="2" face="Arial">%u_limit_uptime%</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_prep_time%</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"></font><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
ashish
Long time Member
Long time Member
Posts: 546
Joined: Mon Feb 12, 2007 5:50 am
Location: Virginia, USA.

Re: POST VOUCHER TEMPLATES HERE

Thu Dec 27, 2007 1:29 pm

good one,
But it is coming one VOUCHER per page, I need it morethan one in one page.
 
User avatar
JP_Wireless
Member Candidate
Member Candidate
Posts: 276
Joined: Thu Dec 13, 2007 4:31 pm
Location: Lagos Nigeria
Contact:

Re: POST VOUCHER TEMPLATES HERE

Sat Jan 12, 2008 1:35 pm

i have a similar script, it seems only MT administrator can set the number per page which is currently set to a maximum of three. i learnt the next Userman will do better on this issue. So let'u wait!
 
csickles
Forum Guru
Forum Guru
Posts: 1255
Joined: Fri May 28, 2004 8:46 pm
Location: Phoenix, AZ
Contact:

Re: POST VOUCHER TEMPLATES HERE

Wed Feb 06, 2008 12:17 am

How about this one...
Prints on a thermal (POS) printer..

http://info.microage.com/Campaigns/MicroAge/hotspot.bmp


It is a bit rough here but it is an export.

The original prints clean..

NOTE: this is format generated by "BarTender Ver 8.0" from seagull scientiffic"..

I just build the SCV (add a group of users) and bartender picks up the file and prints the ticket.

It could be coded to look at ant of the fields and dirrect it to a speciffic printer....
 
overnet
just joined
Posts: 1
Joined: Thu Jun 29, 2006 3:47 pm
Location: Arluno -Italy

Re: POST VOUCHER TEMPLATES HERE

Wed Feb 20, 2008 11:39 am

Hello,
has anyone found an easy and chap thermal printer in order to print the voucher directly from the web page of a pc? (like zyxel or other)
The voucher are printable without any other program on the pc?
I mean, I wiil create a web page on the user manager web server (/hotspot or other of the MT machine) and print that from the pc of the hall of the Hotel.

Regards
Andrea
 
User avatar
Akangage
newbie
Posts: 45
Joined: Tue May 29, 2007 2:33 pm
Location: Indonesia
Contact:

Re: POST VOUCHER TEMPLATES HERE

Thu Feb 28, 2008 6:46 pm

How about this one...
Prints on a thermal (POS) printer..
http://info.microage.com/Campaigns/MicroAge/hotspot.bmp

It is a bit rough here but it is an export.

The original prints clean..

NOTE: this is format generated by "BarTender Ver 8.0" from seagull scientiffic"..

I just build the SCV (add a group of users) and bartender picks up the file and prints the ticket.

It could be coded to look at ant of the fields and dirrect it to a speciffic printer....
Wow how could do that?????
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6694
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: POST VOUCHER TEMPLATES HERE

Mon Mar 10, 2008 9:07 am

Airforce1 thank you so much for the topic !
We have created new wiki topic, where you are all welcome to post your Voucher examples.
http://wiki.mikrotik.com/wiki/User_Mana ... e#Examples

It would be great to see your nice Voucher Templates there.
 
User avatar
fbaffoni
Frequent Visitor
Frequent Visitor
Posts: 91
Joined: Fri Feb 22, 2008 2:10 pm

Re: POST VOUCHER TEMPLATES HERE

Thu Mar 27, 2008 10:16 pm

This is intresting.

I am trying to insert a picture with the name of my company on the voucher, at first i did try with the Mikrotik logo, that comes in /hotspot/img/logobottom.png, and work perfectly!!
But at the time to put my own logo, don´t show it, even i try replacing that logo with anotherone of my own and the same dimensions, and still showing the mikrotik logo!!! i dont understund it!! (I REPLACE IT, and when i try to login my own logo appears there)
Then i tried changing the source of the file, and still not working.

This is the html code of my last test.
<td width="29%"><img src="/hotspot/logobottom.png" alt="" title="" /></a></td>
<td align="right" width="26%">
How could i change the picture?.

Thank you.
 
murray654
newbie
Posts: 25
Joined: Sat Sep 15, 2007 1:28 pm
Location: Drakensberg, South Africa
Contact:

Re: POST VOUCHER TEMPLATES HERE

Fri Sep 09, 2011 4:08 pm

Hi

I need to print users uptime limit on the voucher.

This constant (found in wiki) does not work: %u_limitUptime% (the text is not replaced when generating vouchers)

How do I print the uptime limit?

Thanks in advance.

Oh, my version of routeros is 4.17 and my router is RB750

Cheers,

Murray
 
murray654
newbie
Posts: 25
Joined: Sat Sep 15, 2007 1:28 pm
Location: Drakensberg, South Africa
Contact:

Re: POST VOUCHER TEMPLATES HERE

Fri Sep 09, 2011 4:14 pm

Hi

I need to print users uptime limit on the voucher.

This constant (found in wiki) does not work: %u_limitUptime% (the text is not replaced when generating vouchers)

How do I print the uptime limit?

Thanks in advance.

Oh, my version of routeros is 4.17 and my router is RB750

Cheers,

Murray
OK I got it %u_limitUptime% is wrong - %u_limit_uptime% is right - Wiki is useful, but its got mistakes...
 
User avatar
aacable
Member
Member
Posts: 435
Joined: Wed Sep 17, 2008 11:58 am
Location: ISLAMIC Republic of PAKISTAN
Contact:

Re: POST VOUCHER TEMPLATES HERE

Sat Sep 10, 2011 12:07 pm

 
adeelkml
just joined
Posts: 10
Joined: Sun Jan 22, 2012 9:27 pm

Re: POST VOUCHER TEMPLATES HERE

Mon Feb 11, 2013 11:01 pm

 
User avatar
kangndo
just joined
Posts: 16
Joined: Mon Dec 09, 2013 12:59 pm
Contact:

Re: POST VOUCHER TEMPLATES HERE

Sun Sep 07, 2014 2:52 am

Try this one too
.

Row:
<table style="display: inline-block; width: 250px; border: 1px solid #ccc; line-height: 110%; font-family: arial; font-size: 12px; margin: 1px;">
<tbody>
<tr>
<td style="text-align: center; color: red; font-size: 13px; border-bottom: 1px #ccc solid;"><b>KANGNDO HOTSPOT VOUCHER</b></td>
</tr>
<tr>
<td>
<table style=" text-align: center; width: 240px; background-color: #fff; line-height: 110%; font-size: 11px;">
<tbody>
<tr style="background-color: #eee;">
<td style="background-color: #fff; width: 33%"><b>PAKET</b></td>
<td style="width: 33%">Speed</td>
<td style="width: 33%">Data</td>
</tr>
<tr>
<td ><b>%u_actualProfileName%</b></td>
<td>Up to 1Mbps</td>
<td>%u_limitDownload%</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td>
<table style=" text-align: center; width: 240px; background-color: #fff; line-height: 110%; font-size: 11px;">
<tbody>
<tr style="background-color: #eee;">
<td style="width: 33%">Time</td>
<td style="width: 33%">Validity</td>
<td style="width: 33%">Price</td>
</tr>
<tr>
<td>%u_limitUptime%</td>
<td>%u_timeLeft%</td>
<td>Rp %u_moneyPaid%</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td>
<table style=" text-align: center; width: 240px; background-color: #fff; line-height: 110%; font-size: 12px; border-top: 1px solid #ccc;">
<tbody>
<tr style="color: red; font-size: 11px;">
<td style="width: 50%">Username</td>
<td>Password</td>
</tr>
<tr style="background-color: #fff;">
<td style="color: #888; border: 1px #ccc solid;">%u_username%</td>
<td style="color: #888; border: 1px #ccc solid;">%u_password%</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="text-align: center; font-size:11px;">Call: 082 324 660 655</td>
</tr>
</tbody>
</table>
Screenshot:
Image
voucher template by kangndo http://kangndo.com/2014/09/07/mikrotik- ... -template/

Regards
Kangndo
Last edited by kangndo on Sat Dec 13, 2014 8:29 am, edited 1 time in total.
 
User avatar
kangndo
just joined
Posts: 16
Joined: Mon Dec 09, 2013 12:59 pm
Contact:

Re: POST VOUCHER TEMPLATES HERE

Fri Nov 14, 2014 3:53 pm

 
usmany
Member Candidate
Member Candidate
Posts: 144
Joined: Sun Dec 20, 2009 3:20 pm
Location: Nigeria
Contact:

Re: POST VOUCHER TEMPLATES HERE

Tue Dec 16, 2014 2:30 pm

Thank you all
 
mazbhenks
just joined
Posts: 2
Joined: Sun Jun 19, 2016 6:42 pm
Contact:

Re: POST VOUCHER TEMPLATES HERE

Sun Jun 19, 2016 7:10 pm

This is my voucher template. Just copy-paste if you like it.
Image

Printed Version:
Image

Template (User Manager)
Header:
<!DOCTYPE html> <html> <head>   <title>Voucher Hotspot</title>   <link rel="stylesheet" href="http://mazbhenks.com/dock/hotspot/voucher/bootstrap.min.css">   <link rel="stylesheet" href="http://mazbhenks.com/dock/hotspot/voucher/style.css">   <link rel="stylesheet" href="http://mazbhenks.com/dock/hotspot/voucher/mbr-additional.css"> </head>  <body> <section id="form1-5"> <div class="col-sm-4"> 
Row:
<div class="col-sm-1 col-sm-offset-0" style="background-image: url(http://mazbhenks.com/dock/hotspot/voucher/bg.jpg);background-size: 250px 415px;"> <div class="mbr-header--center mbr-header--std-padding"> <h2 class="mbr-header__text">Voucher WiFi</h2> <h2 class="mbr-header__text" style="font-family:Courier New;">10.000</h2> <h3 class="mbr-header__text" style="font-size:1em;">%u_actualProfileName%</h3> <h3 class="mbr-header__text" style="font-size:0.7em;">SSID: Hotspot Pro.NET</h3> </div> <form> <table class="userpass"><tr><td align="center">USERNAME | PASSWORD</td></tr><tr><td> <input type="text" class="form-control" style="text-align: center;" value="%u_username% | %u_password%" /></td></tr></table> </form> <div class="mbr-header--center  mbr-header--std-padding"> <br/> <h3 class="mbr-header__text" style="font-size:1em;">Login:</h3> <h3 class="mbr-header__text" style="font-size:0.7em;">http://hotspot.pro.net</h3> </div> </div>
Footer:
</div> </section>  </body> </html>
Break:
<p class="noprint" style="font-size: 10px">   ................ page break ................ </p> <p class="pagebreak">&nbsp;</p>
 
xigm8
just joined
Posts: 2
Joined: Fri Jun 17, 2016 10:28 am

Re: POST VOUCHER TEMPLATES HERE

Wed Jun 22, 2016 5:15 pm

Hi Mazbhenks

I like your template & thanks for post. please correct the printing problems 1) the background pic and urser & password is out of position when rinting
 
mazbhenks
just joined
Posts: 2
Joined: Sun Jun 19, 2016 6:42 pm
Contact:

Re: POST VOUCHER TEMPLATES HERE

Sat Jul 02, 2016 8:43 am

on your browser, click File --> Page Setup and Check "Print Background (colors & images)"
 
ambrosemtk
just joined
Posts: 20
Joined: Tue Sep 05, 2017 12:29 pm
Location: Uganda
Contact:

Re: POST VOUCHER TEMPLATES HERE

Tue Dec 05, 2017 9:04 am

[q[/quote]
Lets all post our edited voucher templates here to help users without html knowledge


here's mine
add "display:inline-table" on the style tag
<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">BIU Tech Airforce1 Wireless</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"></font><b><font size="2" face="Arial">%u_limit_uptime%</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_prep_time%</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"></font><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>
 
ronylove
newbie
Posts: 28
Joined: Fri Aug 10, 2018 6:33 pm

Re: POST VOUCHER TEMPLATES HERE

Mon Jul 29, 2019 11:25 pm

Excellent post.
I would like to ask you a huge favor, and the truth is that I could not find an answer.
I would like to be able to obtain the personal data of the people who register.
In other words, you can print the name and surname and if you can mail it.

Thank you

Who is online

Users browsing this forum: No registered users and 7 guests