Html mods theme

From MLDonkey
Jump to: navigation, search

You can override the static pages of the web interface without modifying the sources of mlnet.

Here's how to proceed:

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"
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox