<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Brilliant! Thanks! Page reset now works for both FF and IE when
switching from edit-rights to not-edit-rights or vice-versa.<br>
<br>
For the curious (incl. me), what change did this require internally?<br>
<br>
For list readers, this is significant, because I have code in
farmconfig.php that presents a slightly different layout when edit
rights are in effect -- essentially a menu for authors is included in
the page layout when edit rights are in effect (password has been
entered), whereas without edit rights there is only a "login" option
for "custodians" (authors). At the same time I have IMS Caching ("If
Modified Since") turned on, so that when a reader returns to a page the
page position is preserved (we have loooonnnngggg pages). Prior to
Patrick's fix a change of mode (by logging in with the password, or
logging out) would not take effect in Firefox until the author held the
shift key and hit the refresh button, not very elegant! It worked fine
in Internet Explorer. Now it works like a charm in both.<br>
<br>
Here's the farmconfig.php code:<br>
<br>
$EnableIMSCaching=1;<br>
...<br>
include_once('local/config.php');<br>
$pagename = ResolvePageName($pagename);<br>
$isEditAuthorized = CondAuth($pagename, 'edit'); #detects current
rights mode<br>
...<br>
include_once('../../common/wiki/scripts/author.php');<br>
$LogoutCookies = array_diff($LogoutCookies, array($AuthorCookie));
#preserves author name between sessions<br>
...<br>
if (!$isEditAuthorized) { #conditionally sets menu layout<br>
$PageCustodianFmt = ' <br>
&lt;ul class="narrow compact"&gt;<br>
&lt;li&gt;&lt;a
href="$PageUrl?action=login"&gt;Login&lt;/a&gt;&lt;/li&gt;<br>
&lt;/ul&gt;'; <br>
} else {<br>
$PageCustodianFmt = ' <br>
&lt;ul class="narrow compact"&gt;<br>
&lt;li&gt;&lt;a href="$PageUrl"&gt;View page&lt;/a&gt;&lt;/li&gt;<br>
&lt;li&gt;&lt;a href="$PageUrl?action=edit"&gt;Edit
Page&lt;/a&gt;&lt;/li&gt;<br>
&lt;li&gt;&lt;a href="$PageUrl?action=diff"&gt;Page
History&lt;/a&gt;&lt;/li&gt;<br>
&lt;li&gt;&lt;a href="$PageUrl-Sidebar?action=edit"&gt;Edit Page
Sidebar&lt;/a&gt;&lt;/li&gt;<br>
&lt;li&gt;&lt;a href="$ScriptUrl/$Group/Sidebar?action=edit"&gt;Edit
Group Sidebar&lt;/a&gt;&lt;/li&gt;<br>
&lt;li&gt;&lt;a
href="$ScriptUrl/$DefaultGroup/DepartmentSidebar?action=edit"&gt;Edit
Department Sidebar&lt;/a&gt;&lt;/li&gt;<br>
&lt;li&gt;&lt;a
href="$ScriptUrl/$DefaultGroup.SectionList?action=edit"&gt;Edit Folders
Menu&lt;/a&gt;&lt;/li&gt;<br>
&lt;li&gt;&lt;a
href="$ScriptUrl/$Group/ArticleList?action=edit"&gt;Edit Documents
Menu&lt;/a&gt;&lt;/li&gt;<br>
&lt;li&gt;&lt;a href="$ScriptUrl/LibraryOfStories.FrontPage"&gt;Library
Of Stories&lt;/a&gt;&lt;/li&gt;<br>
&lt;li&gt;&lt;a target="_blank" href="/gallery/index.php"&gt;Photo
Gallery&lt;/a&gt;&lt;/li&gt;<br>
&lt;li&gt;&lt;a target="_blank"
href="/common/wiki/pmwiki.php?n=DufferinParkWiki.FrontPage"&gt;Custodian
Help&lt;/a&gt;&lt;/li&gt;<br>
&lt;li&gt;&lt;a
href="$PageUrl?action=logout"&gt;Logout&lt;/a&gt;&lt;/li&gt;<br>
&lt;/ul&gt;';<br>
}<br>
<br>
Then I place the $PageCustodianFmt variable in the appropriate place in
the page template.<br>
<br>
Thanks again Patrick!!<br>
<br>
- Henrik<br>
<br>
<br>
<pre class="moz-signature" cols="72">Henrik Bechmann
<a class="moz-txt-link-abbreviated" href="http://www.osscommons.ca">www.osscommons.ca</a>
<a class="moz-txt-link-abbreviated" href="http://www.bechmannsoftware.com">www.bechmannsoftware.com</a>
Webmaster, <a class="moz-txt-link-abbreviated" href="http://www.dufferinpark.ca">www.dufferinpark.ca</a></pre>
<br>
<br>
Patrick R. Michaud wrote:
<blockquote cite="mid20060827045933.GA28588@host.pmichaud.com"
 type="cite">
  <pre wrap="">On Sat, Aug 26, 2006 at 03:04:06PM -0400, Henrik Bechmann wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Question: A while ago we talked about changing the core to force FF's 
cache to be over-ridden when page mode was changed (eg. from read to 
edit). But I see the cache still has to be over-ridden with a user's 
manual shift-RefreshButton action.

Is this fix still on your list?
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Now fixed in 2.1.17 (just released).

    <a class="moz-txt-link-freetext" href="http://www.pmwiki.org/pub/pmwiki/pmwiki-2.1.17.tgz">http://www.pmwiki.org/pub/pmwiki/pmwiki-2.1.17.tgz</a>
    <a class="moz-txt-link-freetext" href="http://www.pmwiki.org/pub/pmwiki/pmwiki-2.1.17.zip">http://www.pmwiki.org/pub/pmwiki/pmwiki-2.1.17.zip</a>
    <a class="moz-txt-link-freetext" href="http://www.sourceforge.net/projects/pmwiki">http://www.sourceforge.net/projects/pmwiki</a>
    svn://pmwiki.org/pmwiki/tags/latest

Thanks!

Pm



  </pre>
</blockquote>
</body>
</html>