[pmwiki-users] Harvesting :Email: text variable in Profiles for spamming friends

Hans design5 at softflow.co.uk
Tue Jun 24 10:51:01 CDT 2008

Tuesday, June 24, 2008, 3:08:40 PM, kirpi at kirpi.it wrote:

> [[#includeEmail]]
> (:include {=$FullName}{$:Email}:)
> [[#includeEmail]]
> (:pagelist group=Profiles fmt=includeEmail:)

try this instead:

!!!email list
(:pagelist group=Profiles $:Email=- list=normal fmt=#includeEmail:)

(:if false:)
(:template first:)
(:template each:)
||[[Profiles/{=$Name}]] ||{{=$FullName}$:Email} ||

Note the bracketing of the PTV.

{Group.Name$:Email} will include the value of PTV 'Email' from page

In the pagelist template Group.Name is replaced by {=$FullName}

$:Email=- in the directive will filter the pages to thos ewhich
contain a non-empty PTV 'Email'.

(:if false:) hides the pagelist template (a better method is to move
it to Site.LocalTemplates.

fmt=#includeEmail calls the format. It needs the # to refer to the
anchored section.


More information about the pmwiki-users mailing list