Fossil

Changes On Branch login-on-post
Login

Changes On Branch login-on-post

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

Changes In Branch login-on-post Excluding Merge-Ins

This is equivalent to a diff from 4af31f11 to 725630f3

2018-11-09
19:18
Merged login-on-post branch to trunk ... (check-in: c0e384cf user: wyoung tags: trunk)
19:16
Another attempt to fix non-constant format complaint. ... (Closed-Leaf check-in: 725630f3 user: wyoung tags: login-on-post)
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)
2018-11-07
12:04
When running a bisect, show the span between the two extremes and the number of steps remaining after each step. ... (check-in: b45dd1c7 user: drh tags: trunk)

Changes to src/forum.c.

971
972
973
974
975
976
977






978
979
980
981
982
983
984
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990







+
+
+
+
+
+







  if( !g.perm.RdForum ){
    login_needed(g.anon.RdForum);
    return;
  }
  style_header("Forum");
  if( g.perm.WrForum ){
    style_submenu_element("New Thread","%R/forumnew");
  }else{
    /* Can't combine this with previous case using the ternary operator
     * because that causes an error yelling about "non-constant format"
     * with some compilers.  I can't see it, since both expressions have
     * the same format, but I'm no C spec lawyer. */
    style_submenu_element("New Thread","%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");