Pcmnet

From ProgClub
Revision as of 17:19, 30 November 2011 by John (talk | contribs)
Jump to: navigation, search

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/

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

TODO

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)
    • 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.

Done

Stuff that's done. Latest stuff on top.

  • JN 2011-11-30: Sort members alphabetically
  • JN 2011-11-30: Update data/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.