matthijs/projects/xerxes.git
13 years agophpbb: Make the username case-insensitve on login again. production
Matthijs Kooijman [Mon, 14 Feb 2011 15:28:50 +0000 (16:28 +0100)]
phpbb: Make the username case-insensitve on login again.

The username field in the phpbb3 database is case sensitive (i.e., it
has utf_bin collation), whereas in phpbb2 it was case insensitive. This
commit changes the SQL query to make logins case insensitive again,
since a lot of people used a capital letter for registering their
username, but forgot that later on...

13 years agoUpdate authentication to use PhpBB version 3.
Matthijs Kooijman [Sun, 13 Feb 2011 16:54:37 +0000 (17:54 +0100)]
Update authentication to use PhpBB version 3.

This adds an external hash library, to match the new password hashing
used by phpbb3.

13 years agoAdd some extra spacing the the influence_changed email.
Matthijs Kooijman [Wed, 24 Nov 2010 07:59:27 +0000 (08:59 +0100)]
Add some extra spacing the the influence_changed email.

14 years agoFix accidental newline introduced two commits ago.
Matthijs Kooijman [Sat, 13 Feb 2010 12:17:06 +0000 (13:17 +0100)]
Fix accidental newline introduced two commits ago.

14 years agoAllow linebreaks in influence description and result.
Matthijs Kooijman [Sat, 13 Feb 2010 12:08:46 +0000 (13:08 +0100)]
Allow linebreaks in influence description and result.

14 years agoUpdate a fuzzy translation string.
Matthijs Kooijman [Sat, 13 Feb 2010 12:04:58 +0000 (13:04 +0100)]
Update a fuzzy translation string.

14 years agoAdd a Influences.type field (Influence / Notification).
Matthijs Kooijman [Sat, 13 Feb 2010 12:02:44 +0000 (13:02 +0100)]
Add a Influences.type field (Influence / Notification).

14 years agoPut the character filter at the end.
Matthijs Kooijman [Sat, 13 Feb 2010 11:41:36 +0000 (12:41 +0100)]
Put the character filter at the end.

14 years agoAdd content to the howto page.
Matthijs Kooijman [Wed, 13 Jan 2010 15:19:29 +0000 (16:19 +0100)]
Add content to the howto page.

The content is not translated for now, so Dutch only.

14 years agoAdd and link to /howto static page (no content yet).
Matthijs Kooijman [Wed, 13 Jan 2010 10:43:19 +0000 (11:43 +0100)]
Add and link to /howto static page (no content yet).

14 years agoRemove SQL password from import.py.
Matthijs Kooijman [Mon, 15 Jun 2009 09:53:40 +0000 (11:53 +0200)]
Remove SQL password from import.py.

15 years agoAdd code to support disabling new influences.
Matthijs Kooijman [Fri, 27 Mar 2009 09:56:41 +0000 (10:56 +0100)]
Add code to support disabling new influences.

15 years agoRemove \r's.
Matthijs Kooijman [Fri, 27 Mar 2009 09:55:29 +0000 (10:55 +0100)]
Remove \r's.

15 years agoOnly notify a player of finished influence changes.
Matthijs Kooijman [Mon, 16 Feb 2009 19:23:06 +0000 (20:23 +0100)]
Only notify a player of finished influence changes.

SLs are notified of any change, but players only receive email notification of
influences that are marked as done, to reduce noise.

15 years agoShow influence result on the influence detail.
Matthijs Kooijman [Mon, 16 Feb 2009 18:53:05 +0000 (19:53 +0100)]
Show influence result on the influence detail.

15 years agoDon't load the uri template tag library.
Matthijs Kooijman [Thu, 5 Feb 2009 09:48:13 +0000 (10:48 +0100)]
Don't load the uri template tag library.

The uri library doesn't exist and is not used, this is a remnant of a
another implementation approach.

15 years agoAdd the influence url to notification emails.
Matthijs Kooijman [Wed, 4 Feb 2009 10:15:36 +0000 (11:15 +0100)]
Add the influence url to notification emails.

15 years agoMake the is_public field unchecked by default.
Matthijs Kooijman [Wed, 4 Feb 2009 10:07:40 +0000 (11:07 +0100)]
Make the is_public field unchecked by default.

15 years agoReconnect the influence_saved notify handler.
Matthijs Kooijman [Sat, 31 Jan 2009 13:25:54 +0000 (14:25 +0100)]
Reconnect the influence_saved notify handler.

The connect statement went missing in
419cb678949006d2c5bd6bf5a3176c67adf4cef7.

15 years agoAllow Influence.todo to be blank.
Matthijs Kooijman [Fri, 16 Jan 2009 21:26:11 +0000 (22:26 +0100)]
Allow Influence.todo to be blank.

15 years agoDefine __unicode__ on models instead of __str__.
Matthijs Kooijman [Thu, 27 Nov 2008 22:09:05 +0000 (23:09 +0100)]
Define __unicode__ on models instead of __str__.

When the result of __str__ is a unicode object containing non-ascii characters,
str(instance) barfs with an encoding error.

15 years agoIncrease max comment length to 3000 characters.
Matthijs Kooijman [Mon, 17 Nov 2008 16:18:10 +0000 (17:18 +0100)]
Increase max comment length to 3000 characters.

15 years agoShow form errors when posting comments.
Matthijs Kooijman [Mon, 17 Nov 2008 16:15:49 +0000 (17:15 +0100)]
Show form errors when posting comments.

15 years agoUse local CSS when in debug mode.
Matthijs Kooijman [Sun, 16 Nov 2008 17:57:21 +0000 (18:57 +0100)]
Use local CSS when in debug mode.

15 years agoAdd update information to index page.
Matthijs Kooijman [Sun, 16 Nov 2008 17:13:39 +0000 (18:13 +0100)]
Add update information to index page.

15 years agoAdd todo filter to Influence admin.
Matthijs Kooijman [Sun, 16 Nov 2008 17:13:24 +0000 (18:13 +0100)]
Add todo filter to Influence admin.

15 years agoDon't notify the player of private comments.
Matthijs Kooijman [Sun, 16 Nov 2008 16:48:40 +0000 (17:48 +0100)]
Don't notify the player of private comments.

15 years agoImprove CSS of comments in the admin.
Matthijs Kooijman [Fri, 14 Nov 2008 13:32:15 +0000 (14:32 +0100)]
Improve CSS of comments in the admin.

15 years agoAllow posting new coments in the admin.
Matthijs Kooijman [Fri, 14 Nov 2008 13:29:11 +0000 (14:29 +0100)]
Allow posting new coments in the admin.

This sets comment_form in the context so new comments can be posted in
addition to replies.

15 years agoImprove CSSability of comments.
Matthijs Kooijman [Fri, 14 Nov 2008 13:21:00 +0000 (14:21 +0100)]
Improve CSSability of comments.

15 years agoGive the comments admin page custom css.
Matthijs Kooijman [Fri, 14 Nov 2008 13:20:06 +0000 (14:20 +0100)]
Give the comments admin page custom css.

15 years agoGive the comments admin page a title.
Matthijs Kooijman [Fri, 14 Nov 2008 13:19:46 +0000 (14:19 +0100)]
Give the comments admin page a title.

15 years agoUpdate translations.
Matthijs Kooijman [Fri, 14 Nov 2008 12:46:47 +0000 (13:46 +0100)]
Update translations.

15 years agoAdd Influence.todo field.
Matthijs Kooijman [Fri, 14 Nov 2008 12:34:16 +0000 (13:34 +0100)]
Add Influence.todo field.

SQL: ALTER TABLE `influences_influence` ADD `todo` LONGTEXT NOT NULL AFTER `description` ;

15 years agoMake Influence.status a CharField.
Matthijs Kooijman [Fri, 14 Nov 2008 12:18:21 +0000 (13:18 +0100)]
Make Influence.status a CharField.

This used to be a TextField, but this forces the widget in a ModelField
to a TextArea overriding the default Select widget.

15 years agoMake the preview consistent with normal comments.
Matthijs Kooijman [Tue, 4 Nov 2008 11:01:29 +0000 (12:01 +0100)]
Make the preview consistent with normal comments.

This changes the HTML such that it looks more similar and so that the
same CSS will apply.

15 years agoAdd an explicit break before the comment textarea.
Matthijs Kooijman [Tue, 4 Nov 2008 11:00:46 +0000 (12:00 +0100)]
Add an explicit break before the comment textarea.

15 years agoAdd comment-related admin templates.
Matthijs Kooijman [Tue, 4 Nov 2008 10:55:33 +0000 (11:55 +0100)]
Add comment-related admin templates.

The change_form template adds a "comment" link to the influence admin
page, the comments template provides the content for that page.

15 years agoAdd a "new comment" email template.
Matthijs Kooijman [Tue, 4 Nov 2008 10:54:28 +0000 (11:54 +0100)]
Add a "new comment" email template.

15 years agoUse the rewrap function for wrapping comments.
Matthijs Kooijman [Tue, 4 Nov 2008 10:54:05 +0000 (11:54 +0100)]
Use the rewrap function for wrapping comments.

15 years agoAdd rewrap function for wrapping comments.
Matthijs Kooijman [Tue, 4 Nov 2008 10:53:45 +0000 (11:53 +0100)]
Add rewrap function for wrapping comments.

15 years agoLeft-align comments.
Matthijs Kooijman [Tue, 4 Nov 2008 10:53:19 +0000 (11:53 +0100)]
Left-align comments.

15 years agoReplace CSS with a version with newlines.
Matthijs Kooijman [Tue, 4 Nov 2008 10:48:16 +0000 (11:48 +0100)]
Replace CSS with a version with newlines.

15 years agoRestyle comment display and forms.
Matthijs Kooijman [Fri, 31 Oct 2008 20:27:35 +0000 (21:27 +0100)]
Restyle comment display and forms.

15 years agoMake the comment textareas 80 columns wide.
Matthijs Kooijman [Fri, 31 Oct 2008 20:24:24 +0000 (21:24 +0100)]
Make the comment textareas 80 columns wide.

15 years agoSend a notification on comment creation.
Matthijs Kooijman [Fri, 31 Oct 2008 20:23:04 +0000 (21:23 +0100)]
Send a notification on comment creation.

15 years agoApply wordwrapping to quoted comments.
Matthijs Kooijman [Fri, 31 Oct 2008 20:21:01 +0000 (21:21 +0100)]
Apply wordwrapping to quoted comments.

15 years agoDisallow staff to set the markup of new comments.
Matthijs Kooijman [Fri, 31 Oct 2008 19:51:54 +0000 (20:51 +0100)]
Disallow staff to set the markup of new comments.

15 years agoAllow staff to view anything on the front site.
Matthijs Kooijman [Fri, 31 Oct 2008 18:53:43 +0000 (19:53 +0100)]
Allow staff to view anything on the front site.

In particular, influence_detail and character_detail no longer deny
access to staff members.

15 years agoRemove SITE_ID from settings.
Matthijs Kooijman [Fri, 31 Oct 2008 18:52:03 +0000 (19:52 +0100)]
Remove SITE_ID from settings.

We're not using the sites app, so we don't need this.

15 years agoGive Influence and Character an absolute_url.
Matthijs Kooijman [Fri, 31 Oct 2008 18:51:27 +0000 (19:51 +0100)]
Give Influence and Character an absolute_url.

This enabled the "view in site" button in the admin.

15 years agoDon't pass base to the comment preview template.
Matthijs Kooijman [Fri, 31 Oct 2008 16:51:49 +0000 (17:51 +0100)]
Don't pass base to the comment preview template.

This parameter was added to support embedding previews in the admin as
well, but we'll just keep previews in the frontend for now.

15 years agoAdd hidden "next" fields to the comment forms.
Matthijs Kooijman [Fri, 31 Oct 2008 16:48:48 +0000 (17:48 +0100)]
Add hidden "next" fields to the comment forms.

Previously, commenting would only work because the threadedcomments
application falls back to using HTTP referrer information, which is not
reliable.

15 years agoEnable the preview buttons on comment forms.
Matthijs Kooijman [Fri, 31 Oct 2008 16:48:27 +0000 (17:48 +0100)]
Enable the preview buttons on comment forms.

15 years agoAdd influence_comment_preview template.
Matthijs Kooijman [Fri, 31 Oct 2008 16:47:12 +0000 (17:47 +0100)]
Add influence_comment_preview template.

15 years agoUse parent_id instead of edit_id.
Matthijs Kooijman [Fri, 31 Oct 2008 16:46:00 +0000 (17:46 +0100)]
Use parent_id instead of edit_id.

Previously, edit_id was taken as the message to reply to, but it was
never set, nor appropriate.

15 years agoAdd a custom comment preview view for influences.
Matthijs Kooijman [Fri, 31 Oct 2008 16:44:27 +0000 (17:44 +0100)]
Add a custom comment preview view for influences.

15 years agoGive each comment form a unique prefix.
Matthijs Kooijman [Fri, 31 Oct 2008 16:42:31 +0000 (17:42 +0100)]
Give each comment form a unique prefix.

15 years agoAdd log_error decorator for debugging.
Matthijs Kooijman [Fri, 31 Oct 2008 16:30:34 +0000 (17:30 +0100)]
Add log_error decorator for debugging.

15 years agoEnable the request context processor.
Matthijs Kooijman [Fri, 31 Oct 2008 16:07:03 +0000 (17:07 +0100)]
Enable the request context processor.

15 years agoIntroduce a comments block in the influence_detail.
Matthijs Kooijman [Fri, 31 Oct 2008 13:55:36 +0000 (14:55 +0100)]
Introduce a comments block in the influence_detail.

This allows us to override the comments display for previewing later.

15 years agoMove influence_detail_block into influence_detail.
Matthijs Kooijman [Fri, 31 Oct 2008 13:53:30 +0000 (14:53 +0100)]
Move influence_detail_block into influence_detail.

The influence_detail_block template is only used in the influence_detail
template, so having it separate is not really needed. Additionally, it
turns out that overriding a block in an included template is not
possible, so moving it back in allows us to override the comments block
(which we will introduce in the next commmit).

15 years agoAlways include the showReply/hideReply functions.
Matthijs Kooijman [Fri, 31 Oct 2008 13:38:32 +0000 (14:38 +0100)]
Always include the showReply/hideReply functions.

Previously, these javascript functions were only defined when there were
any comments, but the "add comment" link uses them as well.

15 years agoMove the new comment form to the right template.
Matthijs Kooijman [Fri, 31 Oct 2008 13:25:29 +0000 (14:25 +0100)]
Move the new comment form to the right template.

The "reply to this comment" forms were already in
influence_comments_block, but the "new comment" form was not.

15 years agoLet Influence list and annote its comments itself.
Matthijs Kooijman [Fri, 31 Oct 2008 11:45:38 +0000 (12:45 +0100)]
Let Influence list and annote its comments itself.

Previously, both the admin view and the influence_detail view would
create this list and annotate it with reply forms.

15 years agoMove forms from models.py to a new file forms.py.
Matthijs Kooijman [Fri, 31 Oct 2008 10:49:14 +0000 (11:49 +0100)]
Move forms from models.py to a new file forms.py.

15 years agoAdd a comments view to the InfluenceAdmin.
Matthijs Kooijman [Fri, 31 Oct 2008 10:36:30 +0000 (11:36 +0100)]
Add a comments view to the InfluenceAdmin.

15 years agoMove the comment display into it's own template.
Matthijs Kooijman [Fri, 31 Oct 2008 10:30:47 +0000 (11:30 +0100)]
Move the comment display into it's own template.

15 years agoMove quote_reply out of the influence_detail function.
Matthijs Kooijman [Fri, 31 Oct 2008 10:29:31 +0000 (11:29 +0100)]
Move quote_reply out of the influence_detail function.

15 years agoReplace STATIC_URL_PREFIX by MEDIA_URL.
Matthijs Kooijman [Fri, 31 Oct 2008 10:07:05 +0000 (11:07 +0100)]
Replace STATIC_URL_PREFIX by MEDIA_URL.

STATIC_URL_PREFIX was a custom creation, but it is now clear that
MEDIA_URL is meant for exactly the same thing (and not just for uploaded
files, as I previously thought).

15 years agoRename the static dir to media.
Matthijs Kooijman [Fri, 31 Oct 2008 09:57:44 +0000 (10:57 +0100)]
Rename the static dir to media.

15 years agoMake the enabling of TEMPLATE_DEBUG more clear.
Matthijs Kooijman [Fri, 31 Oct 2008 09:07:07 +0000 (10:07 +0100)]
Make the enabling of TEMPLATE_DEBUG more clear.

TEMPLATE_DEBUG used to be initialized with the value of DEBUG in
settings.py, which was confusing if you change the value of DEBUG in
localsettings.

15 years agoRemove some deprecated options.
Matthijs Kooijman [Thu, 30 Oct 2008 06:53:22 +0000 (07:53 +0100)]
Remove some deprecated options.

These options are no longer supported since Django 1.0.

15 years agoInstantiate the new comment form class.
Matthijs Kooijman [Wed, 29 Oct 2008 20:48:21 +0000 (21:48 +0100)]
Instantiate the new comment form class.

Previously, the class itself was passed to the template, which obviously
didn't work.

15 years agoWrap the free_comment view instead of the comment view.
Matthijs Kooijman [Wed, 29 Oct 2008 10:38:42 +0000 (11:38 +0100)]
Wrap the free_comment view instead of the comment view.

This allows us to work with no changes to threaded_comments at all.

15 years agoImprove influence comment handling.
Matthijs Kooijman [Wed, 29 Oct 2008 10:31:19 +0000 (11:31 +0100)]
Improve influence comment handling.

This adds a number of form classes for commenting, which allow to choose
between public or private comments and can prevent the choice of markup.
Using a wrapper function, the right class can be selected depending on
the logged in user and the comment to reply to.

Each comment to display is annotated with the reply form to reply to it,
so we no longer need changes in threaded_comments to support quoted
replies.

Additionally, a new view is added that handles the selection of the
right form class when saving a comment.

15 years agoMark private comments using a red border.
Matthijs Kooijman [Wed, 29 Oct 2008 10:25:55 +0000 (11:25 +0100)]
Mark private comments using a red border.

15 years agoFix HTML errors.
Matthijs Kooijman [Tue, 28 Oct 2008 23:41:11 +0000 (00:41 +0100)]
Fix HTML errors.

15 years agoAdd a doctype and title tag.
Matthijs Kooijman [Tue, 28 Oct 2008 23:34:55 +0000 (00:34 +0100)]
Add a doctype and title tag.

15 years agoMake ContextForm and ContextModelForm work again.
Matthijs Kooijman [Tue, 28 Oct 2008 22:33:42 +0000 (23:33 +0100)]
Make ContextForm and ContextModelForm work again.

It seems like some stuff changed in django, not sure what exactly. This
commit removes changes the inheritance to inherit from Form and
ModelForm instead of avoiding that and directly inheriting from their
base classes and do some metaclass magic.

15 years agoFix comment tags in the base template.
Matthijs Kooijman [Tue, 28 Oct 2008 17:31:35 +0000 (18:31 +0100)]
Fix comment tags in the base template.

This ensure we really don't link to online copies of the YUI scripting
files.

15 years agoChange newforms to forms.
Matthijs Kooijman [Sun, 14 Sep 2008 13:29:23 +0000 (15:29 +0200)]
Change newforms to forms.

15 years agoUpdate signal handling to work with the changes introduced in django r8223.
Matthijs Kooijman [Mon, 18 Aug 2008 18:48:18 +0000 (20:48 +0200)]
Update signal handling to work with the changes introduced in django r8223.

15 years agoShow only public comments to non-staff.
Matthijs Kooijman [Thu, 31 Jul 2008 22:36:37 +0000 (00:36 +0200)]
Show only public comments to non-staff.

15 years agoMark strings as translatable.
Matthijs Kooijman [Thu, 31 Jul 2008 22:36:18 +0000 (00:36 +0200)]
Mark strings as translatable.

15 years agoPoint base template to local copies of YUI files and css.
Matthijs Kooijman [Thu, 31 Jul 2008 22:35:06 +0000 (00:35 +0200)]
Point base template to local copies of YUI files and css.

15 years agoUpdate translation.
Matthijs Kooijman [Thu, 31 Jul 2008 22:34:30 +0000 (00:34 +0200)]
Update translation.

15 years agoAdd Lextalionis css skin.
Matthijs Kooijman [Thu, 31 Jul 2008 22:25:51 +0000 (00:25 +0200)]
Add Lextalionis css skin.

15 years agoAdd two YUI javascript files.
Matthijs Kooijman [Thu, 31 Jul 2008 22:25:33 +0000 (00:25 +0200)]
Add two YUI javascript files.

15 years agoMigrate applications to the new admin interface.
Matthijs Kooijman [Mon, 28 Jul 2008 16:14:08 +0000 (18:14 +0200)]
Migrate applications to the new admin interface.

15 years agoSwitch the urlconf to use the new django admin interface.
Matthijs Kooijman [Mon, 28 Jul 2008 16:13:45 +0000 (18:13 +0200)]
Switch the urlconf to use the new django admin interface.

15 years ago * Update translations.
Matthijs Kooijman [Sat, 26 Jul 2008 23:01:49 +0000 (01:01 +0200)]
 * Update translations.

15 years ago * Remove preview button, since it doesn't work inline and is ugly.
Matthijs Kooijman [Sat, 26 Jul 2008 11:18:31 +0000 (13:18 +0200)]
 * Remove preview button, since it doesn't work inline and is ugly.

15 years ago * Put a border around comments, makes it slightly clearer.
Matthijs Kooijman [Sat, 26 Jul 2008 11:09:36 +0000 (13:09 +0200)]
 * Put a border around comments, makes it slightly clearer.

15 years ago * Enable threaded comments for influences.
Matthijs Kooijman [Sat, 26 Jul 2008 11:09:20 +0000 (13:09 +0200)]
 * Enable threaded comments for influences.

15 years ago * Include YUI javascript libraries.
Matthijs Kooijman [Sat, 26 Jul 2008 11:08:43 +0000 (13:08 +0200)]
 * Include YUI javascript libraries.

16 years ago * Enable the threadedcomments app (code not included).
Matthijs Kooijman [Tue, 25 Mar 2008 11:11:39 +0000 (12:11 +0100)]
 * Enable the threadedcomments app (code not included).

16 years ago * Remove the sites app from the config, we're not using it.
Matthijs Kooijman [Mon, 24 Mar 2008 16:54:25 +0000 (17:54 +0100)]
 * Remove the sites app from the config, we're not using it.

16 years ago * Remove the Event model from the admin, we're not using it for now.
Matthijs Kooijman [Mon, 24 Mar 2008 16:50:56 +0000 (17:50 +0100)]
 * Remove the Event model from the admin, we're not using it for now.

16 years ago * Rename add.html template to add_influence.html for consistency.
Matthijs Kooijman [Sun, 24 Feb 2008 15:10:13 +0000 (16:10 +0100)]
 * Rename add.html template to add_influence.html for consistency.