Hi there,
I have created a patch to enable the admin to show an optional message "Log in or register to subscribe" on the full view of nodes of allowed content types.

It includes an own boolean setting in the admin settings form for disabling the rendering of the message. Default value is OFF, hence no running systems might be interrupted when the setting is released.

See the attached patch file.

Kind regards,
Eike

Comments

Anonymous’s picture

ehj-52n created an issue. See original summary.

Anonymous’s picture

Anonymous’s picture

Title: Add optional "Login or register to subscribe" message » Add optional "Log in or register to subscribe" message
Issue summary: View changes

Status: Needs review » Needs work
Anonymous’s picture

The previous patch contained an error.

Sorry for any inconvenience.

salvis’s picture

Version: 7.x-1.1 » 7.x-1.x-dev
Status: Needs work » Needs review

Status: Needs review » Needs work
voj’s picture

@ehj-52n your patch contains new lines and tabs with unknown character "[1m" and "[m"

Anonymous’s picture

@voj:

Yes, I saw them but the patch was created following the instructions for patch creation of drupal.org, hence I thought that they are correct.

Do you need a new one?

salvis’s picture

Status: Needs work » Closed (won't fix)

Have you even looked at your patch in the browser? It's full of weird terminal escape sequences. These are probably inserted by your editor and may not even be visible to you in your editor, but they are definitely not acceptable.

The fact that the testbot says "Needs Work" in #7 means that the patch needs work — in other words, yes, we would need a new one.

However, the permission to subscribe is often tied to some roles and not available to all authenticated users, so this is a site-specific edge case and not really of general interest. It should be implemented as a local module.