Fossil

Check-in [cdb7f3b9]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:The "New Thread" button in /forum is no longer restricted to those with forum write capability: if you lack it, we now send you to the login page instead. Without this, users without the capability to post are left looking in through the window of a building without obvious doors. This change pairs especially nicely with the self-registration feature, but it doesn't require it, since /login also allows anonymous login, which should be enabled for Fossil forums on sites where non-users are expected to visit.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | login-on-post
Files: files | file ages | folders
SHA3-256: cdb7f3b988da4624979ae5e56a509f33d38bd0493bf75919b859a5f718f6b950
User & Date: wyoung 2018-11-09 18:52:17.326
Original Comment: The "New Thread" button in /forum is no longer ristricted to those with forum write capability: if you lack it, we now send you to the login page instead. Without this, users without the capability to post are left looking in through the window of a building without obvious doors. This change pairs especially nicely with the self-registration feature, but it doesn't require it, since /login also allows anonymous login, which should be enabled for Fossil forums on sites where non-users are expected to visit.
Context
2018-11-09
19:11
Fix to previous for the "non-constant format" complaint from some compilers. I can't see what they're yelling about, but this fixes it. ... (check-in: 095333fc user: wyoung tags: login-on-post)
18:52
The "New Thread" button in /forum is no longer restricted to those with forum write capability: if you lack it, we now send you to the login page instead. Without this, users without the capability to post are left looking in through the window of a building without obvious doors. This change pairs especially nicely with the self-registration feature, but it doesn't require it, since /login also allows anonymous login, which should be enabled for Fossil forums on sites where non-users are expected to visit. ... (check-in: cdb7f3b9 user: wyoung tags: login-on-post)
2018-11-08
02:38
Improve grep documentation ... (check-in: 4af31f11 user: andygoth tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/forum.c.
969
970
971
972
973
974
975
976
977
978


979
980
981
982
983
984
985
  login_check_credentials();
  srchFlags = search_restrict(SRCH_FORUM);
  if( !g.perm.RdForum ){
    login_needed(g.anon.RdForum);
    return;
  }
  style_header("Forum");
  if( g.perm.WrForum ){
    style_submenu_element("New Thread","%R/forumnew");
  }


  if( g.perm.ModForum && moderation_needed() ){
    style_submenu_element("Moderation Requests", "%R/modreq");
  }
  if( (srchFlags & SRCH_FORUM)!=0 ){
    if( search_screen(SRCH_FORUM, 0) ){
      style_submenu_element("Recent Threads","%R/forum");
      style_footer();







<
|
<
>
>







969
970
971
972
973
974
975

976

977
978
979
980
981
982
983
984
985
  login_check_credentials();
  srchFlags = search_restrict(SRCH_FORUM);
  if( !g.perm.RdForum ){
    login_needed(g.anon.RdForum);
    return;
  }
  style_header("Forum");

  style_submenu_element("New Thread", g.perm.WrForum ?

      "%R/forumnew" :
      "%R/login");
  if( g.perm.ModForum && moderation_needed() ){
    style_submenu_element("Moderation Requests", "%R/modreq");
  }
  if( (srchFlags & SRCH_FORUM)!=0 ){
    if( search_screen(SRCH_FORUM, 0) ){
      style_submenu_element("Recent Threads","%R/forum");
      style_footer();