Difference between revisions of "Pcmnet"

From ProgClub
Jump to: navigation, search
Line 49: Line 49:
 
Things to do, in rough order of priority:
 
Things to do, in rough order of priority:
  
* Fix UTC offset for daylight savings time
 
** The date is hardcoded as the UTC offset as +10, but Sydney is +10 or +11 depending on daylight savings or not. This should be fixed. (hint: subtract the UTC date from the local date).
 
* Refactor with render_member_list function
 
** Refactor "member list" so that both mobile net and member net use the same function to generate their list, passing in "public_html" or "public_mobile" to the function. The function should go in the file pcmnet/common/member_list.php and be included from pcmnet/member/home/index.php and pcmnet/mobile/home/index.php
 
* Relative URLs for member pages
 
** The generated URLs are fully qualified in the <a> tag, but it would be better if you didn't do that. Instead use a relative URL. So instead of http://www.progclub.mobi/~key720/ it would just be /~key720/ -- that will integrate better with our sites.
 
* Output the member list as an HTML table
 
 
* Show last modified date (of most recently modified file)
 
* Show last modified date (of most recently modified file)
 
** In the HTML table include a 'last updated' field. Get the date of the 'last update' by looking at every file in the public_html (or public_mobile) directory, including subdirectories, and checking its last modified time. The table headings will then be "Member" and "Last updated".
 
** In the HTML table include a 'last updated' field. Get the date of the 'last update' by looking at every file in the public_html (or public_mobile) directory, including subdirectories, and checking its last modified time. The table headings will then be "Member" and "Last updated".
* Client-side table sorting
 
** Allow the user to click on table headings to sort by either Member or Last Updated. Do the sorting in JavaScript. Talk on the ProgClub list about how to do this when you're up to it.
 
 
* Fix link to W3C validation service.
 
* Fix link to W3C validation service.
 
** Pass in the requested URL, not hardcoded. If there is no requested URL (e.g. run from command line) then pass in https://www.progclub.net/home/
 
** Pass in the requested URL, not hardcoded. If there is no requested URL (e.g. run from command line) then pass in https://www.progclub.net/home/
Line 68: Line 59:
  
 
Stuff that's done. Latest stuff on top.
 
Stuff that's done. Latest stuff on top.
 +
 +
* [[User:Key|JN]] 2011-12-01: Client-side table sorting
 +
* [[User:Key|JN]] 2011-12-01: Output the member list as an HTML table
 +
* [[User:Key|JN]] 2011-12-01: Relative URLs for member pages
 +
* [[User:Key|JN]] 2011-12-01: Refactor with render_member_list function
 +
* [[User:Key|JN]] 2011-12-01: Fix UTC offset for daylight savings time
 
* [[User:Key|JN]] 2011-11-30: Sort members alphabetically
 
* [[User:Key|JN]] 2011-11-30: Sort members alphabetically
 
* [[User:Key|JN]] 2011-11-30: Update date/time of render at bottom of page
 
* [[User:Key|JN]] 2011-11-30: Update date/time of render at bottom of page

Revision as of 17:26, 1 December 2011

Pcmnet is the ProgClub Member Net and Mobile Net software. That's the software that provides the Member Net and Mobile Net front pages and associated files (such as robots.txt). For other projects see Projects.

Project status

Released, but there's still stuff TODO.

Contributors

Members who have contributed to this project. Newest on top.

All contributors have agreed to the terms of the Contributor License Agreement. This excludes any upstream contributors who tend to have different administrative frameworks.

Copyright

Copyright 2011, Contributors. Licensed under the New BSD license.

Source code

The repository can be browsed online:

https://www.progclub.org/pcrepo/pcmnet/trunk

The code for pcmnet is publicly available from svn:

https://www.progclub.org/svnro/pcrepo/pcmnet/tags/latest

Or privately available for read-write access:

https://www.progclub.org/svn/pcrepo/pcmnet/trunk

Links

Debugging

I've configured the progclub.net web-server, honesty, so that you can watch the web-logs yourself. SSH to key720@honesty.progclub.net and then run the command:

$ tail -f /var/log/apache/error.log

TODO

Things to do, in rough order of priority:

  • Show last modified date (of most recently modified file)
    • In the HTML table include a 'last updated' field. Get the date of the 'last update' by looking at every file in the public_html (or public_mobile) directory, including subdirectories, and checking its last modified time. The table headings will then be "Member" and "Last updated".
  • Fix link to W3C validation service.

Done

Stuff that's done. Latest stuff on top.

  • JN 2011-12-01: Client-side table sorting
  • JN 2011-12-01: Output the member list as an HTML table
  • JN 2011-12-01: Relative URLs for member pages
  • JN 2011-12-01: Refactor with render_member_list function
  • JN 2011-12-01: Fix UTC offset for daylight savings time
  • JN 2011-11-30: Sort members alphabetically
  • JN 2011-11-30: Update date/time of render at bottom of page
  • JE 2011-08-22: renamed 'normal' to 'member' so as to be more consistent
  • JE 2011-08-22: created project page (project had previously been released)

Notes for implementers

If you are interested in incorporating ProgClub pcmnet into your project, here's what you need to know:

Well, there's not really very much to this project. If there's something you're interested in probably just copy and paste it from pcrepo.