Commit Graph

60 Commits

Author SHA1 Message Date
David Anderson f69d38f415 Web: fix some PHP warnings
There were lots of PHP warnings in the apache error log.
Fix most of these.
2020-04-09 13:54:16 -07:00
David Anderson b7e12b2431 Web: fix bug in output of [list] BBcode 2019-08-31 14:18:06 -07:00
David Anderson 208f17284a web: break on words in [list] BBCODE 2018-11-15 01:22:08 -08:00
David Anderson 9e881e54f0 web: make list items break in forum tables.
For some reason they don't break by default, though normal text does.
2018-10-15 15:18:29 -07:00
David Anderson e394ff67c5 web: wrap long [pre] contents in forum posts 2018-10-12 13:30:06 -07:00
Michael Kulabuhov 4dd83c9db4 fix PHP 7 Deprecated 2017-04-07 23:27:06 +07:00
David Anderson 391fcbe203 web: tweaks 2016-12-06 19:18:34 -08:00
David Anderson 7be1f5d894 web: tweaks
- highlight admins in msg boards using green stripe
- show code in posts without scrollbars
- default button size: sm
2016-11-25 01:11:04 -08:00
David Anderson 7a492cedf3 project web: various enhancements:
- change default home page to replace text with a Join button,
    which links to a new page saying how to join.
- change default to show image to top of home page
- add form-control class to all <select>s so that text displays
    correctly with dark-background themes
- change args to page_head():
    - add $is_main; gets passed to project_banner()
    - remove $title_plain; not sure what it was for
- add arg for inverse navbar
2016-11-22 01:20:07 -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 b33c463cf3 web: various bug fixes
- fix "jump to first unread post" feature
- use <pre> for bbcode [code]
- don't use table-responsive class for tables.
  It does bad/funky things, especially on small displays
- remove start_table_noborder()
2016-11-11 19:11:57 -08:00
David Anderson c5b948020d Initial commit for Bootstrap 2016-11-11 12:36:27 -08:00
David Anderson db5d58609b Web: change BBCode to add [github] tags and remove [trac] tags.
(for linking to issue-tracker items and Wiki pages)
2015-10-07 12:21:12 -07:00
David Anderson 3bb136aca5 BOINC web site: add wallpaper images
Added [sm_img] BBCode tag to show small images.
Kludge. Should be able to say e.g. [img width=400]
2015-09-28 12:40:03 -07:00
David Anderson c70698eeef Web: fix BBCode transform for [img] when using HTTPS URL 2015-09-02 11:37:37 -07:00
David Anderson 10276d51b1 web: actually do last commit 2014-09-24 18:35:07 -07:00
David Anderson 8de9c2fac6 web: in text transform, don't re-encode entities 2014-09-24 18:30:25 -07:00
David Anderson a93090bce4 web: tweak processing of [code] in BBcode 2014-09-14 01:29:08 -07:00
David Anderson bbb8ae2d1d web: forums: display BBcode withing [pre] and [code].
Also, show long-ago dates (> 30 days) as the actual date
rather than "3423 days ago"
2014-09-10 15:46:58 -07:00
David Anderson 2f58137d38 web: make [pre] work in admin posts 2014-08-27 14:27:55 -07:00
David Anderson 0189132695 web: handle BBcode [pre] correctly 2014-08-10 10:26:10 -07:00
David Anderson eb9302c8d5 Web: add support for strikethrough ([s]...[/s]) in bbcode
Didn't add to WYWIWYG interface yet
2014-07-13 10:35:22 -07:00
David Anderson f7472149bd web: don't use deprecated @eis code in preg_replace
This was used for fancy logic involving nested bbcode tags,
which I don't think we need
2014-06-02 19:33:17 -07:00
David Anderson 517a49e607 - web: add [sup] BBCode tag for superscripts.
- web: show BBCode info in the same page, rather than target=new.
    On Firefox, this opens a new tab but doesn't switch to it,
    which makes it look like nothing happened.


svn path=/trunk/boinc/; revision=24622
2011-11-20 17:26:32 +00:00
David Anderson c9cf1f85a2 - user web: fix [img] BBcode problem
svn path=/trunk/boinc/; revision=23029
2011-02-14 19:06:42 +00:00
David Anderson 7ca6eeecd2 - web: remove align=right on BBcode images
svn path=/trunk/boinc/; revision=22228
2010-08-14 01:49:08 +00:00
David Anderson ede7c8cea9 - web: right-align bbcode images
- API: warning fix

svn path=/trunk/boinc/; revision=22160
2010-08-07 03:33:25 +00:00
David Anderson 65679fcfca - user web: in BBCode->HTML conversion there was a limit of
20 tags converted.
    I don't think a limit is needed.
    In any case, I changed it to 1000

svn path=/trunk/boinc/; revision=21329
2010-04-29 15:36:49 +00:00
David Anderson 5c1f254b64 - web: small fix
svn path=/trunk/boinc/; revision=19984
2009-12-19 06:13:22 +00:00
David Anderson e57f286e47 - web: some fixes that arose from converting BOINC's news
to forum format.


svn path=/trunk/boinc/; revision=19963
2009-12-18 04:32:30 +00:00
David Anderson 1b7f0aa88a - web: bb2html() previously generated HTML that assumed
the BOINC stylesheet (main.css) was included.
    This is no good if we're exporting the HTML.
    Add an option to generate generic HTML.
- web: add options to the forum RSS feed:
    1) threads_only: just show threads (i.e. 1st post in each thread)
    2) truncate: truncate posts to 256 chars.
        If this is not set, convert post from BBcode to generic HTML,
        and put this (XML-encoded) in item.description
This is preparation for using the forum code for project news,
and for displaying forum RSS feeds in the manager.


svn path=/trunk/boinc/; revision=19915
2009-12-15 17:57:36 +00:00
David Anderson 71c7e7a74b - client/scheduler/web: add per-project preferences for whether
to accept CPU, NVIDIA and ATI jobs.
    These prefs are shown only where relevant:
    e.g., only for processor types for which the project has app versions,
    and if it has versions for only one type, no pref is shown.

    These prefs affect both client and scheduler.
    The client won't ask for work for a device blocked by prefs,
    and the scheduler won't send it.

    This replaces earlier optional project-specific prefs for
    "no CPU jobs" and "no GPU jobs".
    (However, these prefs continue to be honored on the server side).

- client: if NVIDIA driver is unknown, say that rather than 0


svn path=/trunk/boinc/; revision=19194
2009-09-28 04:24:18 +00:00
David Anderson bf2f9942bd - web: don't show user ID next to posts
- web: fix [pre] bbcode


svn path=/trunk/boinc/; revision=18357
2009-06-10 22:54:21 +00:00
David Anderson c127a5c355 - web: make [pre] work similar to [code]. fixes #798
Note: I had to move [pre] to the top of the
    preg list to make this work.  Not sure why.


svn path=/trunk/boinc/; revision=18285
2009-06-03 23:00:43 +00:00
David Anderson c5439380f7 - web: fix regular expression for "images as links"
svn path=/trunk/boinc/; revision=18200
2009-05-25 18:49:42 +00:00
David Anderson 71cbc5d400 - web: in RSS feeds, replace images with [Image link]
but allow other tags (like <a>).
    Note: if the image is itself inside a <a href=x>,
    then the [Image link] will be linked to x, not to the image.

svn path=/trunk/boinc/; revision=18169
2009-05-20 18:25:36 +00:00
David Anderson fce59a4840 - web: fix formatting in [pre]. Fixes #891
svn path=/trunk/boinc/; revision=18140
2009-05-18 03:08:33 +00:00
David Anderson 0cf46274e7 - web: remove unused code; fixes #799
svn path=/trunk/boinc/; revision=16703
2008-12-16 21:39:07 +00:00
Janus B. Kristensen 2c45b94115 Fixed issue where BBCode inside code-tags was being interpreted
svn path=/trunk/boinc/; revision=16690
2008-12-15 18:43:52 +00:00
Janus B. Kristensen 46711e4bc8 Fixed #557 - Hightlighting in Forum Search Results applied to HTML tags.
Highlighting is now done before parsing other special code. 

svn path=/trunk/boinc/; revision=16193
2008-10-12 17:11:19 +00:00
Janus B. Kristensen f2dda6f02c Fixed ticket #557 - Hightlighting in Forum Search Results applied to HTML tags.
Highlighting is now done before parsing other special code.

svn path=/trunk/boinc/; revision=16192
2008-10-12 17:09:38 +00:00
Janus B. Kristensen ed032e15c1 Fixes Ticket #662 - list items are now kept open to allow more than one line of content
svn path=/trunk/boinc/; revision=16081
2008-09-27 11:52:19 +00:00
Janus B. Kristensen fc0ddc1d0d Fixes Ticket #662 - list items are now kept open to allow more than one line of content
svn path=/trunk/boinc/; revision=16080
2008-09-27 11:49:32 +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 0dadf8d62f - admin web: fix profile screen form formatting
- web: remove get_transform_settings_from_user().
    There's only get_output_options()

    NOTE: why is text_transform() doing stripslashes()?
    The slashes shouldn't be in the DB in the first place.
    There's some fundamental confusion here.

- web: fix uotd.php


svn path=/trunk/boinc/; revision=14866
2008-03-07 04:38:06 +00:00
David Anderson 9041fd8507 - user web: use forum prefs (e.g. display images as links)
when displaying PMs.  fixes #497

svn path=/trunk/boinc/; revision=14264
2007-11-20 00:55:35 +00:00
Rytis Slatkevičius 0379a5a655 Fix #114: update BBCode to allow easy linking to Trac tickets, wiki and changesets.
svn path=/trunk/boinc/; revision=12632
2007-05-09 19:30:46 +00:00
Rytis Slatkevičius dd9f10a2db Add rel="nofollow" to URLs in the forum because of spammers
svn path=/trunk/boinc/; revision=12509
2007-04-30 17:23:44 +00:00
Rytis Slatkevičius 606263161d Fix for ticket #125 - problems with websites using PHP setting short_open_tag
svn path=/trunk/boinc/; revision=12475
2007-04-25 19:05:12 +00:00