My_Page

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Goto page Previous  1, 2, 3 ... 5, 6, 7 ... 24, 25, 26  Next
Author Message
Luniz2k1
DD-WRT Guru


Joined: 04 Oct 2007
Posts: 1258
Location: Ohio USA

PostPosted: Sun Dec 20, 2009 20:12    Post subject: Reply with quote
DHC_DarkShadow wrote:
I see on page 4 "routing tables" and "Domain name server" in your shots, the code isn't in the pages. What was the code you used?

Code:
echo "<fieldset>"                                         
echo "<legend>Routing Tables</legend>"           
echo "<pre>$(route)</pre>"                     
echo "</fieldset><br />" 

echo "<fieldset>"                                         
echo "<legend>Domain Name Server</legend>"           
echo "<pre>$(cat /etc/resolv.conf)</pre>"                     
echo "</fieldset><br />" 

_________________
(05/02/17) std - 31924
Linksys WRT400N
Buffalo WHR-G300N

Got OpenDNS?
Sponsor
gi-minni
DD-WRT User


Joined: 06 Dec 2009
Posts: 128
Location: GMT+1

PostPosted: Sun Dec 20, 2009 20:24    Post subject: Reply with quote
DHC_DarkShadow wrote:
I see on page 4 "routing tables" and "Domain name server" in your shots, the code isn't in the pages. What was the code you used?


Ohh damn, download the attached files again, i uploaded a newer version.

_________________
Regards,
gi-minni

Router: ASUS RT-N16@532 MHz (active cooling)
Firmware: DD-WRT v24-sp2 mega (02/23/10)
Build: 13972M NEWD-2 K2.6 BS
DD-WRT MyPage: Download | Forum | Wiki | FAQ | Screenshots
DHC_DarkShadow
DD-WRT Guru


Joined: 22 Jun 2008
Posts: 2440
Location: Am now Dark_Shadow

PostPosted: Sun Dec 20, 2009 20:28    Post subject: Reply with quote
Thx, anyone know the code for displaying the wan_ipaddr?
_________________
The New Me
fggs
DD-WRT Guru


Joined: 28 Jan 2008
Posts: 1741

PostPosted: Sun Dec 20, 2009 20:41    Post subject: Reply with quote
nvram get wan_ipaddr?
DHC_DarkShadow
DD-WRT Guru


Joined: 22 Jun 2008
Posts: 2440
Location: Am now Dark_Shadow

PostPosted: Sun Dec 20, 2009 20:46    Post subject: Reply with quote
fggs wrote:
nvram get wan_ipaddr?
yup, I must've had a typo
_________________
The New Me
gi-minni
DD-WRT User


Joined: 06 Dec 2009
Posts: 128
Location: GMT+1

PostPosted: Sun Dec 20, 2009 22:49    Post subject: Reply with quote
New update - v0.5-20091221-00021
- Pages are displayed in standard compliance mode (no quirks mode)
- Page suffix changed to asp
- Wireless info depends now on interface read from nvram variable
- help information provided with link to index help file
- flash info support
- wrapped lines can be identified with the raquo simbol
- typos

See attachment at page 5

_________________
Regards,
gi-minni

Router: ASUS RT-N16@532 MHz (active cooling)
Firmware: DD-WRT v24-sp2 mega (02/23/10)
Build: 13972M NEWD-2 K2.6 BS
DD-WRT MyPage: Download | Forum | Wiki | FAQ | Screenshots
gi-minni
DD-WRT User


Joined: 06 Dec 2009
Posts: 128
Location: GMT+1

PostPosted: Mon Dec 21, 2009 22:25    Post subject: Reply with quote
New Version (v0.6-20091221-00033) of MyPage uploaded. Please goto page 5 to download the files.

Any suggestions or improvements are welcome.

_________________
Regards,
gi-minni

Router: ASUS RT-N16@532 MHz (active cooling)
Firmware: DD-WRT v24-sp2 mega (02/23/10)
Build: 13972M NEWD-2 K2.6 BS
DD-WRT MyPage: Download | Forum | Wiki | FAQ | Screenshots
gi-minni
DD-WRT User


Joined: 06 Dec 2009
Posts: 128
Location: GMT+1

PostPosted: Tue Dec 22, 2009 14:10    Post subject: Reply with quote
New Version (v0.7-20091222-00037) of MyPage uploaded.

Please goto page 5 to download the files and read MyPage.log for version history.

_________________
Regards,
gi-minni

Router: ASUS RT-N16@532 MHz (active cooling)
Firmware: DD-WRT v24-sp2 mega (02/23/10)
Build: 13972M NEWD-2 K2.6 BS
DD-WRT MyPage: Download | Forum | Wiki | FAQ | Screenshots
DHC_DarkShadow
DD-WRT Guru


Joined: 22 Jun 2008
Posts: 2440
Location: Am now Dark_Shadow

PostPosted: Tue Dec 22, 2009 16:49    Post subject: Reply with quote
gi-minni wrote:
New Version (v0.7-20091222-00037) of MyPage uploaded.

Please goto page 5 to download the files and read MyPage.log for version history.


I Love it! It's great!

Could the Script tabs be brought down on a 3rd level?
Like under "Router-WAN-LAN-Wireless-".

_________________
The New Me
gi-minni
DD-WRT User


Joined: 06 Dec 2009
Posts: 128
Location: GMT+1

PostPosted: Tue Dec 22, 2009 20:26    Post subject: Reply with quote
DHC_DarkShadow wrote:

Could the Script tabs be brought down on a 3rd level?
Like under "Router-WAN-LAN-Wireless-".


AFAIK there are only two menu levels, every tab is hardcoded. I need eko's help to do this kind of things.

Perhaps would it be better to have a Tab right of Status and only if mypage_scripts is not null the Tab is visible.

I wait until eko state his opinion on that.

_________________
Regards,
gi-minni

Router: ASUS RT-N16@532 MHz (active cooling)
Firmware: DD-WRT v24-sp2 mega (02/23/10)
Build: 13972M NEWD-2 K2.6 BS
DD-WRT MyPage: Download | Forum | Wiki | FAQ | Screenshots
Eko
DD-WRT Developer/Maintainer


Joined: 07 Jun 2006
Posts: 5771

PostPosted: Wed Dec 23, 2009 5:07    Post subject: Reply with quote
Nice!!!

2 things:

You don't need to always default to "elegant" style. You can change that in header, replace "elegant" with nvram get router_style

Files in /tmp/www can be directly accessed as asp (no need to echo) like e.g http://routerip/user/File.asp and can use all function that are build in, like <% nvram_get("something"); %> and many many more. I'm not at all saying that store all files there, but you maybe can link small parts of html code. Maybe I'll work on small example later today.
Drats
DD-WRT User


Joined: 01 Feb 2007
Posts: 138
Location: Wherever the boat takes me.

PostPosted: Wed Dec 23, 2009 5:57    Post subject: Reply with quote
So far everything I have seen and done with "my_page" is re-active. Basically it gets and displays information. Eko, Could you maybe provide some hints as to how to make it more active. Like saving and changing variables? The only submit footer I have seen is refresh, what about save, apply, cancel. Or is that too dangerous?

Thanks for the examples given so far, they are very informative.

_________________
Ray

Asus RT-N66U B1, AP Router, Merlin Version 3.0.0.4.376.49_4, bl_version=1.0.1.3
Asus WL-500W, DD-WRT v24-sp2 (05/27/14) mini-usb-ftp - build 24160
Buffalo WHR-G54S, Repeater:
_____ broadcom, DD-WRT v24-sp2 (03/29/14) mini - build 23838, AutoAP (2013-10-01)
Buffalo WHR-HP-G54, Repeater:
_____ broadcom, DD-WRT v24-sp2 (03/29/14) mini - build 23838, AutoAP (2013-10-01)
LinkSys WRT54G-V2, Repeater:
_____ broadcom, DD-WRT v24-sp2 (01/17/15) mini - build 25948 , AutoAP (2013-10-01)
autobot
DD-WRT Guru


Joined: 07 May 2009
Posts: 1596

PostPosted: Wed Dec 23, 2009 6:31    Post subject: Reply with quote
Drats wrote:
So far everything I have seen and done with "my_page" is re-active. Basically it gets and displays information. Eko, Could you maybe provide some hints as to how to make it more active. Like saving and changing variables? The only submit footer I have seen is refresh, what about save, apply, cancel. Or is that too dangerous?

Thanks for the examples given so far, they are very informative.


I want to see this too.

_________________
Eko Builds

BrainSlayer Builds

DD-WRT Changelog RSS Feed
gi-minni
DD-WRT User


Joined: 06 Dec 2009
Posts: 128
Location: GMT+1

PostPosted: Wed Dec 23, 2009 8:25    Post subject: Reply with quote
Eko wrote:

You don't need to always default to "elegant" style. You can change that in header, replace "elegant" with nvram get router_style

Thx Eko for this tip! My next version (v0.9) has this feature built in. Further I will also use the language nvram var, because I started with national language support.

Eko wrote:

Files in /tmp/www can be directly accessed as asp (no need to echo) like e.g http://routerip/user/File.asp and can use all function that are build in, like <% nvram_get("something"); %> and many many more. I'm not at all saying that store all files there, but you maybe can link small parts of html code. Maybe I'll work on small example later today.

I am looking forward to see some examples!

I have a couple of questions to address to you:
1)Is there a chance to get an own tab beside Status?
2)Can we have three level of menus?
3)How can I hook own text block respecting language support?
4)The name of MyPage.asp is hardcoded, can mypage_scripts reflect the right filename. For example if mypage_scripts is empty no tab is shown, otherwise can we have another scheme? E.g.
mypage_main_scripts for 1st level menu
mypage_main_tabs for 1st level tab names
mypage_sub_scripts for 2nd level menu
mypage_sub_tabs for 2nd level tab names

and lastly can we add 3rd level of menus?
mypage_sub_scripts for 2nd level menu
mypage_sub_tabs for 2nd level tab names
5)How can I add my own javascripts? Is this in http://routerip/user/my-own.js
6) Look at my new header (download the screenshots), I added the hostname, date and router name. Can you add this to your original webif?

_________________
Regards,
gi-minni

Router: ASUS RT-N16@532 MHz (active cooling)
Firmware: DD-WRT v24-sp2 mega (02/23/10)
Build: 13972M NEWD-2 K2.6 BS
DD-WRT MyPage: Download | Forum | Wiki | FAQ | Screenshots
gi-minni
DD-WRT User


Joined: 06 Dec 2009
Posts: 128
Location: GMT+1

PostPosted: Wed Dec 23, 2009 8:30    Post subject: Reply with quote
New version v0.8-20091223-00047 is out!

The Highlight of this version is language support for the refresh button and autorefresh of uptime and wan ip like the original pages do.

Download the file from page 5 of this thread and look at MyPage.log for version history.

_________________
Regards,
gi-minni

Router: ASUS RT-N16@532 MHz (active cooling)
Firmware: DD-WRT v24-sp2 mega (02/23/10)
Build: 13972M NEWD-2 K2.6 BS
DD-WRT MyPage: Download | Forum | Wiki | FAQ | Screenshots
Goto page Previous  1, 2, 3 ... 5, 6, 7 ... 24, 25, 26  Next Display posts from previous:    Page 6 of 26
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum