Hello All,
My project with O.P involves providing paid content. In essence, visitors can see only content teasers, while subscribers have access to full stories, forums, etc. As of now, UberCart is looking like the tool of choice for processing subscriptions. This is the workflow...
-User Registers
-After verification, one new menu item is available -"confirm subscription". Their verification email also includes a link to this page.
-The user goes through the checkout process, where they are buying a "role".
-Once payment is complete, the user is granted the "Subscriber" role.
The one thing I'm still working on is that I would like for visitors to only see the "teaser" content, and I would like for subscribers to see the full content of the site. Is there any way to achieve this? Something that will be easy to do over and over due to the fact that new content will be added constantly would be preferred.
Would anyone be interested in a write-up once this system is complete? I could most likely provide one...
Thanks
Devon
Comments
Thanks for the heads-up. We
Thanks for the heads-up.
We are planning a feature like that for 1.7 release of OP. We've been playing around with: http://drupal.org/project/premium
Have you tried that module? What's your feedback?
Thank you
.............................................
http://twitter.com/inadarei
Premium is role based.
Since Premium is role based you can use UberCart to purchase a role, thus providing access to that content. It's a great use-case and I would love to see a writeup (or even a contributed feature to OP!).
Thanks Devon.
Premium
Yes, the Premium module was what I was looking at as well, and there seems to be a Patch for it that was contributed that adds even more functionality (if someone would be willing to place the patch inside the module for the group and post it here I'd be most appreciative, as I have no idea.).
My largest issue with the premium module is that it's no longer being developed. Perhaps someone who is savvy with module programming (unlike myself) could contact the owner and get permission to maintain it.
I believe that in all honesty, this feature should be a CKK Module. It'd be great to have a list below each content field to choose which role could view it.
When I move from the Sandbox, to the actual site build I will provide a write-up for the access levels and subscription management.
Good topic, lots of potential, let's get some more ideas rolling.
Devon.
Using node-article.tpl.php
Hi,
We tried Premium module and don't like that it only works on the body of the node (article). In our case we also need to hide links to PDF of the article as well as to show custom teaser to anonymous users. So we ended up with customizing node-article.tpl.php in the "\sites\all\themes\openpublish_theme\node" folder. There are some good articles on the node template customization, e.g. http://data.agaric.com/node/1261. Hope this post will be in help. If there are any security concerns (the other ways to get to the content bypassing node template) with this approach please raise them.
Thanks,
Gennady
This is the code that was added to node-article.tpl.php:
<?php//if registered show build content - $body (body only field: $node->content['body']['#value'])
//if anonymous show abstract, pages and abstract link to the store/PDF
global $user;
if ($user->uid){
print $body;
} else {
print $field_teaser[0]['view']; //abstract
if (false && $field_page_numbers[0]['view']): //page numbers only if not empty?>
<div class="field field-type-text field-field-page-numbers">
<div class="field-label">Page numbers: </div>
<div class="field-items">
<div class="field-item odd">
<?php print $field_page_numbers[0]['view'];?></div></div>
</div>
<?php endif;
//abstract link ?>
<div class="field field-type-link field-field-pdf-link">
<div class="field-label">Article links: </div>
<div class="field-items">
<div class="field-item odd"><?php print $field_teaser_link[0]['view']; ?></div>
</div>
</div>
<?php
} ?>
Let Google and other spiders see?
I love the idea of premium content sites, I haven't been able to figure out an effective way for the full node to be seen by spiders, while restricting premium access to only those who pay for it. Yes, I was the kid who wanted his cake and to eat it too.
http://twitter.com/andrewtberman