aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: 20051112: Changes in webserver templates, broken links  (Read 1835 times)

vdb

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 215
20051112: Changes in webserver templates, broken links
« on: November 12, 2005, 03:02:13 PM »

Gentlemen, I see you have changed the default webserver template (again?). Now the PHP version looks almost exactly the same as the old one, I must say that last saturdays template looked nicer to me, but that is just my opinion.

Anyway, apart from esthetics, there are a few broken links in the template:
- index.php has a reference to "statistics.php", which should be "stat_tree.php"
- stat_graphs.php has a reference to "statistics.php", which also should be "stat_tree.php".
- The preferences page appears to be no longer able to change the graphs settings (update time, graph width etc.)

And something about the webserver in general:
- Why can't I select "KAD" as an option in the search page? Is it hard to code with the daemon/webserver?

Just FYI.

PS. Again I must state: Great work on everything!
Logged
A waste is a terrible thing to mind.

lfroen

  • Guest
Re: 20051112: Changes in webserver templates, broken links
« Reply #1 on: November 12, 2005, 03:45:44 PM »

Quote
- index.php has a reference to "statistics.php", which should be "stat_tree.php"
- stat_graphs.php has a reference to "statistics.php", which also should be "stat_tree.php".
This must be fixed by now. If not - please report which template and what page is broken.

Quote
- The preferences page appears to be no longer able to change the graphs settings (update time, graph width etc.)
Graph witdh is coded in html itself. Update time = page refresh time, unless i don't understand question.

Quote
- Why can't I select "KAD" as an option in the search page? Is it hard to code with the daemon/webserver?
That will be added.
It's not about "hard to code" - but about how match time I have to code it considering the fact that I have family and full-time day job.
Logged

vdb

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 215
Re: 20051112: Changes in webserver templates, broken links
« Reply #2 on: November 12, 2005, 05:27:36 PM »

Lfroen, I know you are doing this on your spare time, and I meant no disrespect in any way since you guys are doing a great job. I was wondering if I could do it myself, but I have only very limited PHP experience.

Anyway, the incorrect references to stat_tree.php that I found are in:
/usr/local/share/amule/webserver/default/index.php
/usr/local/share/amule/webserver/default/stat_graphs.php

As for the preferences, there were the options to set some parameters to influence the way the graphs timescale: Amount of pixels total width and amount of seconds shown per pixel. Together they define how must "past" the graphs show, the scale of the x-axis on the graph.
Logged
A waste is a terrible thing to mind.

lfroen

  • Guest
Re: 20051112: Changes in webserver templates, broken links
« Reply #3 on: November 12, 2005, 08:36:18 PM »

Quote
I was wondering if I could do it myself, but I have only very limited PHP experience.
Definitly you can. PHP interpreter in amuleweb is match simplier that full-blown php used in real web sites. Look at the code present in templates, or wait until I release manual.

Quote
Anyway, the incorrect references to stat_tree.php that I found are in:
/usr/local/share/amule/webserver/default/index.php
/usr/local/share/amule/webserver/default/stat_graphs.php
Thank you. Fixed.

Quote
there were the options to set some parameters to influence the way the graphs timescale
I don't see match point of this. You see stats in web same way as you would see if you were looking to amule "statistics" window.
Quote
amount of seconds shown per pixel
This is defined by sample rate in the core. You can of cause downsample this, but this is exactly same  as specifying "width" of image in html (browser will downsample for you)
Quote
Together they define how must "past" the graphs show, the scale of the x-axis on the graph
Same thing. Webserver (now) present all available history. I see no point truncating it.
Logged