• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Template Roll Printer with options (for 2.2.6, 2.3, 2.3.4, 2.4.0, 2.4.4)

Captive Portal
34
90
37.9k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J
    jassrahal
    last edited by Apr 11, 2016, 7:53 PM

    One question, will the previous issued vouchers work once I replace the files with yours?

    1 Reply Last reply Reply Quote 0
    • D
      DanieleIT
      last edited by Apr 12, 2016, 12:08 PM

      @jassrahal:

      One question, will the previous issued vouchers work once I replace the files with yours?

      Yes. This is just a mod to print vouchers. It doesn't interact with vouchers in any other way.

      1 Reply Last reply Reply Quote 0
      • D
        DanieleIT
        last edited by Apr 12, 2016, 12:10 PM

        @Derelict:

        I would suggest adding an expiration date, which would be the date on which you can delete the roll.

        Hi this would be a good idea! I'll do that as soon as I find some spare time.
        In the meanwhile people can use the "Voucher Info" text. By editing the CSS it can easily go 2 lines.

        Thanks!

        1 Reply Last reply Reply Quote 0
        • R
          redeyes
          last edited by Apr 18, 2016, 4:04 AM

          If possible can you update it for pfSense 2.3  ?

          1 Reply Last reply Reply Quote 0
          • D
            DanieleIT
            last edited by Apr 18, 2016, 8:31 PM Apr 18, 2016, 3:25 PM

            @redeyes:

            If possible can you update it for pfSense 2.3  ?

            Yes, I'v uploaded today the 2.3! let me know if you find any issue!

            1 Reply Last reply Reply Quote 0
            • R
              redeyes
              last edited by Apr 18, 2016, 9:55 PM

              Thanks mate. You're a STAR  :)

              1 Reply Last reply Reply Quote 0
              • M
                misterpat
                last edited by Apr 19, 2016, 12:11 AM

                This is great! Any way to make this a package we can install so when we upgrade it will be reinstalled?

                1 Reply Last reply Reply Quote 0
                • F
                  fr0t
                  last edited by Apr 19, 2016, 7:35 AM

                  Hi,

                  Few posts ago I asked about barcode, would it be something nearly impossible to do? I didn't install it yet because voucher w/o barcode can't be used in our site and my second question is - how is the template format like? Is it something I could re-design and try to put barcode myself?

                  Thanks!

                  1 Reply Last reply Reply Quote 0
                  • F
                    fr0t
                    last edited by Apr 19, 2016, 8:16 AM

                    @fr0t:

                    Hi,

                    Few posts ago I asked about barcode, would it be something nearly impossible to do? I didn't install it yet because voucher w/o barcode can't be used in our site and my second question is - how is the template format like? Is it something I could re-design and try to put barcode myself?

                    Thanks!

                    Never mind, I have just installed another instance of pfs on another VM box and have seen how it works, it looks like bit complicated and I believe I would probably have to redesign template after every single update if I am right ?!

                    So I decided to write my own application using Lazarus - it just require to import .csv file with vouchers and choose template with indyvidual information of each roll like valid for xxx minutes/weeks or months, barcode type, logo, place name etc. It has its own build in designer so to change anything in the template require just quick learn (intuitively easy) how it works and thats it.

                    Its in quite raw format yet but if I see someone interested I can share my app once I finish it.

                    1 Reply Last reply Reply Quote 0
                    • D
                      DanieleIT
                      last edited by Apr 29, 2016, 3:21 PM

                      @fr0t:

                      Hi,

                      Few posts ago I asked about barcode, would it be something nearly impossible to do? I didn't install it yet because voucher w/o barcode can't be used in our site and my second question is - how is the template format like? Is it something I could re-design and try to put barcode myself?

                      Thanks!

                      Sorry I didn't have the time to look about barcodes generation!
                      I've checked today, and there are a few nice jquery libraries for barcode generation.

                      Please check this Fiddle I've created to see how it works:
                      http://jsfiddle.net/Idioblast/3j1mnwe3/

                      Basically, from the actual code you just jave to link the needed .js files (both jquery and barcode) and add a(with relative CSS).

                      Then, and at the end of the page this code:

                      
                      $('.barcode').each(function() {
                          var $this = $(this);
                          $this.barcode(
                               $this.siblings('.vcode').text(),
                              'code128',
                              {barWidth:1, barHeight:30, output: 'css'} 
                          );
                      });
                      
                      

                      This cycles every .barcode div and looks for the code in the .vcode div and creates a code128 barcode.
                      You can play with the options but it should work fine.

                      Let me know
                      Ciao

                      1 Reply Last reply Reply Quote 0
                      • I
                        ikkuranus
                        last edited by May 27, 2016, 1:33 AM May 24, 2016, 2:23 AM

                        I have added some permissions so people with more limited accounts can print out vouchers without having full access to the webui

                        compatible with 2.3.x not sure about older versions
                        unzip the following file into /etc/inc/priv/

                        @DanieleIT feel free to add this as part of the package.

                        portalprint.priv.inc.zip

                        1 Reply Last reply Reply Quote 0
                        • K
                          kenmark
                          last edited by May 26, 2016, 3:27 PM

                          I am too noob. i googled for 2 hours on a guide on how to access this.
                          /usr/local/www/ in pfSense GUI. using 2.3.1

                          1 Reply Last reply Reply Quote 0
                          • M
                            misterpat
                            last edited by May 26, 2016, 3:29 PM

                            If using Windows try win SCP

                            @kenmark:

                            I am too noob. i googled for 2 hours on a guide on how to access this.
                            /usr/local/www/ in pfSense GUI. using 2.3.1

                            1 Reply Last reply Reply Quote 0
                            • K
                              kenmark
                              last edited by May 26, 2016, 4:24 PM

                              @misterpat:

                              If using Windows try win SCP

                              I used FTP but thank you for giving the idea. Now made it work on 2.3.1! Kappaaaaa!

                              1 Reply Last reply Reply Quote 0
                              • D
                                deajan
                                last edited by May 27, 2016, 8:23 AM

                                Hello DanieleIT,

                                I wonder if I could make my captive portal solution user interface (see my howto post) compatible with your voucher system.
                                Did you write any documentation for it ?
                                Do you have a github account with the code ?

                                Regards,
                                Ozy.

                                NetPOWER.fr - some opensource stuff for IT people

                                1 Reply Last reply Reply Quote 0
                                • D
                                  DanieleIT
                                  last edited by May 31, 2016, 10:21 PM

                                  Hi Deajan, sorry for my late reply but apparently I'm not receiving mail notifications anymore  :-\

                                  You can make whatever you'd like to with the code, it's here for everyone to use.
                                  I did not write any documentation and I've not created a gib with the code. It's pretty much all there in the zip file.
                                  I'll be glad to help if you need (But please remember, as stated in my OP, that I'm not a PHP developer  :) )

                                  Ciao

                                  1 Reply Last reply Reply Quote 0
                                  • D
                                    deajan
                                    last edited by May 31, 2016, 10:29 PM

                                    Missing notifications too :(

                                    Would you mind if I fork your work into my github ?

                                    NetPOWER.fr - some opensource stuff for IT people

                                    1 Reply Last reply Reply Quote 0
                                    • D
                                      DanieleIT
                                      last edited by May 31, 2016, 10:34 PM

                                      I would not!
                                      Also, let me know the link of the git so I can update the OP with it

                                      1 Reply Last reply Reply Quote 0
                                      • D
                                        DanieleIT
                                        last edited by May 31, 2016, 10:44 PM

                                        @ikkuranus:

                                        I have added some permissions so people with more limited accounts can print out vouchers without having full access to the webui

                                        compatible with 2.3.x not sure about older versions
                                        unzip the following file into /etc/inc/priv/

                                        @DanieleIT feel free to add this as part of the package.

                                        Thank you, I'll add the file in the zip (2.3.x version) as soon as possible.
                                        Ciao

                                        1 Reply Last reply Reply Quote 0
                                        • D
                                          dpa
                                          last edited by Jun 3, 2016, 11:03 PM

                                          Great job guys!

                                          Excited to see how far this will go.

                                          Kind regards,
                                          Reward

                                          1 Reply Last reply Reply Quote 0
                                          • First post
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.