[Mailman-Developers] Issue with listinfo.html template

Mark Sapiro msapiro at value.net
Fri Oct 22 21:41:00 CEST 2004


The following came up on the mailman-users list.

------------ begin quote of my post to mailman-users
Matt Singerman wrote:
>
>I am running an installation of Mailman 2 on an OpenBSD server, running 
>several mailing lists.  The one list in particular I am having problems 
>with is:
>
>http://list.mchoralhealth.org/mailman/listinfo/cohp
>
>The problem is that if you try and view the subscribers' list (which is 
>open to list members), you are redirected to:
>
>http://list.mchoralhealth.org/mailman/subscribe/cohp
>
>Instead of the proper page:
>
>http://list.mchoralhealth.org/mailman/roster/cohp
>
>What on earth could be causing this?  I am contemplating saving out the 
>subscribers list and config file, deleting, and recreating the list.  
>Anyone have any less drastic suggestions?

The listinfo.html template for this list has been messed up in editing.

When the subscribe stuff was moved to the bottom, the line which becomes

    <FORM Method=POST
ACTION="http://list.mchoralhealth.org/mailman/subscribe/cohp">

 in the final page and which probably looks like

    <MM-Subscribe-Form-Start>

in the template needs to be moved down below the other forms on the
page.

The real problem is that in the standard template, the subscribe form
actually begins in the middle of the "About" section instead of within
the "Subscribing" section. This leads to exactly the kind of error you
made when trying to rearrange things on the page.
------------ end of quote

I suggest that the following patch might help people avoid the above
error when editing the template.

--- mailman-2.1.5/templates/en/listinfo.html    2002-11-15
22:10:36.000000000 -0800
+++ mailman-mas/templates/en/listinfo.html      2004-10-22
12:25:30.000000000 -0700
@@ -26,7 +26,6 @@
             <TD COLSPAN="1" WIDTH="100%" BGCOLOR="#FFF0D0">
               <MM-lang-form-start><MM-displang-box> <MM-list-langs>
               <MM-form-end>
-    <MM-Subscribe-Form-Start>
             </TD>
          </TR>
            <tr>
@@ -63,6 +62,7 @@
          <P>
            Subscribe to <MM-List-Name> by filling out the following
              form.
+    <MM-Subscribe-Form-Start>
          <MM-List-Subscription-Msg>
          <ul>
              <TABLE BORDER="0" CELLSPACING="2" CELLPADDING="2"

Of course, if this is a good idea, it also applies (the idea, not the
exact patch) to all the other languages as well.

--
Mark Sapiro <msapiro at value.net>       The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan



More information about the Mailman-Developers mailing list