Formatting content of articles in subscriptions

  • Sylwester Badelek
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 4 months ago - 5 years 4 months ago #133629 by Sylwester Badelek
Formatting content of articles in subscriptions was created by Sylwester Badelek
Is it possible to insert plans for each article? Some content would be less visible and plans below. Can you do something like this with css styles? Is there any plugin that would make this happen?
Last edit: 5 years 4 months ago by Sylwester Badelek.

Please Log in or Create an account to join the conversation.

More
5 years 4 months ago #133644 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Formatting content of articles in subscriptions
Hello

The system has a plugin to display plans in a Joomla article, see membershipprodoc.joomservices.com/plugin...ent-membership-plans

Could you please try to see if it helps answering your question

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • Sylwester Badelek
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 4 months ago #133679 by Sylwester Badelek
Replied by Sylwester Badelek on topic Formatting content of articles in subscriptions
1. Can a plan attached to an article have a plan layout, colors, css style different from all plans? I would like it to look similar to the screenshot above. Is it possible to blur the end of the text in the introduction of the article and the word counter up to the subscription plan?
2. Is there any way to automatically plug the plan to all articles above read more >> ?

Please Log in or Create an account to join the conversation.

More
5 years 4 months ago #133687 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Formatting content of articles in subscriptions
Hi

1. Unfortunately, we do not support different style for different plan. All plan has same style

2. It's not possible, unfortunately. How the system know which plans should be shown on the article? You will need to follow instructions at membershipprodoc.joomservices.com/plugin...ent-membership-plans to insert the plan to the article manually

Tuan

Please Log in or Create an account to join the conversation.

  • Sylwester Badelek
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 4 months ago - 5 years 4 months ago #133695 by Sylwester Badelek
Replied by Sylwester Badelek on topic Formatting content of articles in subscriptions
OK.
I set up the plugin and added a plan to the article. Can you make this plugin invisible when browsing the plan and logging in? At the moment, if I am logged in with the purchased plan, I can see the published plan in the article, even if I bought the plans or if I am logged in as an administrator.
If someone has already bought the plan and is logged in, it is not needed and introduces additional confusion in the article.
Last edit: 5 years 4 months ago by Sylwester Badelek.

Please Log in or Create an account to join the conversation.

More
5 years 4 months ago #133710 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Formatting content of articles in subscriptions
Hello

Maybe you can try to setup this using this method membershipprodoc.joomservices.com/resour...s-to-part-of-article

Quote from section #3:

Use this syntax {mprestriction ids="!1"}The text you want to hide must be inserted between here{/mprestriction} to restrict access to the article to subscribers of the plan you want. Below is the explanation of the syntax:
ids="!1" mean users will see the text if he has not subscribed for the plan with ID = 1.
ids="!1,2,3" mean users will see the text if has has not subscribed for any of these plans (ID = 1 or = 2 or =3)
ids="!*" mean users will see the text if they has not subscribed for any plans in your system


Basically, you can show some text if the current user is not subscribed for a plan (using ! operator)

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • Sylwester Badelek
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 4 months ago #133714 by Sylwester Badelek
Replied by Sylwester Badelek on topic Formatting content of articles in subscriptions
Will it work if I want to plug in this code with the module?

Please Log in or Create an account to join the conversation.

More
5 years 4 months ago #133720 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Formatting content of articles in subscriptions
What module you are talking about? I think you just use it directly on the article

Tuan

Please Log in or Create an account to join the conversation.

  • Sylwester Badelek
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 4 months ago #133723 by Sylwester Badelek
Replied by Sylwester Badelek on topic Formatting content of articles in subscriptions
Is it possible to connect this code with my own module with this code? Will it only work inserted directly into the article? Would it also be possible to insert such code in the space between the articles in the template? I would like to get the effect that the not loged user would always have access to the choice of subscription plan wherever he is. I do not know if I have explained quite clearly what is going on and it is understandable?

Please Log in or Create an account to join the conversation.

More
5 years 4 months ago #133743 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Formatting content of articles in subscriptions
It's not understandable, sorry. What's your own module, please? Do you develop a custom module yourself?

What I described above can be done with article (or Joomla custom HTML modules). If you want something different, then I'm afraid of the instructions is not correct

Tuan

Please Log in or Create an account to join the conversation.