mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 12:48:24 +01:00
NEWSLETTER userclass added to default installation. Set Admin > Preferences > Signup Page Options > Subscribe to content/mailouts to "Display" or "Required" to enable it during user signup.
This commit is contained in:
parent
815b3d3c34
commit
5228543d32
@ -346,10 +346,9 @@ class signup_shortcodes extends e_shortcode
|
||||
}
|
||||
|
||||
|
||||
function sc_signup_userclass_subscribe()
|
||||
public function sc_signup_userclass_subscribe()
|
||||
{
|
||||
$pref = e107::pref('core');
|
||||
// global $pref, $USERCLASS_SUBSCRIBE_START, $USERCLASS_SUBSCRIBE_END, $signupData;
|
||||
|
||||
if(empty($pref['signup_option_class']))
|
||||
{
|
||||
@ -362,7 +361,6 @@ class signup_shortcodes extends e_shortcode
|
||||
|
||||
if(empty($ucList)) return false;
|
||||
|
||||
|
||||
$text = '';
|
||||
foreach($ucList as $classNum)
|
||||
{
|
||||
@ -370,14 +368,10 @@ class signup_shortcodes extends e_shortcode
|
||||
}
|
||||
|
||||
return $text;
|
||||
|
||||
|
||||
|
||||
// return $uc->vetted_tree('class', array($this,'show_signup_class'), varset($signupData['user_class'],''),'editable, no-excludes');
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
private function show_signup_class( $classnum, $current_value='', $nest_level=0)
|
||||
{
|
||||
$tp = e107::getParser();
|
||||
|
@ -1210,6 +1210,18 @@ City, State, Country
|
||||
<field name="userclass_icon"></field>
|
||||
<field name="userclass_perms"></field>
|
||||
</item>
|
||||
<item>
|
||||
<field name="userclass_id">3</field>
|
||||
<field name="userclass_name">NEWSLETTER</field>
|
||||
<field name="userclass_description">Subscribe to Newsletter</field>
|
||||
<field name="userclass_editclass">0</field>
|
||||
<field name="userclass_parent">255</field>
|
||||
<field name="userclass_accum">3</field>
|
||||
<field name="userclass_visibility">0</field>
|
||||
<field name="userclass_type">0</field>
|
||||
<field name="userclass_icon"></field>
|
||||
<field name="userclass_perms"></field>
|
||||
</item>
|
||||
<item>
|
||||
<field name="userclass_id">253</field>
|
||||
<field name="userclass_name">Members</field>
|
||||
|
Loading…
x
Reference in New Issue
Block a user