[SOLVED] Excluding an article from protection dynamically

12 years 8 months ago - 12 years 8 months ago #175058 by tbream
CBSubs has a really nice feature where if an article contains the following string:

<!-- !CBPAIDaccessCheck -->

it will be excluded from protection.

What we're trying to figure out is if by using a custom function call that we'd develop, could we cause this same behavior to occur dynamically.

The user experience scenario would be like this.

1. We send a special email where the recipients include individuals who are not yet current subscribers. We include in that email a special custom link that targets a function we'd develop that ultimately calls a specific protected article URL.

2. Our function dynamically inserts the '<!-- !CBPAIDaccessCheck -->' string in the article in a way that is ahead of the CBSubs function check if it is there.

There is of course more to this than what I've articulated, but the basic premise if of course to find a way in select cases to dynamically insert this string in special circumstances.

Any thoughts or guidance would be appreciated.

Ted Bream

Please Log in to join the conversation.

12 years 8 months ago #175061 by beat
With a joomla system plugin reacting to content triggers (and ordered before cbpaidsubsbot), you could alter the article by appending that string.

That way you could achieve easily what you wish. :)

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

Please Log in to join the conversation.

12 years 8 months ago #175069 by tbream
That is a simple solution.

Thanks Beat.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.235 seconds

Facebook Twitter LinkedIn