TX-UI Panel Subscription Page Templates Designed By TX Community.
you can install pre-designed user themes as your sub custom ui using below command in terminal:
bash <(curl -Ls https://raw.githubusercontent.com/AghayeCoder/tx-themehub/master/install.sh)
Variable | Description |
---|---|
result |
Returns the URI for Vmess/Vless. |
total |
Returns the formatted total traffic. |
expire |
End date as a timestamp. |
upload |
Returns the formatted uploaded traffic. |
download |
Returns the formatted downloaded traffic. |
totalByte |
Returns the total traffic in bytes. |
uploadByte |
Returns the total uploaded traffic in bytes. |
downloadByte |
Returns the total downloaded traffic in bytes. |
sId |
Returns the subscription user ID. |
subUrl |
Gets the full subscription URL. |
example
<div>sub url is : {{ .subUrl }}</div>
- Design an HTML page and name it sub.html.
- Move the file to the following directory:
/etc/x-ui/html/
- Go to the panel settings, navigate to the Subscription section, and enable the Custom Template option.
- Save the changes and restart the service.
If everything is done correctly, your custom template should now be displayed instead of the default subscription page.