Where can I edit this alert notification?

  • adie2014
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 7 months ago - 10 years 7 months ago #44770 by adie2014
Hi,

1. May I know where can I edit this alert notification? (see Capture.png)
"You haven't subscribed for any subscriptiption plan yet, so you could not access this page"

Note: there is a typo error.

2. The above error occurs when the user (who already become the joomla/cb member but not yet subscribe to any membership plan) wants to go to MP User Profile. The above notification, however, only appears on the web front page (index.php). Question: How can I make this notification appear in the Subscription Plan list?
Note: The notification for Question 3 below appeared is the Subscription Plan list as what has been setup in the OS Membership URLs Restriction plugin.

3. How about this notification? Where I can edit this? (see Capture2.png)

Thanks in advance for your help.

Regards,
adie
Attachments:
Last edit: 10 years 7 months ago by adie2014.

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
10 years 7 months ago #44805 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Where can I edit this alert notification?
Hi

1. For the typo in capture.png. you can go to Membership Pro -> Translation, find the text and change it.

2. For the issue in capture2.png, you will need to edit the language file to change it. The language file is located at administrator\language\en-GB\en-GB.plg_osmembershipurls.ini

Regards,

Tuan

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
10 years 7 months ago #44806 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Where can I edit this alert notification?
For changing the redirect url, you will need to change it by editing the code. Open the file components/com_osmembership/views/profile/view.html.php, find the code below:
Code:
if (!$item) { JFactory::getApplication()->redirect('index.php', JText::_('OSM_DONOT_HAVE_SUBSCRIPTION_RECORD')); }

2. Change it to:

if (!$item)
{
JFactory::getApplication()->redirect(' theurloftheplanspage.com ', JText::_('OSM_DONOT_HAVE_SUBSCRIPTION_RECORD'));
}

After that, it should work as expected.

Regards,

Tuan

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