From rebirth@orcon.net.nz Tue Jul 17 23:00:53 2007 From: David McNab To: development@drupal.org Subject: [development] req: role-specific content in pages Date: Wed, 18 Jul 2007 11:00:46 +1200 Message-ID: <1184713246.5969.45.camel@rebirth> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7415841509632568845==" --===============7415841509632568845== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Hi Drupal devs, In case there's anyone with a bit of spare time coming up, and open to ideas, I've had a thought for what could be (for some) a very useful module. The idea is to have parts of a node marked-up to be visible only to certain roles. This could be achieved with certain SGML-like markups in the node body. For a silly example:

Sale! All boots 35% off!

We've picked up a big consignment of factory seconds from China. Faults are very minor, but we can't exactly charge full price for them. Otherwise, they're nice lines, and you should turn them over no problem. When you order stocks, please quote discount code #CNS4414

FFS Ian! Get off your butt and fix up those order screens!

Sleep easy, Caitlin, we'll get 'em off your hands. You could even come out a bit ahead.

Grab them while they last from your nearest retail outlet, or order them online here. Thoughts? Cheers David PS - My PHP is way rusty (switched to Python 5 years ago), and I'm just starting to learn the Drupal API. Otherwise I'd have a go at it myself. --===============7415841509632568845==-- From agentrickard@gmail.com Tue Jul 17 23:05:25 2007 From: Ken Rickard To: development@drupal.org Subject: Re: [development] req: role-specific content in pages Date: Tue, 17 Jul 2007 19:05:20 -0400 Message-ID: <25b45da00707171605p4231746fub2c405f195929c5e@mail.gmail.com> In-Reply-To: <1184713246.5969.45.camel@rebirth> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6414496938854294528==" --===============6414496938854294528== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit The CCK-Field-Permissions module lets you set this at the field-creation level, no embed code needed. It also lets you specify View/Edit/Delete permissions for each field of a node. http://drupal.org/project/cck_field_perms - Ken Rickard agentrickard On 7/17/07, David McNab wrote: > > Hi Drupal devs, > > In case there's anyone with a bit of spare time coming up, and open to > ideas, I've had a thought for what could be (for some) a very useful > module. > > The idea is to have parts of a node marked-up to be visible only to > certain roles. > > This could be achieved with certain SGML-like markups in the node body. > > For a silly example: > >

Sale! All boots 35% off!

> > >

We've picked up a big consignment of factory seconds from China. > Faults are very minor, but we can't exactly charge full price for > them. Otherwise, they're nice lines, and you should turn them over > no problem. When you order stocks, please quote discount code > #CNS4414

>
> > >

FFS Ian! Get off your butt and fix up those order screens!

>
> > >

Sleep easy, Caitlin, we'll get 'em off your hands. You could > even come out a bit ahead.

>
> > Grab them while they last from your nearest retail outlet, or > order them online here. > > Thoughts? > > Cheers > David > > PS - My PHP is way rusty (switched to Python 5 years ago), and I'm just > starting to learn the Drupal API. Otherwise I'd have a go at it myself. > > > > --===============6414496938854294528== Content-Type: text/html Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="attachment.html" MIME-Version: 1.0 VGhlIENDSy1GaWVsZC1QZXJtaXNzaW9ucyBtb2R1bGUgbGV0cyB5b3Ugc2V0IHRoaXMgYXQgdGhl IGZpZWxkLWNyZWF0aW9uIGxldmVsLCBubyBlbWJlZCBjb2RlIG5lZWRlZC48YnI+PGJyPkl0IGFs c28gbGV0cyB5b3Ugc3BlY2lmeSBWaWV3L0VkaXQvRGVsZXRlIHBlcm1pc3Npb25zIGZvciBlYWNo IGZpZWxkIG9mIGEgbm9kZS48YnI+PGJyPjxhIGhyZWY9Imh0dHA6Ly9kcnVwYWwub3JnL3Byb2pl Y3QvY2NrX2ZpZWxkX3Blcm1zIj4KaHR0cDovL2RydXBhbC5vcmcvcHJvamVjdC9jY2tfZmllbGRf cGVybXM8L2E+PGJyPjxicj4tIEtlbiBSaWNrYXJkPGJyPmFnZW50cmlja2FyZDxicj48YnI+PGRp dj48c3BhbiBjbGFzcz0iZ21haWxfcXVvdGUiPk9uIDcvMTcvMDcsIDxiIGNsYXNzPSJnbWFpbF9z ZW5kZXJuYW1lIj5EYXZpZCBNY05hYjwvYj4gJmx0OzxhIGhyZWY9Im1haWx0bzpyZWJpcnRoQG9y Y29uLm5ldC5ueiI+cmViaXJ0aEBvcmNvbi5uZXQ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cDsmbmJzcDsgZXZlbiBjb21lIG91dCBhIGJpdCBhaGVh ZC4mbHQ7L3AmZ3Q7PGJyPiZuYnNwOyZuYnNwOyZsdDsvcmVzdHJpY3QmZ3Q7PGJyPjxicj4mbmJz cDsmbmJzcDtHcmFiIHRoZW0gd2hpbGUgdGhleSBsYXN0IGZyb20geW91ciBuZWFyZXN0IHJldGFp bCBvdXRsZXQsIG9yCjxicj4mbmJzcDsmbmJzcDsmbHQ7YSBocmVmPSZxdW90O29yZGVyJnF1b3Q7 Jmd0O29yZGVyIHRoZW0gb25saW5lIGhlcmUmbHQ7L2EmZ3Q7Ljxicj48YnI+VGhvdWdodHM/PGJy Pjxicj5DaGVlcnM8YnI+RGF2aWQ8YnI+PGJyPlBTIC0gTXkgUEhQIGlzIHdheSBydXN0eSAoc3dp dGNoZWQgdG8gUHl0aG9uIDUgeWVhcnMgYWdvKSwgYW5kIEkmIzM5O20ganVzdDxicj5zdGFydGlu ZyB0byBsZWFybiB0aGUgRHJ1cGFsIEFQSS4gT3RoZXJ3aXNlIEkmIzM5O2QgaGF2ZSBhIGdvIGF0 IGl0IG15c2VsZi4KPGJyPjxicj48YnI+PGJyPjwvYmxvY2txdW90ZT48L2Rpdj48YnI+Cg== --===============6414496938854294528==-- From douggreen@douggreenconsulting.com Tue Jul 17 23:44:05 2007 From: Doug Green To: development@drupal.org Subject: Re: [development] req: role-specific content in pages Date: Tue, 17 Jul 2007 19:15:36 -0400 Message-ID: <034b01c7c8c8$621387d0$6501a8c0@DOUGLAPHP> In-Reply-To: <25b45da00707171605p4231746fub2c405f195929c5e@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5959103502334013729==" --===============5959103502334013729== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit And the vocabperms module does the same thing for taxonomies. Doug Green 904-583-3342 www.douggreenconsulting.com Bringing Ideas to Life with Software Artistry and Invention... Providing open source software political solutions _____ From: development-bounces@drupal.org [mailto:development-bounces@drupal.org] On Behalf Of Ken Rickard Sent: Tuesday, July 17, 2007 7:05 PM To: development@drupal.org Subject: Re: [development] req: role-specific content in pages The CCK-Field-Permissions module lets you set this at the field-creation level, no embed code needed. It also lets you specify View/Edit/Delete permissions for each field of a node. http://drupal.org/project/cck_field_perms - Ken Rickard agentrickard On 7/17/07, David McNab wrote: Hi Drupal devs, In case there's anyone with a bit of spare time coming up, and open to ideas, I've had a thought for what could be (for some) a very useful module. The idea is to have parts of a node marked-up to be visible only to certain roles. This could be achieved with certain SGML-like markups in the node body. For a silly example:

Sale! All boots 35% off!

We've picked up a big consignment of factory seconds from China. Faults are very minor, but we can't exactly charge full price for them. Otherwise, they're nice lines, and you should turn them over no problem. When you order stocks, please quote discount code #CNS4414

FFS Ian! Get off your butt and fix up those order screens!

Sleep easy, Caitlin, we'll get 'em off your hands. You could even come out a bit ahead.

Grab them while they last from your nearest retail outlet, or order them online here. Thoughts? Cheers David PS - My PHP is way rusty (switched to Python 5 years ago), and I'm just starting to learn the Drupal API. Otherwise I'd have a go at it myself. --===============5959103502334013729== Content-Type: text/html Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="attachment.html" MIME-Version: 1.0 PGh0bWw+Cgo8aGVhZD4KPE1FVEEgSFRUUC1FUVVJVj0iQ29udGVudC1UeXBlIiBDT05URU5UPSJ0 ZXh0L2h0bWw7IGNoYXJzZXQ9dXMtYXNjaWkiPgo8bWV0YSBuYW1lPUdlbmVyYXRvciBjb250ZW50 PSJNaWNyb3NvZnQgV29yZCAxMSAoZmlsdGVyZWQpIj4KCjxzdHlsZT4KPCEtLQogLyogRm9udCBE ZWZpbml0aW9ucyAqLwogQGZvbnQtZmFjZQoJe2ZvbnQtZmFtaWx5OlRhaG9tYTsKCXBhbm9zZS0x OjIgMTEgNiA0IDMgNSA0IDQgMiA0O30KIC8qIFN0eWxlIERlZmluaXRpb25zICovCiBwLk1zb05v cm1hbCwgbGkuTXNvTm9ybWFsLCBkaXYuTXNvTm9ybWFsCgl7bW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KPGJyPgpDaGVlcnM8YnI+CkRhdmlkPGJyPgo8YnI+ClBTIC0gTXkgUEhQIGlz IHdheSBydXN0eSAoc3dpdGNoZWQgdG8gUHl0aG9uIDUgeWVhcnMgYWdvKSwgYW5kIEknbSBqdXN0 PGJyPgpzdGFydGluZyB0byBsZWFybiB0aGUgRHJ1cGFsIEFQSS4gT3RoZXJ3aXNlIEknZCBoYXZl IGEgZ28gYXQgaXQgbXlzZWxmLiA8YnI+Cjxicj4KPGJyPgo8L3NwYW4+PC9mb250PjwvcD4KCjwv ZGl2PgoKPHAgY2xhc3M9TXNvTm9ybWFsPjxmb250IHNpemU9MyBmYWNlPSJUaW1lcyBOZXcgUm9t YW4iPjxzcGFuIHN0eWxlPSdmb250LXNpemU6CjEyLjBwdCc+Jm5ic3A7PC9zcGFuPjwvZm9udD48 L3A+Cgo8L2Rpdj4KCjwvYm9keT4KCjwvaHRtbD4K --===============5959103502334013729==-- From remorse@partners.org Wed Jul 18 13:14:53 2007 From: Richard Morse To: development@drupal.org Subject: Re: [development] req: role-specific content in pages Date: Wed, 18 Jul 2007 09:14:34 -0400 Message-ID: In-Reply-To: <1184713246.5969.45.camel@rebirth> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3630637377132670153==" --===============3630637377132670153== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi! I solved this exact problem a while back: http://drupal.org/project/restricted_text Instead of SGML like entities, it uses bracket-enclosed text. Also note that (as will probably happen with any module that does =20 this) this will adversely affect caching. HTH, Ricky On Jul 17, 2007, at 7:00 PM, David McNab wrote: > Hi Drupal devs, > > In case there's anyone with a bit of spare time coming up, and open to > ideas, I've had a thought for what could be (for some) a very useful > module. > > The idea is to have parts of a node marked-up to be visible only to > certain roles. > > This could be achieved with certain SGML-like markups in the node =20 > body. > > For a silly example: > >

Sale! All boots 35% off!

> > >

We've picked up a big consignment of factory seconds from =20 > China. > Faults are very minor, but we can't exactly charge full price for > them. Otherwise, they're nice lines, and you should turn them over > no problem. When you order stocks, please quote discount code > #CNS4414

>
> > >

FFS Ian! Get off your butt and fix up those order screens!

>
> > >

Sleep easy, Caitlin, we'll get 'em off your hands. You could > even come out a bit ahead.

>
> > Grab them while they last from your nearest retail outlet, or > order them online here. > > Thoughts? > > Cheers > David > > PS - My PHP is way rusty (switched to Python 5 years ago), and I'm =20 > just > starting to learn the Drupal API. Otherwise I'd have a go at it =20 > myself. > > > The information transmitted in this electronic communication is intended only= for the person or entity to whom it is addressed and may contain confidentia= l and/or privileged material. Any review, retransmission, dissemination or ot= her use of or taking of any action in reliance upon this information by perso= ns or entities other than the intended recipient is prohibited. If you receiv= ed this information in error, please contact the Compliance HelpLine at 800-8= 56-1983 and properly dispose of this information. --===============3630637377132670153==-- From rebirth@orcon.net.nz Thu Jul 19 10:50:21 2007 From: David McNab To: development@drupal.org Subject: Re: [development] req: role-specific content in pages Date: Thu, 19 Jul 2007 22:50:12 +1200 Message-ID: <1184842212.5969.108.camel@rebirth> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5479293331600155298==" --===============5479293331600155298== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Wed, 2007-07-18 at 09:14 -0400, Richard Morse wrote: > Hi! I solved this exact problem a while back: >=20 > http://drupal.org/project/restricted_text >=20 > Instead of SGML like entities, it uses bracket-enclosed text. >=20 > Also note that (as will probably happen with any module that does =20 > this) this will adversely affect caching. Hi Ricky, I've installed your module in my Drupal 5.1. I created a page node with: This line should be visible to all [restrict:roles=3Dauthenticated user] This line should be visible only to authenticated users.[/restrict] =20 [restrict:roles=3Dadmin] This line should be visible only to admins.[/restrict] =20 And this is the last line visible to all But when I view it as an anonymous user or ordinary authenticated user, all lines are still visible. Is there anything I'm missing? Cheers David >=20 > HTH, > Ricky >=20 > On Jul 17, 2007, at 7:00 PM, David McNab wrote: >=20 > > Hi Drupal devs, > > > > In case there's anyone with a bit of spare time coming up, and open to > > ideas, I've had a thought for what could be (for some) a very useful > > module. > > > > The idea is to have parts of a node marked-up to be visible only to > > certain roles. > > > > This could be achieved with certain SGML-like markups in the node =20 > > body. > > > > For a silly example: > > > >

Sale! All boots 35% off!

> > > > > >

We've picked up a big consignment of factory seconds from =20 > > China. > > Faults are very minor, but we can't exactly charge full price for > > them. Otherwise, they're nice lines, and you should turn them over > > no problem. When you order stocks, please quote discount code > > #CNS4414

> >
> > > > > >

FFS Ian! Get off your butt and fix up those order screens!

> >
> > > > > >

Sleep easy, Caitlin, we'll get 'em off your hands. You could > > even come out a bit ahead.

> >
> > > > Grab them while they last from your nearest retail outlet, or > > order them online here. > > > > Thoughts? > > > > Cheers > > David > > > > PS - My PHP is way rusty (switched to Python 5 years ago), and I'm =20 > > just > > starting to learn the Drupal API. Otherwise I'd have a go at it =20 > > myself. > > > > > > >=20 >=20 >=20 >=20 >=20 >=20 > The information transmitted in this electronic communication is intended on= ly for the person or entity to whom it is addressed and may contain confident= ial and/or privileged material. Any review, retransmission, dissemination or = other use of or taking of any action in reliance upon this information by per= sons or entities other than the intended recipient is prohibited. If you rece= ived this information in error, please contact the Compliance HelpLine at 800= -856-1983 and properly dispose of this information. >=20 --===============5479293331600155298==-- From freso.dk@gmail.com Thu Jul 19 10:57:31 2007 From: "Frederik 'Freso' S. Olesen" To: development@drupal.org Subject: Re: [development] req: role-specific content in pages Date: Thu, 19 Jul 2007 12:57:20 +0200 Message-ID: <5ac9cdd10707190357j415f91ffw1e6178ccb2a61c64@mail.gmail.com> In-Reply-To: <1184842212.5969.108.camel@rebirth> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5308715961205854714==" --===============5308715961205854714== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 2007/7/19, David McNab : >On Wed, 2007-07-18 at 09:14 -0400, Richard Morse wrote: >>Hi! I solved this exact problem a while back: >> >> http://drupal.org/project/restricted_text >> >>Instead of SGML like entities, it uses bracket-enclosed text. >> >>Also note that (as will probably happen with any module that does >>this) this will adversely affect caching. > >I've installed your module in my Drupal 5.1. >I created a page node with: > > This line should be visible to all > > [restrict:roles=authenticated user] This line should be visible > only to authenticated users.[/restrict] > > [restrict:roles=admin] This line should be visible only to > admins.[/restrict] > > And this is the last line visible to all > >But when I view it as an anonymous user or ordinary authenticated user, >all lines are still visible. > >Is there anything I'm missing? Are you applying content filters properly? Ie., make sure that you have a filter that it includes it on site/admin/settings/filters and that you have chosen that filter for your page node. -- Frederik 'Freso' S. Olesen --===============5308715961205854714==-- From rebirth@orcon.net.nz Thu Jul 19 11:07:36 2007 From: David McNab To: development@drupal.org Subject: Re: [development] req: role-specific content in pages Date: Thu, 19 Jul 2007 23:07:29 +1200 Message-ID: <1184843249.5969.111.camel@rebirth> In-Reply-To: <5ac9cdd10707190357j415f91ffw1e6178ccb2a61c64@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3223081980277877206==" --===============3223081980277877206== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit On Thu, 2007-07-19 at 12:57 +0200, Frederik 'Freso' S. Olesen wrote: > Are you applying content filters properly? Ie., make sure that you > have a filter that it includes it on site/admin/settings/filters and > that you have chosen that filter for your page node. /admin/settings/filters gives me a 404. I've looked all over the admin pages and can't find anything to do with filters. How do I define filters? Is there another module I need to install? Cheers David --===============3223081980277877206==-- From rebirth@orcon.net.nz Thu Jul 19 11:15:50 2007 From: David McNab To: development@drupal.org Subject: Re: [development] req: role-specific content in pages Date: Thu, 19 Jul 2007 23:15:43 +1200 Message-ID: <1184843743.5969.115.camel@rebirth> In-Reply-To: <1184843249.5969.111.camel@rebirth> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0513803400627526749==" --===============0513803400627526749== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit On Thu, 2007-07-19 at 23:07 +1200, David McNab wrote: > On Thu, 2007-07-19 at 12:57 +0200, Frederik 'Freso' S. Olesen wrote: > > Are you applying content filters properly? Ie., make sure that you > > have a filter that it includes it on site/admin/settings/filters and > > that you have chosen that filter for your page node. > > /admin/settings/filters gives me a 404. > > I've looked all over the admin pages and can't find anything to do with > filters. > > How do I define filters? > > Is there another module I need to install? Never mind - some kind soul on #drupal-support pointed me to /admin/settings/filters again. Seems I'd mistyped the URL the first time. Restricted-text module is working great now :) Thanks for your help, folks Cheers David --===============0513803400627526749==--