Commit Graph

75 Commits

Author SHA1 Message Date
David Anderson 98c3549d85 Add a new mechanism to discourage spam: if you put
define('VALIDATE_EMAIL_TO_POST', '1');
in your project.inc, users have to validate their email addrs
to post in the forums, send PMs, or create profiles.
2021-12-03 22:58:12 -08:00
David Anderson 94fade4c09 web: if a thread or post creation fails
(e.g. because it has too many links) show the user an explanation.

Aside: the forum code (which was written by students a long time ago)
uses a hodge-podge of return conventions.
At some point we should standardize on 0 = success, nonzero = error code
2018-08-02 20:04:30 -07:00
David Anderson dfe7261cda web: improve button colors and appearance
principles:
- primary action buttons are green (btn-success)
- secondary action buttons are blue (btn-primary)
- potentially risky action buttons are yellow (btn-warning)
- if there are a lot of buttons (e.g. forum posts) use btn-xs
2017-08-20 01:17:21 -07:00
Christian Beer 11a37bd1d0 Web: add extra space around placeholders
Our current translation system (Transifex) introduced a new editor feature which autodetects C-style placeholders in PO files. This wrongly detects our placeholders in the web code where a word immediately follows the digit. This leads to wrong translations if the placeholder is copied using this new transifex feature. The feature can not be globally disabled for our project. Instead every translator would need to use "raw" mode to disable it which is hard to communicate. Instead I added a space around problematic placeholders which is possing a smaller problem than wrong translations.
2017-07-04 13:13:01 +02:00
David Anderson 620ba64c72 web: add rules for private messages (similar to forum rules) 2017-07-01 13:43:43 -07:00
David Anderson 6fa6af44d0 web: show message and PM previews in a panel 2016-12-19 17:16:49 -08:00
David Anderson 330a8aa95b web: fix column widths in several places 2016-12-07 18:46:11 -08:00
David Anderson c054358a6e web: tweaks to fix Scrutinizer complaints; few visible effects 2016-12-07 11:32:25 -08:00
David Anderson b2a93ac843 web: various tweaks
- change dark-background link color
- change dark-background colors for <pre>
- fix heading color for striped tables
    It turns out that, for striped tables, Bootstrap ignores classes for <tr>.
    You have to put them in the <th>.
    row_heading() and row_heading_array() do this for you.
- put Preview content into a table w/ heading
2016-12-02 12:24:20 -08:00
David Anderson 58be631b7c web tweaks; make BOINC page strings translatable 2016-11-28 16:45:24 -08:00
David Anderson 1d1c9eb444 web: tweaks for bootstrap
A bunch of little things.
Also new BOINC front page, by accident.
2016-11-28 00:47:25 -08:00
David Anderson 28a8014df0 web tweaks
- fix display of BBcode links and menus
- change textareas to class form-control
- add color to select so they work with dark and light backgrounds

Note: I'm becoming somewhat less enamored of Bootstrap.
2016-11-24 20:32:01 -08:00
David Anderson df8e221287 web: various tweaks
Please enter the commit message for your changes. Lines starting
2016-11-20 15:38:19 -08:00
David Anderson c5b948020d Initial commit for Bootstrap 2016-11-11 12:36:27 -08:00
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 2f58137d38 web: make [pre] work in admin posts 2014-08-27 14:27:55 -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 ab120dea9e - web: after post to a thread, show thread in user's chosen order
instead of newest first.


svn path=/trunk/boinc/; revision=25931
2012-08-01 17:57:56 +00:00
David Anderson 6f98eae87d - web: after post to a thread, show a page of the most recent posts
(but don't change user's sort prefs)


svn path=/trunk/boinc/; revision=25872
2012-07-13 21:40:20 +00:00
David Anderson 075d544c9f - web: when posting to a thread, show a page of its most recent posts
- feeder: add --by_batch option: interleaves jobs from different batches.
    From Jack Harris.


svn path=/trunk/boinc/; revision=25871
2012-07-13 21:10:38 +00:00
David Anderson 490b740682 - web: improve forum pagination
svn path=/trunk/boinc/; revision=25863
2012-07-11 19:24:28 +00:00
David Anderson f7a9d4049e - web: typos
svn path=/trunk/boinc/; revision=25861
2012-07-11 05:40:40 +00: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 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 dc222e1cfe - web: fix bug that cause "use signature" preference to be ignored
svn path=/trunk/boinc/; revision=23466
2011-04-26 21:38:22 +00:00
David Anderson 7b98cccc37 - user web: various fixes
svn path=/trunk/boinc/; revision=23030
2011-02-14 19:49:30 +00:00
David Anderson 164299c66f - user web: bug fix
svn path=/trunk/boinc/; revision=23026
2011-02-13 23:57:39 +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 e87f289544 - fix formatting in PHP code
svn path=/trunk/boinc/; revision=22623
2010-11-04 18:20:57 +00:00
David Anderson f7d29f6651 - user web: if Akismet rejects thread reply, show warning
svn path=/trunk/boinc/; revision=20318
2010-01-29 17:00:14 +00:00
David Anderson f2d6d98807 svn path=/trunk/boinc/; revision=18488 2009-06-23 17:18:29 +00:00
David Anderson 5e94337e8e - more code cleanup
svn path=/trunk/boinc/; revision=18487
2009-06-23 17:15:17 +00:00
David Anderson df9547fcf4 - web: code cleanup
svn path=/trunk/boinc/; revision=18486
2009-06-23 17:13:35 +00:00
David Anderson 9f8fda388b - web: add buttons for BBCode editing.
From John Hallissey

svn path=/trunk/boinc/; revision=18485
2009-06-23 16:37:13 +00:00
David Anderson 37364ab657 - client: show message when suspending because of exclusive app
- web: remove file_get_contents() workaround for PHP4
- web: If Akismet or ReCaptcha failure,
    display the form again with a warning message at the top.
    That way the user doesn't lose the text they just typed.

svn path=/trunk/boinc/; revision=16175
2008-10-09 18:28:55 +00:00
Janus B. Kristensen de956c8eb0 Implementing Ticket #309 - you can now either reply to or quote a post
svn path=/trunk/boinc/; revision=16053
2008-09-25 12:56:42 +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
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 348f90574c - web: fixed a couple of references to "global $logged_in_user".
It's $g_logged_in_user.

svn path=/trunk/boinc/; revision=15362
2008-06-05 04:35:21 +00:00
David Anderson 2c5666df86 - web: when showing team forums, give link back to forum index
svn path=/trunk/boinc/; revision=14303
2007-11-26 04:12:15 +00:00
David Anderson da3671f0de - user web: when showing UOTD on front page,
strip HTML tags from text (e.g. to remove photos)
- user web: show_image(): separate title (tooltip text)
    from "alt" (replaces image if images disabled).
    The latter must be terse.
- user web: show_button(): make it work even if Javascript disabled

svn path=/trunk/boinc/; revision=14294
2007-11-23 21:05:52 +00:00
David Anderson b597e4d204 - user web: on team message board pages,
put a link to the top-level message board

svn path=/trunk/boinc/; revision=14233
2007-11-16 21:48:28 +00:00
David Anderson a49608a028 - user web: allow teams to create their own "team message board".
Team founder and admins have moderator power.
    Anyone can view a team message board,
    but only team members can write to it.
    Users cannot be banished from team message boards
    (due to database limitations).

svn path=/trunk/boinc/; revision=14218
2007-11-15 22:51:05 +00:00
David Anderson c83eeef1a5 - user web: factor out code for forum header (search forum and PM info)
into a separate function.
    Don't show subtitle bar for categories with no name.
    Rename search_post_titles() to search_post_content()

svn path=/trunk/boinc/; revision=14209
2007-11-15 00:27:02 +00:00
David Anderson a18dfc55a7 - user web: revise forum code to use new-style DB interface
svn path=/trunk/boinc/; revision=14160
2007-11-12 20:57:15 +00:00
David Anderson bf227ea8b1 - DB: remove "lang" from schema - not used
- DB: added parent_type to forum
- user web: BoincUser uses caching by default
- client: fixed small memory leak in statistics parsing

svn path=/trunk/boinc/; revision=14130
2007-11-10 00:32:42 +00:00
Rytis Slatkevičius c1fb4934ec - user web: convert translations from tokens to strings; update Lithuanian translation.
- ops pages: add user removal feature (for spammers).

svn path=/trunk/boinc/; revision=14020
2007-11-02 14:43:02 +00:00
David Anderson 24869ae8d4 - user web: bug fix in forum banish
- user web: add link to boinc-team-founders Google group
    in founder management page


svn path=/trunk/boinc/; revision=14011
2007-10-31 19:26:02 +00:00
Rytis Slatkevičius 870924eb13 Fix #424 (backslash problem)
svn path=/trunk/boinc/; revision=13716
2007-09-29 15:47:12 +00:00
Rytis Slatkevičius f2cccbd4cf Preview functionality for the forums
svn path=/trunk/boinc/; revision=13715
2007-09-29 12:53:16 +00:00