bboard
table.
Currently the system supports:
create sequence bboard_upload_id_sequence; create table bboard_uploaded_files ( bboard_upload_id integer primary key, msg_id not null references bboard, file_type varchar(100), -- e.g., "photo" file_extension varchar(50), -- e.g., "jpg" -- can be useful when deciding whether to present all of something n_bytes integer, -- generally the filename will be "*msg_id*-*upload_id*.extension" -- where the extension was the originally provided (so -- that ns_guesstype will work) filename_stub varchar(200) not null, -- fields that only make sense if this is an image caption varchar(4000), -- will be null if the photo was small to begin with thumbnail_stub varchar(200), original_width integer, original_height integer );
Goal: To allow per-group bboards, and to use the new ACS permissions system to control user and administrative access to the bboards.
Each bboard topic is now associated with an administrative group, created using ad_administration_group_add, with "bboard" as the module and the topic_id as the sub-module. Any users who have been added to the corresponding administration group by ad_administration_group_user_add will have administrative access to the topic. They can access the bboard/admin-xxx pages, and moderate discussions on the topic.
Read-access := any | public | group any := topic may be viewed by any user of the system public := topic may only be view by a registered user of the system group := topic may only be viewed by members of the topic's group(s) Write-access := public | group public := any registered user may post a message or reply group := only members of the topic's group(s) may post or reply to messages
Don Baccus wrote procedures to add searching capabilities to bboards. They are www/doc/sql/rank_for_search.sql.
To use the searching feature, you'll need the PL/Tcl module installed on PostgreSQL (usually postgresql-tcl RPM or DEB packages). Then you'll need to issue the following command as user postgres:
createlang pltcl mydb
where "mydb" in the name of the database where your OpenACS datamodel is installed.
This feature is disabled by default. To enable it, change the following setting in your OpenACS configuration file (parameters/ad.tcl) to 1:
# do we use OpenACS search solution? # Change this to 1 to add searching in bboards. # You'll need PL/Tcl installed. See www/doc/bboard.html for more details. ns_param UseOpenACSSearch 0