-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed a couple instances where $list->value was used. There is no value field in $list returned by function getLists(). Changed this to name.
- Loading branch information
Showing
2 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<?php | ||
/** | ||
Name: CB Mailster Subscriptions | ||
Version: 1.1, native for Joomla 4 | ||
Date: March 2023 | ||
Version: 1.2, native for Joomla 4 | ||
Date: April 2023 | ||
Author: Bruce Scherzinger | ||
Email: [email protected] | ||
URL: http://joomla.org | ||
|
@@ -228,7 +228,7 @@ function afterNewUser($user, $cbUser, $stored = false, $something = true) | |
{ | ||
/* Add the subscription */ | ||
$result = $this->SubscribeAddress($user->email, $list->group_id, $user->name); | ||
$message .= str_replace(array('[LIST]','[EMAIL]'),array($list->value,$user->email),$params->get('autosubscribe_email_msg',DEFAULT_AUTOSUBSCRIBE_MSG)); | ||
$message .= str_replace(array('[LIST]','[EMAIL]'),array($list->name,$user->email),$params->get('autosubscribe_email_msg',DEFAULT_AUTOSUBSCRIBE_MSG)); | ||
$number++; | ||
} | ||
} | ||
|
@@ -846,7 +846,7 @@ function UpdateSubscriptions ($user, &$message) | |
} | ||
} | ||
// Replace notice message placeholders | ||
$message = str_replace(array('[LIST]','[EMAIL]'),array($list->value,$user->email),$message); | ||
$message = str_replace(array('[LIST]','[EMAIL]'),array($list->name,$user->email),$message); | ||
} | ||
elseif ($field->type == 'multicheckbox' || $field->type == 'codemulticheckbox' || $field->type == 'querymulticheckbox' || | ||
$field->type == 'multiselect' || $field->type == 'codemultiselect' || $field->type == 'querymultiselect') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,10 +8,10 @@ | |
<authorEmail>[email protected]</authorEmail> | ||
<authorUrl>https://github.com/bascherz/Mailster-Subscriptions-CB-Plugin</authorUrl> | ||
<version>2.0</version> | ||
<release>1.1</release> | ||
<release>1.2</release> | ||
<description> | ||
<![CDATA[ | ||
<h3>Mailster Subscriptions Community Builder Plug-In v1.1</h3> | ||
<h3>Mailster Subscriptions Community Builder Plug-In v1.2</h3> | ||
<address>© Bruce Scherzinger</address> | ||
<p>Allows users to subscribe/unsubscribe to Mailster mailing lists from their CB profiles.</p> | ||
<p>Special tags you can insert into email notice message fragments are as follows:</p> | ||
|