By Steel Rat on
I've been searching around the forums, but not finding anything which covers what I'd like to do.
Which is:
I'm setting up a site which will consist of registered users and subscribed (paying) members. I'd like everyone except subscribed members to only see the teaser of a set of nodes, but sub members can see the whole node.
Anyone know of a module, or even PHP snippet I can put into node.tpl.
Thanks!
Steel Rat
Comments
try this - might work
Add the following code somewhere in node.tpl.php:
Then add a check for $allowed to the $teaser check like this:
Haven't tried this out, but it seems to me that it should work. You will need to ensure that your node has a teaser, or nothing will print out for the non paying users.
______________________________________________________________________________________________________
Need help? Check the FAQ and the Handbooks first.
______________________________________________________________________________________________________
Thanks, That looks like it
Thanks,
That looks like it might work.
I'm wondering if this will also work with Book nodes. Meaning non-sucscribers won't be able to see subsequent book pages.
Steel Rat
Drupal Site: RPGMapShare.com
It should
I think that it should as node.tpl.php governs all nodes, independent of type - unless you specifically add code into it, or use node-specific tpl.php files.
______________________________________________________________________________________________________
Need help? Check the FAQ and the Handbooks first.
______________________________________________________________________________________________________
have tried this - adding
have tried this - adding both snippetts to node.tpl.php - doesnt seem to work. Am I missing something?