[pmwiki-users] Disabling History and Recent Changes views
Tegan Dowling
tmdowling at gmail.com
Sat Jan 26 09:29:32 CST 2008
On Jan 26, 2008 7:24 AM, Steven Benmosh <wordz2u at gmail.com> wrote:
> Ok, I removed the two lines from the footer div, and that did eliminate the
> history and recent changes at the bottom of the page.
>
> I still have a 'History' link at the top right, right under the logo box and
> above the page title and body. I could find neither 'History' nor 'diff' in
> the pmwiki.tmpl file, so it must come from somewhere else.
>
> Anyone knows where from, please tell me. Of course, the code from Tegan and
> others might eliminate it or rather disable it.
Steven: You haven't said what skin you're using, so I'm guessing it's
the standard, default PmWiki skin. Can you go to your site's page
Site/PageActions ? I think that's probably where that row of links at
upper-right is coming from. If you edit that page, change these
lines:
* %item rel=nofollow class=browse accesskey='$[ak_view]'%
[[{*$FullName} | $[View] ]]
* %item rel=nofollow class=edit accesskey='$[ak_edit]'%
[[{*$FullName}?action=edit | $[Edit] ]]
* %item rel=nofollow class=diff accesskey='$[ak_history]'%
[[{*$FullName}?action=diff | $[History] ]]
to this:
* %item rel=nofollow class=browse accesskey='$[ak_view]'%
[[{*$FullName} | $[View] ]]
* %item rel=nofollow class=edit accesskey='$[ak_edit]'%
[[{*$FullName}?action=edit | $[Edit] ]](:if auth edit:)
* %item rel=nofollow class=diff accesskey='$[ak_history]'%
[[{*$FullName}?action=diff | $[History] ]](:ifend:)
then only someone who has used an edit-authorizing password will see
the History link.
Does that work?
More information about the pmwiki-users
mailing list