Commit Graph

48 Commits

Author SHA1 Message Date
David Anderson e6ecb981b3 web: change CSS usage to partly match Twitter Bootstrap. From Christian Beer. 2014-10-02 12:15:54 -07:00
David Anderson 278f3fd370 web: use new DB API here and there; should be no visible changes 2014-04-24 09:41:59 -07:00
David Anderson af99251e79 web: let projects disable forums
Do this by putting
define("DISABLE_FORUMS", true);
in your html/project/project.inc.

If this is set, admin users can still see enough forum functionality
to post and edit news items
(this is linked to from the Admin web interface).

Other users, or non-logged-in access, sees news but no forums
or forum-related info.
2014-04-18 15:54:28 -07:00
David Anderson b162aa3d2b - user web: add "posts per page" pref for message boards;
get rid of existing funky page-limit prefs


svn path=/trunk/boinc/; revision=25859
2012-07-11 05:27:31 +00:00
David Anderson 1c054907c7 - web: fix some stuff broken by my checkin [24039].
- web: use & instead of & in URLs (not complete)


svn path=/trunk/boinc/; revision=24064
2011-08-29 05:37:52 +00:00
David Anderson 4d45dda3d9 - validator: update credit statistics even if credit_from_wu
is being used.
- web: make almost everything translatable.  From Christian Beer.


svn path=/trunk/boinc/; revision=24048
2011-08-25 22:12:48 +00:00
David Anderson d27af6214d - user web: finish dealing with get args spam
svn path=/trunk/boinc/; revision=23010
2011-02-09 22:11:34 +00:00
David Anderson c76d166344 - user web: forum_preferences.{low_rating_threshold, high_rating_threshold}
were deprecated, but were still used in deciding whether to show a post.
    This broke the "ignore list" function.

svn path=/trunk/boinc/; revision=19218
2009-09-29 21:58:54 +00:00
Janus B. Kristensen f361f95313 - Added "Highlight special users"-feature
- Allow projects to specify how special users can be highlighted in their forums through CSS
- Special users are now highlighted by default
- Post body background is now 25% transparent in browsers that support transparency (white.css only)


svn path=/trunk/boinc/; revision=16134
2008-10-05 16:00:11 +00:00
David Anderson 9baf78fe5f - web: added copyright and license info to PHP files
svn path=/trunk/boinc/; revision=15758
2008-08-05 22:43:14 +00:00
Rytis Slatkevičius 96068182bc Forums: add support for Globally Recognized Avatars.
svn path=/trunk/boinc/; revision=15637
2008-07-19 17:31:10 +00:00
Rytis Slatkevičius f9a7648ec4 user web: fix forum preferences saving (empty signatures were not allowed).
svn path=/trunk/boinc/; revision=15566
2008-07-08 17:42:52 +00:00
David Anderson d403a14e42 - web: cleaned up logic of string processing.
There are two aspects:
    1) undoing magic quotes (if it's being used).
        This must be done for all GET and POST string inputs.
        It is now done automatically by get_str() and post_str().
        The places that refer to $_GET and $_POST directly
        must do it themselves using undo_magic_quotes().
    2) Escaping user-supplied strings before using them in DB queries.
        This is done by process_user_text()
        (which should be renamed db_escape_string()).
        The new principle:
        call process_user_text() in the function that does the DB query
        (not at any higher level).


svn path=/trunk/boinc/; revision=15389
2008-06-11 19:36:10 +00:00
David Anderson d764eb5873 - web: clean up stuff related to stripslashes():
1) it's not correct to apply stripslashes() to all form input.
        That should be done only if magic quotes is on.
        I fixed this by adding a function undo_magic_quotes()
        that does the right thing.
    2) There's no reason to strip backslashes from user-supplied text
        (forum titles and bodies, private messages, passwords etc.)
        I'm not sure why this was being done.
        It prevented messages from containing backslashes.

svn path=/trunk/boinc/; revision=15364
2008-06-05 20:32:21 +00:00
David Anderson f183b6f47f - web: add general-purpose notification mechanism.
Users can choose whether to get 1 email per notification,
    a daily "digest" email, or no email.
    (All notifications are shown on the Account page).
    Currently used for:
    - Friend requests and confirmations
    - Posts to subscribed threads
    - Private messages

    NOTE: To implement the "daily digest" feature, projects must add
    a periodic task for html/ops/notify.php to config.xml
- web: have project_footer() generate links for
    Account Page and Message Boards as well as Home
    NOTE: projects that want this change
    will have to modify their own project.inc.

svn path=/trunk/boinc/; revision=14447
2007-12-30 22:02:16 +00:00
David Anderson b191ba9e33 - web: fix this forum prefs reset problem again; this time for sure
svn path=/trunk/boinc/; revision=14326
2007-11-30 00:32:29 +00:00
David Anderson be20ad2af2 - web: updating forum prefs would undo banishment,
reset #posts, and clear moderator flags.  Fixed.


svn path=/trunk/boinc/; revision=14324
2007-11-29 23:26:49 +00:00
David Anderson 27ba7bf0e8 - web: clean up forum prefs forum, and add a Confirm when reset
svn path=/trunk/boinc/; revision=14320
2007-11-29 16:47:56 +00:00
David Anderson c1ad7d8df5 - web: reorder and reword Your Account page and Forum prefs page;
rename General Prefs to Computing Prefs;
    rename Forum Prefs to Community Prefs
    add Prefs link if user doesn't have email PM notification
- remove forum low/high rating theshold stuff.
    Message rating was a failed experiment.

svn path=/trunk/boinc/; revision=14300
2007-11-26 00:51:00 +00:00
David Anderson 8456c61a35 - user web: fix bug in user filter; fixes #505
svn path=/trunk/boinc/; revision=14290
2007-11-23 00:19:48 +00:00
David Anderson dddc2ec6d2 - user web: clean up funky search result formatting.
For thread titles, show links to forum/category also
    For posts, show complete post, with search terms highlighted.
- user web: in display of posts for a user,
    show links to thread and forum also
- user web: posts/threads can become "orphaned" if their forum
    disappears, e.g. team message board is deleted.
    Handle this gracefully in search results and user post list
- user web: where HTML tags are allowed, say so
- user web: fix bug where wrap_postcounts weren't being shown in form
- DB: use "tinyint" instead of "tinyint(1) unsigned" etc.

svn path=/trunk/boinc/; revision=14267
2007-11-20 19:23:26 +00:00
David Anderson 615d4dcf22 - user web: the "private-message notification by email" flag
should default to off.
    Note: it's necessary to clear everyone's flag.
    Projects will need to notify users (e.g. via a news item)
    that they need to explicitly set this pref if they want email
    notification of PMs

svn path=/trunk/boinc/; revision=14255
2007-11-19 02:17:57 +00:00
David Anderson 3a6ef1d42b - user web: fix bug in edit forum prefs
svn path=/trunk/boinc/; revision=14243
2007-11-17 20:30:33 +00:00
David Anderson 83362a31ed - user web: change forum prefs editing to use new DB interface
svn path=/trunk/boinc/; revision=14175
2007-11-13 17:18:34 +00:00
Rytis Slatkevičius 571dc4afe0 User web: fix issues regarding forum preferences reset.
svn path=/trunk/boinc/; revision=13557
2007-09-09 19:01:05 +00:00
Rytis Slatkevičius bcf948a03d user web: add a separate preference for private message notification emails.
'''NOTE: needs DB update, see html/ops/db_update.php'''

(Fix #167)

svn path=/trunk/boinc/; revision=12813
2007-06-04 19:35:11 +00:00
Rytis Slatkevičius 7cbbd3667a Implement web RPC for setting forum preferences (something should be done about separate DB calls for every setting)
svn path=/trunk/boinc/; revision=12284
2007-03-29 18:58:17 +00:00
Rytis Slatkevičius 0870cce03d Signature encoding issues
svn path=/trunk/boinc/; revision=11719
2006-12-23 15:35:49 +00:00
David Anderson efa7b7a3ad *** empty log message ***
svn path=/trunk/boinc/; revision=11175
2006-09-19 12:57:57 +00:00
David Anderson 091b57c6c1 *** empty log message ***
svn path=/trunk/boinc/; revision=10380
2006-06-16 23:53:56 +00:00
David Anderson c2eeb299e5 *** empty log message ***
svn path=/trunk/boinc/; revision=9907
2006-04-14 22:25:55 +00:00
David Anderson dc4a89fb63 *** empty log message ***
svn path=/trunk/boinc/; revision=9883
2006-04-13 22:17:23 +00:00
Janus B. Kristensen 96f82f3a4f Display only last Y posts if thread has more than X posts in total.
svn path=/trunk/boinc/; revision=8925
2005-11-24 16:36:12 +00:00
Janus B. Kristensen a2a0c7c019 Correct mistakes where user has hit space
svn path=/trunk/boinc/; revision=6973
2005-08-02 17:00:59 +00:00
Janus B. Kristensen 62675f2d7c redirect to same page so people can see the changes. (This has been changed before... we should decide on whether to direct people to home.php or the same page...)
svn path=/trunk/boinc/; revision=6150
2005-05-13 19:17:41 +00:00
Janus B. Kristensen 1de42d1500 Ability to ignore sticky posts (don't reorder them in forum list)
svn path=/trunk/boinc/; revision=5990
2005-04-30 10:20:49 +00:00
Janus B. Kristensen 33cf66edeb - Users cannot be listed more than once on the ignorelist.
- List is now sorted by userid
(partly patch by Christian Beer)

svn path=/trunk/boinc/; revision=5016
2005-01-07 18:25:01 +00:00
Janus B. Kristensen 9a005d90ca Minor fix to user ignore function. When removing a user this no longer removes all users in the list.
svn path=/trunk/boinc/; revision=5002
2005-01-06 14:10:16 +00:00
Janus B. Kristensen a869084f87 Users can ignore other users in the forums
svn path=/trunk/boinc/; revision=4999
2005-01-06 11:47:44 +00:00
David Anderson e952710159 *** empty log message ***
svn path=/trunk/boinc/; revision=4905
2004-12-20 18:29:15 +00:00
David Anderson 7342b36f2e *** empty log message ***
svn path=/trunk/boinc/; revision=4599
2004-11-18 20:01:12 +00:00
David Anderson 465a97c096 *** empty log message ***
svn path=/trunk/boinc/; revision=4426
2004-10-25 22:04:15 +00:00
David Anderson 35fbdcc866 *** empty log message ***
svn path=/trunk/boinc/; revision=4318
2004-10-12 18:05:38 +00:00
David Anderson abd4c861ed *** empty log message ***
svn path=/trunk/boinc/; revision=4311
2004-10-10 03:04:29 +00:00
David Anderson 4cced25f4d *** empty log message ***
svn path=/trunk/boinc/; revision=4297
2004-10-06 20:45:21 +00:00
David Anderson b40131f41e *** empty log message ***
svn path=/trunk/boinc/; revision=4210
2004-09-20 21:58:47 +00:00
David Anderson 75fb68e02d *** empty log message ***
svn path=/trunk/boinc/; revision=4199
2004-09-14 21:29:52 +00:00
David Anderson 2634204c88 *** empty log message ***
svn path=/trunk/boinc/; revision=4152
2004-09-04 23:37:49 +00:00