Is anyone using the add-on Captive Portal Plus
-
I have installed Captive Portal Plus and have been somewhat excited about the ability to print out voucher cards. The only issue is that the author make use of A4 size and I am looking for Letter size. If any one had made use of this add-on and using US Letter size (8.5x11), would you be so kind as to share the configuration for that.
-
Apparently, without knowing. I grabbed some old version somewhere, did a couple of hacks to make it at least not bomb out on recent PHP versions, replaced FPDF with tFPDF so that it would not print junk instead of Unicode chars, plus nuked useless stuff like some SMS gateway API.
I think it's this junk in print.php:
$rows = 8; $cols = 3; $width = 179;//Genutzte Breite in mm $height = 269;//Genutzte Höhe in mm $pdf->SetAutoPageBreak(false); $pdf->SetMargins(15, 15);
-
Apparently, without knowing. I grabbed some old version somewhere, did a couple of hacks to make it at least not bomb out on recent PHP versions, replaced FPDF with tFPDF so that it would not print junk instead of Unicode chars, plus nuked useless stuff like some SMS gateway API.
I think it's this junk in print.php:
$rows = 8; $cols = 3; $width = 179;//Genutzte Breite in mm $height = 269;//Genutzte Höhe in mm $pdf->SetAutoPageBreak(false); $pdf->SetMargins(15, 15);
Thanks for the quick response. I didn't see print.php, although I see include_cpp.php. I plugged in the numbers that you added, but it is still hitting me with:
Content Width is lower than 1.
Content Height is lower than 1.followed I am sure with:
Content Top Margin 
Content Left Margin -
In the version you linked, this is clearly configurable via the webpage. General - Document Width/Height, Column Width/Height. See settings_cpp.php. So, perhaps dig a bit deeper into the GUI.
-
Apparently, without knowing. I grabbed some old version somewhere, did a couple of hacks to make it at least not bomb out on recent PHP versions, replaced FPDF with tFPDF so that it would not print junk instead of Unicode chars, plus nuked useless stuff like some SMS gateway API.
I think it's this junk in print.php:
$rows = 8; $cols = 3; $width = 179;//Genutzte Breite in mm $height = 269;//Genutzte Höhe in mm $pdf->SetAutoPageBreak(false); $pdf->SetMargins(15, 15);
Hi I bought a pfsense device as I wanted to use this plugin or at least the standard captive portal with Radius so I can limit the upload / download of each user…. I want to create vouchers and limit the data each voucher can have to 100MB or maybe 500MB... I know this is possible and have been trying to get it working.... Can anyone help ?
-
This thread is about voucher printing. Kindly start your own.
-
Hello, i did install this addon, but i'm getting the error message "The PDF service has no vouchers" anyone else with this problema ?
-
Same Problem with me. Anyone got an idea?