mozdev.org

User Notes

Deprecated feature

The NOTES system is a deprecated feature at Mozdev.org. Because of this some documentation here may be outdated or inaccurate. If you would like to maintain documentation and allow comments on the content please consider setting up a drupal wiki.

  1. NOTES Intro
  2. NOTES Enabling
  3. NOTES Features
  4. NOTES Options
  5. NOTES Deletion
NOTES Intro

User Notes adds a forum-like feature to a page that allows people to post feedback and comments.

An example of a page with User Notes should be included in the templates for all new projects in the notes.html file.

[0] Submitted by: Example Poster Saturday December 28th 2002
Example Post

NOTES Enabling

To add User Notes to your page, you can either modify a copy of the notes.html file or you can simply add the following PHP code to one of your pages:

<?php require(NOTES2); ?>

As a spam prevention measure, all notes forms are disabled by default. If you wish to turn it on, apply the following to your local.conf file(s).

$local_conf_show_notes_form = ON;

Or alternatively this can be done on a per-notes basis:

<?php $local_conf_show_notes_form = ON; require(NOTES); ?>

NOTES Features

The notes do not allow the addition of any HTML to your page, however URIs, comment and bug links are automatically turned into links if they are entered into the form. With the current implementation, notes are listed chronologically with the oldest post at the top and the newest at the bottom. Two carriage returns are needed to start a new paragraph in any of the postings.

N.B. these notes are provided to comment on Mozilla Development, they are not an extra advertising medium, as such spam messages will be obliterated, and the originating IP address logged.

The notes do not allow the addition of any HTML to your page, however URIs, comment and bug links are automatically turned into links if they are entered into the form. With the current implementation, notes are listed chronologically with the oldest post at the top and the newest at the bottom. Two carriage returns are needed to start a new paragraph in any of the postings.

N.B. these notes are provided to comment on Mozilla Development, they are not an extra advertising medium, as such spam messages will be obliterated, and the originating IP address logged.

NOTES Options
set variables prior to the require();
NOTES Deletion
  1. Check out generic edit.html and copy it to a protected area in your project. For example:
    cvs -d :pserver:guest@mozdev.org:/cvs login
    <guest>
    cvs -d :pserver:guest@mozdev.org:/cvs co templates/www/protected/edit.html
    copy templates/www/protected/edit.html brian/www/protected/edit.html
  2. Check in your new file and open it in browser:
    http://brian.mozdev.org/protected/edit.html
    Without modifying edit.html, this will only edit notes at http://brian.mozdev.org/notes.html
  3. After being prompted for a password, you will see a screen something like this
  4. If you get an error, your copy of edit.html will need tweaking as explained here, otherwise proceed to the next step
    In edit.html, you will see the comment:
    // change from notes to whichever page it is your comments are on
    So for example, if your notes were on your project home page, the $file variable would be assigned like this:
    $file = "index.html.comment";
    Note that newer projects will have to use comment2.
  5. Remove the table rows for each comment you wish to delete and click 'update templete!'
  6. Go to your notes page to confirm that unwanted notes are gone
  7. Note that the old number sequence will remain, thus any new notes will start *after* the number of the deleted note(s)

Questions or comments not answered in the FAQ can be submitted from our feedback page.
Copyright © 2000-2018. All rights reserved. Terms of Use & Privacy Policy.