[pmwiki-users] comment spam and blogs
Neil Herber (nospam)
nospam at eton.ca
Thu Apr 30 09:39:10 CDT 2009
On 2009-04-30 Tegan Dowling is rumoured to have said:
> Peter: That looks like a cool recipe! Would it be easy to create a version that would only work for specified wikigroup(s)? On many of
I simply modify the authentication form (Site.AuthForm) to display
prompts and passwords under different conditions.
For example, on one wiki I put the following above the (:input
auth_form:) tag:
-------------
(:if equal {$action} edit:)'''A password is required to edit this page.'''
(:if equal {$action} browse:)'''A password is required to view this page.'''
(:if equal {$action} comment:)'''A password is required to leave a
comment for this page.'''
(:if equal {$action} diff:)'''A password is required to view the history
for this page.'''
(:if equal {$action} source:)'''A password is required to view the
source for this page.'''
(:if equal {$action} upload:)'''A password is required to upload files.'''
(:if:)
(:if [ equal {$Group} Friends && equal {$action} browse ] :)%red%Friends
of ours should know the password to view this page. It is '''not'''
"please", which is used for guests.
(:if equal {$Group} Guest:)%red%Use the word "please" (without the
quotes) as the password.
(:if:)
---------------
--
Neil Herber
More information about the pmwiki-users
mailing list