What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Merlin - Custom UI Pages

rajav2

Occasional Visitor
I want to customise a few UI pages to add stuff like bandwidth limit & hide SSID for guest networks.
Got a few questions that hopefully someone can provide some input. Tried searching but no luck

1) In which directory does the source for the pages is located? I have downloaded the source.
/release/src/router/???

2) What language is the web pages developed in? PHP?
3) After I have changed a few pages how to compile or deploy them?
4) Alternatively can I just replace the files in the router filesystem?

Thanks in advance.
 
I want to customise a few UI pages to add stuff like bandwidth limit & hide SSID for guest networks.
Got a few questions that hopefully someone can provide some input. Tried searching but no luck

1) In which directory does the source for the pages is located? I have downloaded the source.
/release/src/router/???

2) What language is the web pages developed in? PHP?
3) After I have changed a few pages how to compile or deploy them?
4) Alternatively can I just replace the files in the router filesystem?

Thanks in advance.

Pages are in release/src/router/www . They're in HTML and Javascript, with dynamically processed tags that are parsed by the httpd daemon before sending them to the browser. That's how httpd can insert the various nvram values requested by the Javascript code, for instance.

You cannot just directly reused modified pages on the router, you have to recompile the firmware. If you really need to experiment with a live setup, you have to compile the firmware with AUTODICT=n in the build profile, otherwise the firmware ends up with pre-processed pages where the translated strings are replaced by special values that get parsed by the web server at load time.

What you are trying to do requires much more than just some HTML changes. You need to familiarize yourself with how the firmware handles nvram settings through the webui - not something that can be explained with a forum post.
 
Thanks for your input. Appreciate it.

It is possible to test it outside the router? A simulator perhaps?
I only have one router and it is always used.
 
Thanks for your input. Appreciate it.

It is possible to test it outside the router? A simulator perhaps?
I only have one router and it is always used.

No, because it needs the special httpd, which in turns need access to nvram.
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top