Customizing Ticket Page

  • 0
  • 1
  • Question
  • Updated 2 years ago
  • Answered
Just a short question. Is it possible to add graphics in the ticket page of extreme wireless controllers running the latest FW? 

thanks in advance

Philipp Tittmann
Photo of Thomas Lang

Thomas Lang

  • 88 Points 75 badge 2x thumb

Posted 4 years ago

  • 0
  • 1
Photo of Hartmut Sachse

Hartmut Sachse

  • 2,598 Points 2k badge 2x thumb
Hello Phillip,
I'm not sure if the latest firmware 9.x include a official way to include a image for the ticket page, but I know a workaround to include a image in the ticket page:

1. Upload image via upload botton in the captive portal editor

2. Log in to EWC via SSH

3. Enter the command "shell ", then ENTER

4. Enter the root password, now you got a linux shell (busybox) The uploaded image is stored somewhere under /var/controller/images/cp/vns/NUMBER/image.jpg (NUMBER depends on creation of the vns). You can use the "find" command to search for the right path

5. Create a logical link to the file or copy file to /var/controller/www/NtwkCfg/ Example: ln -s /var/controller/images/cp/vns/1/image.jpg /var/controller/www/NtwkCfg/image.jpg

6. Upload your customized ticket page (html, including tag)

This works in my setup, but if you update the firmware the link/file is deleted.  Steps 5 to 6 have to be redone.

Best regards
Hartmut Sachse
Photo of Thomas Lang

Thomas Lang

  • 88 Points 75 badge 2x thumb
Hi Hartmut, 

i will test your workaround the next days 

Best regards

Philipp Tittmann
Photo of Hartmut Sachse

Hartmut Sachse

  • 2,598 Points 2k badge 2x thumb
If you need instruction how to create the ticket page template, i could provide you an example. The <img> tag has to look something like this: "<img src="image.jpg">.

Upload of the ticket page is possible via web gui. Just try it.
Photo of Marco Lorenz

Marco Lorenz

  • 60 Points

Hi Hartmut,


I have Problems creating a working Ticket-Page.

The variables are not filled in...

Can you provide me a working one?


Kind Regards

Marco

Photo of Hartmut Sachse

Hartmut Sachse

  • 2,598 Points 2k badge 2x thumb
Here is an example page:

<HTML>
<HEAD>
<title></title>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type"/>
</HEAD>
<body style="text-align:center">
<table cellspacing="0" cellpadding="0" border="0" align="center"
width="790">
<tr>
<td style="color:black;fontweight:
bold;font-size:30;padding:5px"
align="center" width="790">

<br><br>
<img src="your_logo.jpg" width="50%" height="50%" alt="description"/>
<br><br>

</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0" style="margin:0 auto">
<tr>
<td align="right"><b>Name:</b></td>
<td align="left">!GuestName</td>
</tr>
<tr>
<td align="right"><b>User name:</b></td>
<td align="left">!UserID</td>
</tr>
<tr>
<td align="right"><b>Password:</b></td>
<td align="left">!Password</td>
</tr>
<tr>
<td align="right"><b>Valid since:</b></td>
<td align="left">!AccountActivationTime</td>
</tr>
<tr>
<td align="right"><b>Valid till:</b></td>
<td align="left">!AccountLifeTime</td>
</tr>
<tr>
</table>
<div style="width:790px;margin:0 auto;text-align:left">


<div style="padding-left:0px;">
<br><br>
<b>Disclaimer</b>
<br>
Enter your Text here
<br>
<br><br>


</div>
</div>
</body>
</HTML>
(Edited)
Photo of Christoph

Christoph

  • 1,842 Points 1k badge 2x thumb
Thanks for posting your method, it works well.
Photo of Ronald Dvorak

Ronald Dvorak, Embassador

  • 48,880 Points 20k badge 2x thumb
Yes, here a link to a YT video - about minute 2:20 Jason import a graphic for the portal page.

https://www.youtube.com/watch?v=tweJ6MeZaHs
Photo of Hartmut Sachse

Hartmut Sachse

  • 2,598 Points 2k badge 2x thumb
Uploading a image for the portal page is easy, but Phillip want to include it in the ticket page/voucher, if i understood right. Would be great if Extreme implement something in the gui to create a customized ticket page.
Photo of Hartmut Sachse

Hartmut Sachse

  • 2,598 Points 2k badge 2x thumb
This new post include a easy solution to solve the discussed problem:

https://community.extremenetworks.com/extreme/topics/include-company-logo-in-customized-ticke-page

Thanks to James for his answer.