Suspected Bug: Membership Pro Articles Restriction

  • hide10
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
4 months 1 week ago #168232 by hide10
Hello,

I am currently rebuilding an existing site using Membership Pro version 3.6.2 on Joomla 5.1.2. I have started to suspect that the Restrictions may not be working as expected and could be a bug. If there are any issues or oversights with my settings, please let me know.

Joomla: Articles: Options  
I have set Unauthorised Links to Yes.

System - Membership Pro Articles Restriction  
I have enabled this plugin with the following settings:  
Redirect URL: index.php?option=com_osmembership&view=plans&layout=pricingtable&id=4  
Protection Method: Prevent Access to Article Detail Page  
Other settings: Default

Plan Manager  
In the Articles Restriction Settings tab of the relevant plan, I specified the target category in the Categories field.

When accessing an intro article in the target category from the frontend while logged out, the "Register to read more …" button (COM_CONTENT_REGISTER_TO_READ_MORE) is displayed. However, the link for this button goes to Joomla’s "/login?return=" instead of the specified "Redirect URL."  
When I change the Protection Method to "Hide fulltext from non-subscribers," the "Register to read more …" button shows the content of Message Manager: content_restricted_message, so I believe the plugin itself is functioning correctly.

I understand that when the Protection Method is set to "Prevent Access to Article Detail Page," the Redirect URL should be used as the link for the "Register to read more …" button. Is my understanding correct? If so, it seems that the plugin might not be working as expected, so could you please check this?

Also, please note that the following document may be outdated:  
Restrict access to Joomla articles  
docs.joomdonation.com/membershippro/reso...s-to-joomla-articles


Thanks

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

  • hide10
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
4 months 1 week ago #168261 by hide10
Hello,

I first want to determine whether the cause of my issue is related to a problem with my configuration, an issue with my expectations, or a potential bug on the plugin side.

Thanks

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

More
4 months 1 week ago #168266 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Suspected Bug: Membership Pro Articles Restriction
For this, I guess I need to check it directly on your site. So please submit a support ticket sending us super user account of your site and tell us step by step what we need to do to see the error

We are going to check to see why the issue happens and get it sorted

Regards,

Tuan

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

  • hide10
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
4 months 1 week ago #168280 by hide10
Thank you for your kind offer.
After considering and testing my task, I realized that the design concept of the script and plugin I had envisioned differs from what I had initially thought. While the design concept and behavior of the plugin can be considered practical, they do not align with the original behavior of my site's design, so I plan to revisit and revise my site's design.

Thanks

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

More
4 months 1 week ago #168283 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Suspected Bug: Membership Pro Articles Restriction
OK. Thanks for the update

Tuan

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

  • hide10
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
4 months 3 days ago #168376 by hide10
I am concerned about the output of the Protection Method in Articles Restriction.
When displaying the article list in blog format and selecting "Prevent Access to Article Detail Page," the readmore button appears outside of the <div class="item-intro">. However, when "Hide fulltext from none subscribers" is selected, the content output by content_restricted_message appears inside the <div class="item-intro">.

Currently, I am using "Hide fulltext from none subscribers," and for easier customization through CSS, I would like to have the output displayed outside of the <div class="item-intro">.
How can I achieve this? Is overriding possible?

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

  • hide10
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
4 months 2 days ago - 3 months 4 weeks ago #168392 by hide10
I will provide additional explanation. I am using the Menu Item Type: List All Categories in an Article Category Tree in Joomla's menu management to display articles in a blog layout within an article category.

The introduction text of each article is currently displayed with the following structure:
Code:
<div class="item-intro"> Intro text     <div class="text-info">     Content generated by content_restricted_message     </div> </div>


I would like to change this to the following structure:
Code:
<div class="item-intro"> Intro text </div> <div class="text-info"> Content generated by content_restricted_message </div>


I have checked the files stored in plugins/system/osmembershiparticles/tmpl, but I only found <p class="text-info"> instead of <div class="text-info">.
That is why I posted this question.

Repost as a new entry in the following thread:
joomdonation.com/forum/membership-pro-ge...mization.html#168424
Last edit: 3 months 4 weeks ago by hide10.

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