Premium Content is not working

Events happening in the community are now at Drupal community events on www.drupal.org.
morgannewspaper's picture

I have installed OpenPublish and all has been working well except premium content. When I set content to premium users only the text that says it is only available to premium users appears on the bottom of the page, but the page still displays. The non premium user sees the full article or page and at the bottom it has the message saying that this content is only available to premium users. Can you tell me how I stop the content from displaying and only have the restriction message show?

Comments

Can you provide some

irakli's picture

Can you provide some screenshots, please?

.............................................
http://twitter.com/inadarei

Premium Content

morgannewspaper's picture

I don't see a way to attach screen shots, can you tell me where I post them?

Don

you can put them in your

resveld's picture

you can put them in your sites root and make a link here

-Ronald

Pages that show the error

morgannewspaper's picture

Here is a link to the page itself. It keeps telling me my submission has triggered the spam filter when I put in a link, so I will describe the page path.

The website is themorgancountynews.org

if you put the path of /content/digital-newspaper-edititions on to the end of the website it will show the first page.

Add the following to the path for the second page:

/content/morgan-county-news-sept-3-2010

Don

What do you mean by "non

irakli's picture

What do you mean by "non premium user sees"? Logged out users see premium pages?

.............................................
http://twitter.com/inadarei

Everyone can see premium content

morgannewspaper's picture

In the permissions section there is the option to select which roles see premium content. I have unchecked that from authenticated users and created a new role called subscribers.

Every user can see the premium content, however, even those who are not logged in.

If I log in with a user that has the access to premium content I see the content flagged as premium and don't see the message that this content is restricted to premium users.

If I am either not logged in, or logged in with a user who does not have the permission flagged check to allow access to premium content then I still see the content flagged as premium, but I also see the message below the premium content that says that this content is only available to premium users (in my case subscribers).

Don

And - you can see content in

irakli's picture

And - you can see content in a content listing (a view) or on content detail page (e.g. Article page)?

.............................................
http://twitter.com/inadarei

Don, Please take a look @

resveld's picture

Don,

Please take a look @ http://drupal.org/node/642392 there are multiple patches in it for what you want :)
Also, if that doesn't work, you can check out http://drupal.org/project/nopremium

-Ronald

a bug ?

chrysonline's picture

Hi,

Premium content option runs on OP 2.2.

But i think there is a bug :

When i select and check 'on' "Access restricted for non-premium users" in the publish option in an article (and i save it), the access content is restricted for non-authenticated users (ok ! it runs !) but..... the ckeckin option disappears ('off') .... very strange !

Each time i want to modify article content, i must manually check again the "Access restricted for non-premium users" option i a want to run it with success.

any idea ?

I'm seeing the same behavior with OP 2.2

crotown's picture

The way I would describe it is that the check box is never checked when you edit an Article (even if you tried to check it before) but always acts as if it is checked when one views the Article. In fact, the workaround to let anonymous users see all Articles that I found is to grant them "access premium content" permission.

I agree that this is a bug.

Getting the same thing in

ndwilliams3's picture

Getting the same thing in 2.3. When checked the value is saved to the db, but is not loaded as the default value when editing the node. So if saved without rechecking, premium is turned off. Definitely a bug. Looks like the Premium module has not had a commit in two years, but a fork has been created here http://drupal.org/node/51483#comment-4165850. Is this issue going to be fixed anytime soon? It has been over six months since the issue was reported. I am tempted to replace with the fork version, but I hate messing with the default modules in a distro. What direction is Openpublish taking in regards to this modules as it appears to be abandoned?

Found the problem. It is

ndwilliams3's picture

Found the problem. It is caused by the premium_default_off.module included in the distro. Once deactivated, the option saves correctly. Looks like it overrides the saved value instead of just the default value.

OpenPublish

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: