Posted by CraftyDevon on December 8, 2009 at 7:50am
Hello All,
While I believe I have found the solution to my payment problem I posted about a few days ago, my next issue is this.
Allowing visitors to see partial content on a news site that is subscription based is usually a good thing. Visitors can preview the quality of the content, and perhaps there's that story they just have to know the ending to. But, you don't want those visitors full access to the content, now do you?
In essence, I am looking for a solution that will show visitors a "teaser" and subscribers the full article.
Anyone know of a solution that would be viable to be used on a daily basis without going through a large ordeal?
Thanks
Devon
Comments
This module should cover
This module should cover you:
http://drupal.org/project/premium
But d6 version is still dev although this post suggests it's stable:
http://drupal.org/node/645984
Is that the kind of thing you're looking for?
You can create (or update)
You can create (or update) the node-xxx.tpl.php for that. Use this kind of condition:
<?php if (in_array('the name of the role who can only see the teaser text',$user->roles)): ?>...
<?print $node->teaser;?>
...
<?php else: ?>
...
<?php endif; ?>
Julien Didelet
Founder
Weblaa.com
Thanks
Freatida, I believe it is, I'll begin looking it over!
Jdidlet, could you go into a bit more detail? i.e.-where would I find that file? (Slightly noobish)
Thanks!
Devon
You can find this file inside
You can find this file inside your theme repository (sites/all/themes/the-name-of-your-theme, e.g if you choose zen starter theme, the path will be sites/all/themes/zen). Of course it's depend of what kind of theme you choose). Usually, you copy/paste the node.tpl.php and rename this file like that: node-xxx.tpl.php (replace xxx per the name of your content type).
Cheers!
Julien Didelet
Founder
Weblaa.com
How do I place a patch?
So the Premium Module will fit my needs! Another user created a Patch which fits my needs, but one thing.....how do I do the patch?
Do I simply copy and paste the text in the patch located here somewhere in the module files? http://drupal.org/files/issues/premium-new_features1.patch
Thanks
Devon
hmmm, code alter
Actually, the code alteration may be more simple and viable in the long run.
Is there anything else I need to add to that Julien?
So I'll be creating a new file? With just that code, or will I simply edit the existing?
J1.copy file
2.altar code and file name
3.done?
Back to my corner,
Devon