Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 12
- Log:
Configured for temporary /rails/rforum location on Alpha. Updated
several layouts to suit RISC OS Open Limited site style in addition
to producing a theme stylesheet. View changes included a few fixes
to invalid HTML 'class' attribute values (they contained spaces).
Some examples may remain. Note temporary hacks to force in
"/rails/rforum" prefix to some URLs where they are either hard coded
or the user helpers but for currently unknown reasons the helpers are
giving an incorrect result.Extended menu item renderer to allow a separator string to be
supplied; needed to allow horizontal navigation regions as well as
sidebar-based vertical navigation regions ("|" vs "</li><li>").Fix in models.rb to allow attempts to unsubscribe from a topic from
which the user has already subscribed - e.g. clicking on the relevant
link in a notification e-mail message twice. Previously, an application
error would be raised.Extended permissions system to include whether or not a user can post
(can_post?()) or reply (can_reply?()) to a message. Normal and admin
users always can. Guests follow new options token "guests_cannot_post"
(note that this is not the same as "anon_posting_allowed" which asks
that guests supply at least their name rather than be anonymous - of
course that's pretty useless as a guest can put in any name they want,
real or otherwise). The navbar and post_menu controllers know about
the new options and won't generate links for prohibited actions. Topic
controller enforces permissions in case someone builds links by hand.Changed user_controller.rb to add flash[:attention] tokens when a user
logs in or out. Fixed broken hard-coded URL generation to use url_for
helper method instead. Used the flash[:attention] mechanism to produce
the notification about an e-mail message sent for a forgotten password
rather than writing just that text into a blank page - redirects back
to the forum controller, list action.This revision is believed to be the functional equivalent of revision
906 of RForum merged with changes made to an unknown prior revision of
RForum along with acts_as_authenticated modification plus the above
set of fixes and documentation. At the time of writing this specific
combination has not been tested live on the RISC OS Open Limited
prototype site.
- Author:
- adh
- Date:
- Sat Jul 22 21:15:03 +0100 2006
- Size:
- 3572 Bytes
1 | # Site-specific parameters |
2 | module RForum |
3 | |
4 | CONFIG = { |
5 | |
6 | # Name of the forum site (e.g., 'Mikrocontoroller Forum') |
7 | :site_name => 'RISC OS Open Forum', |
8 | |
9 | # All email generated by the forum will have this sender address |
10 | :site_email => 'rforum@pond.org.uk', |
11 | |
12 | # Hostname of this forum (used for messageids) |
13 | :hostname => 'pond.org.uk', |
14 | |
15 | # See /public/skins/ for available skins. |
16 | :skin => 'risc_os_open', |
17 | |
18 | # true: completely anonymous (no guest name) posting is |
19 | # allowed (not recommended) |
20 | :anon_posting_allowed => false, |
21 | |
22 | # true: only registered users can do anything other than read posts |
23 | :guests_cannot_post => true, |
24 | |
25 | # See 'lang' directory for available languages |
26 | :default_language => 'en', |
27 | |
28 | # Character sets to use for various purposes. You have to use the same |
29 | # value for every setting at the moment. There should be no reson to use |
30 | # anything else than utf-8, though. |
31 | :nntp_charset => 'utf-8', |
32 | :web_charset => 'utf-8', |
33 | :db_charset => 'utf-8', |
34 | :mail_charset => 'utf-8', |
35 | |
36 | # Configure the forum search function. |
37 | # Possible values: |
38 | # - SearchFerret (recommended, needs Ferret extension) |
39 | # - SearchOdeum (no forum-limited search, needs RubyOdeum extension) |
40 | # - SearchLike (slow, no additional extensions needed) |
41 | :search_handler => :SearchLike, |
42 | |
43 | # Disable indexing (does not apply to SearchLike). |
44 | # This is useful if you want to use a seperate process for the index update. |
45 | :indexing_disabled => false, |
46 | :search_results_per_page => 20, |
47 | :topics_per_page => 20, |
48 | |
49 | # Who should be allowed to see the email address of a user? |
50 | # Possible values: |
51 | # :noone (don't show email address) |
52 | # :users (show email address to other registered users) |
53 | # :everyone (show email address to everyone) |
54 | :show_user_email_to => :users, |
55 | |
56 | # Should the forum send posts to the mailing list |
57 | # (only if a forum has a list_address) |
58 | :deliver_mail => true, |
59 | :bounce_address => 'ahodgkin@rowing.org.uk', |
60 | |
61 | :accept_mail_from_guests => true, |
62 | |
63 | # Path relative to root directory. |
64 | :attachment_path => '/attachments', |
65 | |
66 | :max_attachment_size => 100.kilobytes, |
67 | |
68 | # Formatting of posts with quoting. |
69 | # :simple is fixed with and with colored quoting levels |
70 | # :new looks like messages in Mozilla Thunderbird |
71 | :post_formatting => :simple, |
72 | |
73 | # When user forgets a password, RForum generates a security token that is |
74 | # added to the URL and sent to the user by email. Such token allows the user to perform certain |
75 | # security-sensitive activities without providing a password. This token will expire |
76 | # after the number of hours specified by the parameter below. |
77 | :security_token_life_hours => 24, |
78 | :use_sites => false |
79 | } |
80 | |
81 | # Mailer configuration |
82 | if RAILS_ENV != 'test' |
83 | ActionMailer::Base.delivery_method = :sendmail |
84 | ActionMailer::Base.raise_delivery_errors = false |
85 | end |
86 | |
87 | # If you want tp configure RForum to work with SMTP server, |
88 | # write the following in the site.rb: |
89 | # require 'default_site' |
90 | # ActionMailer::Base.delivery_method = :smtp |
91 | # ActionMailer::Base.server_settings = { |
92 | # :address => 'nautilus.spidernet.net', # replace with your SMTP server |
93 | # :port => 25, # replace with your SMTP server's port |
94 | # :domain => 'nautilus.spidernet.net', # replace with your HELO domain |
95 | # :user_name => nil, # set if your SMTP server requires authentication |
96 | # :password => nil, # set if your SMTP server requires authentication |
97 | # :authentication => nil # set to true if your SMTP server requires authentication |
98 | # } |
99 | end |