Community discussions

MikroTik App

Search found 7 matches

by SubZero
Wed Aug 22, 2012 3:44 pm
Forum: Scripting
Topic: about showing the remaining time in the status page
Replies: 6
Views: 2836

Re: about showing the remaining time in the status page

I tested the script, and although it didn't produced the expected results, it did make a difference... maybe JavaScript wasn't enabled in your browser when you tested? Anyway, here's a simpler script that produces the correct results: <div id="timeLeft">$(session-time-left)</div> <script ...
by SubZero
Wed Aug 22, 2012 2:46 am
Forum: Scripting
Topic: about showing the remaining time in the status page
Replies: 6
Views: 2836

Re: about showing the remaining time in the status page

You'd need to parse this with JavaScript. I think it will be easiest with string.split, like: <div id="timeLeft">$(session-time-left)</div> <script type="text/javascript"> var timeLeft = "$(session-time-left)".split(/\d+/); for (var i =0, l = timeLeft.length; i<l; ++i)...
by SubZero
Tue Aug 21, 2012 5:58 pm
Forum: Scripting
Topic: about showing the remaining time in the status page
Replies: 6
Views: 2836

Re: about showing the remaining time in the status page

where are you people!!!???
by SubZero
Fri Aug 17, 2012 3:53 am
Forum: Scripting
Topic: send authorized username in php form
Replies: 3
Views: 1624

Re: send authorized username in php form

@SubZero
just use google document form man :)
Could you elaborate on that please?
i make a form with Google Docs (https://docs.google.com)
whit name fields, mob num, and more info..

and i add the form code in a hotspot page

Have you got the idea?
by SubZero
Wed Aug 15, 2012 2:54 am
Forum: Scripting
Topic: about showing the remaining time in the status page
Replies: 6
Views: 2836

about showing the remaining time in the status page

Hello everyone in sum .. :D I want to show the time remaining in the status page So i add the code: $(session-time-left) on it Everything is fine the time remaining shows like this: 5w3d9h4m So in fact this means that remaining 5 weeks and 3 days, 9 hours and 4 minutes All I want is to replace this:...
by SubZero
Wed Aug 15, 2012 1:46 am
Forum: Scripting
Topic: send authorized username in php form
Replies: 3
Views: 1624

Re: send authorized username in php form

just use google document form man :)

this is very easy 8)