Html mods theme
From MLDonkey
You can override the static pages of the web interface without modifying the sources of mlnet.
Here's how to proceed:
- Create a directory html_themes/theme name/ in mldonkey's directory
- Create a file in this directory for each page you want to override. Use the "frame information" and "frame source" features of your favorite browser to get their name and default content. Remark: The main page is called frames.html
- Set the html_mods_theme setting to "theme name".
That's it!
Example, you'd like the web interface to show the transfer page when you first open it. To do this, you need to modify the main page to open the "/submit?q=bw_stats" URL in the middle frame and "/submit?q=vd" URL in the lower frame:
$MLDONKEY_DIR/html_themes/mytheme/frames.html:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>MLdonkey: Web Interface</title> <meta name="generator" content="MLDonkey" > <meta name="robots" content="noindex,nofollow" > <meta http-equiv="Content-Type" content="text/html;charset=utf-8" > <meta http-equiv="Expires" content="-1" > <meta http-equiv="Pragma" content="no-cache" > <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" > <link href="h.css" rel="stylesheet" type="text/css" > <script type="text/javascript" src="i.js" > </script></head> <frameset src="index" rows="46,25,*" frameborder="no"> <frame name="commands" noresize scrolling="no" noshade marginwidth=0 marginheight=0 border=0 framespacing=0 src="commands.html"> <frame name="fstatus" noresize scrolling="no" noshade marginwidth=0 marginheight=0 border=0 framespacing=0 src="/submit?q=bw_stats"> <frame name="output" noresize noshade marginwidth=0 marginheight=0 border=0 framespacing=0 src="/submit?q=vd"> </frameset> </html>
set html_mods_theme "mytheme"