how to show prepaid time value in status page v5.4

i’m using Mikrotik v5.4 with user manager
How can i customize my hotspot status page to show the prepaid time , total time lift or till time during customer login like welcome username?
i found Voucher Template Customization Code
trid it but it didn’t work
“%u_username%”
“%u_password%”
“%u_limitUptime%”
“%u_usedUptime%”
“%u_usedDownload%”
“%u_usedUpload%”
%u_timeLeft%


u_sername - Username
u_password - Password
u_firstName - First name
u_lastName - Last name
u_phone - Phone
u_location - Location
u_comment - Comment
u_email - Email
u_ipAddr - IP address
u_callerId - Caller ID
u_shared_users - Shared users
u_usedUpload - Upload Used
u_usedDownload - Download Used
u_usedUptime - Uptime Used
u_lastIpAddr - Last used IP
u_lastMAC - Last used MAC
u_tillTime - Till time
u_timeLeft - Total time left
u_actualProfileName - Actual profile
u_actualProfileStart - Start time
u_actualProfileEnd - End time
u_actualProfileLeft - Time left
u_limitDownload - Download limit
u_limitUpload - Upload limit
u_limitDownload - Transfer limit
u_limitUptime - Uptime Limit
u_actualRateLim - Rate limit
u_moneyPaid - Money paid
u_moneyUsed - Money used
u_moneyLeft - Money left
u_wirelessPsk - Preshared key
u_wirelessEncKey - Encryption key
u_wirelessEncAlgo - Encryption algorithm

any help plz

you have to edit the html code to include those code you want.

a copy of my template goes here! edit to suite yuor need.

"

JP Wireless Access!
Time: %u_limit_uptime%
Validity %u_prep_time%
Price N: %u_tot_price%
Username: %u_username%
Password: %u_password%
"

thanx for your reply JP_Wireless

I tried your templates
and templates from this page
http://wiki.mikrotik.com/wiki/User_Manager/Character_constants
but didn’t work :frowning:

this is my status html page and what I changed in
page language is Arabic

:: تفاصيل الإتصال الخاص بك :: $(if refresh-timeout) $(endif)

$(if login-by == 'trial')
مرحباً بك !

$(elif login-by != ‘mac’)

مرحباً يا > %u_fname% > !


$(endif)

$(if session-time-left) $(elif > %u_prep_time%> ) $(elif session-timeout) $(else) $(endif)

$(if blocked == ‘yes’)

$(elif refresh-timeout) $(endif)
رقم الـ IP:$(ip)
بيانات الإرسال / الإستقبال:$(bytes-in-nice) / $(bytes-out-nice)
متصل لمدة / متبقي:$(uptime) / $(session-time-left)
متصل لمدة / متبقي:$(uptime) / > %u_prep_time%>
متصل لمدة / متبقي:$(uptime) / $(session-timeout)
متصل لمدة:$(uptime)
الحالة:
الرسائل المستلمة
تحديث تلقائي للصفحة كل:$(refresh-timeout)
$(if login-by-mac != 'yes')
$(endif)

You mean you are using 5.4 test package?

If yes, I am having the same problem but I am working on it, hope to get good result.

try this one, there is an error in line 42, but that is not too important to me now, although still checking! I only swab the position!

mikrotik hotspot > status $(if refresh-timeout) $(endif)
$(if login-by == 'trial')
Welcome trial user!

$(elif login-by != 'mac')
Welcome $(username)!

$(endif) $(if session-time-left) $(else) $(endif) $(if blocked == 'yes') $(elif refresh-timeout) $(endif)
IP address:$(ip)
bytes up/down:$(bytes-in-nice) / $(bytes-out-nice)
connected: $(uptime)
connected / left: $(uptime) / $(session-time-left)
status:
advertisement required
status refresh:$(refresh-timeout)
$(if login-by-mac != 'yes')
$(endif)

Sorry about my english.
I wait for more answer for this post a long time. Your problem is same as me. I show status page for my user. I don’t want link to user page or another. Because my user want Comfortable for them. They want every thing is automatic. I think this problem should to be solve. I find the Mikrotik staff for solve this problem. And now a lot of my user will don’t use my hotspot.They say “I don’t know my time left.”

I wait for answer.
Thank

In manual is wrong description
%u_limitUpload% - Upload limit (in bytes); is realy (in time)

USE %u_limitUpload%

sorry for my englisch

read this manual it will help you
http://wiki.mikrotik.com/wiki/Manual:Customizing_Hotspot