Skip to content

Commit addf8b7

Browse files
committed
v1.4 release
1 parent d1e41b1 commit addf8b7

5 files changed

Lines changed: 482 additions & 222 deletions

File tree

en-GB.mod_registerlogin.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,7 @@ MOD_REGISTERLOGIN_LABEL_LINK="Link"
9797
MOD_REGISTERLOGIN_OPENINTHESAMEWINDOW="Open in the same window"
9898
MOD_REGISTERLOGIN_OPENINTHENEWWINDOW="Open in the new window"
9999
MOD_REGISTERLOGIN_OPENINMODEL = "Open in Modal/Popup"
100+
MOD_REGISTERLOGIN_CHOOSELAYOUT = "Select a Layout"
101+
MOD_REGISTERLOGIN_CHOOSELAYOUT_DES = "Select a Layout"
102+
MOD_REGISTERLOGIN_CHOOSELAYOUT_VALUE = "Radio Buttons"
103+
MOD_REGISTERLOGIN_CHOOSELAYOUT_VALUE1 = "Tabs"

helper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -626,10 +626,10 @@ public static function getReturnUrl($params, $type)
626626
$lang = '&lang=' . $item->language;
627627
}
628628

629-
$url = 'index.php?Itemid=' . $item->id . $lang;
629+
$url = JRoute::_('index.php?Itemid=' . $item->id . $lang);
630630
}
631631

632-
return $url;
632+
return str_replace('&','&', $url);
633633
}
634634

635635

mod_registerlogin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646

4747
$app->enqueueMessage($messge, 'Success');
4848
if($params->get('login')){
49-
$app->redirect(JURI::Root().$return);
49+
$app->redirect($return);
5050
}else{
5151
$app->redirect(JURI::current());
5252
}
@@ -60,7 +60,7 @@
6060
$loginResponse = modRegisterLoginHelper::getUserlogin($params);
6161
if(!$loginResponse['error']){
6262
if($params->get('login')){
63-
$app->redirect(JURI::Root().$return);
63+
$app->redirect($return);
6464
}else{
6565
$app->redirect(JURI::current());
6666
}

mod_registerlogin.xml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
method="upgrade">
77
<name>Register Login</name>
88
<author>JoomDev</author>
9-
<creationDate>Feb 9th, 2018</creationDate>
9+
<creationDate>Feb 27, 2019</creationDate>
1010
<copyright>All rights reserved.</copyright>
1111
<license>http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL</license>
1212
<authorEmail>info@joomdev.com</authorEmail>
1313
<authorUrl>www.joomDev.com</authorUrl>
14-
<version>1.3</version>
14+
<version>1.4</version>
1515
<description>
1616
<![CDATA[<div style="font-size:16px; font-weight:bold; color:black; text-align:left; margin:0px; padding:0px 5px;"><h3>Register Login By JoomDev</h3></div>
1717
<div style="font-weight:normal; border-bottom:1px solid #f0dc7e;display:block; padding-bottom:5px; margin:5px; background-color:#fff;"></div>
@@ -59,6 +59,20 @@
5959
<option
6060
value="2">MOD_REGISTERLOGIN_PARAM_DEFAULTVIEW_REGISTER</option>
6161
</field>
62+
63+
<field
64+
name="view1"
65+
type="list"
66+
default="1"
67+
label="MOD_REGISTERLOGIN_CHOOSELAYOUT"
68+
description="MOD_REGISTERLOGIN_CHOOSELAYOUT_DES">
69+
<option
70+
value="1">MOD_REGISTERLOGIN_CHOOSELAYOUT_VALUE</option>
71+
<option
72+
value="2">MOD_REGISTERLOGIN_CHOOSELAYOUT_VALUE1</option>
73+
74+
</field>
75+
6276
<field
6377
name="useractivation"
6478
type="list"
@@ -76,7 +90,6 @@
7690
name="ajax_registration"
7791
type="radio"
7892
class="btn-group btn-group-yesno"
79-
default="1"
8093
label="MOD_REGISTERLOGIN_AJAX_REGISTRATION"
8194
description="MOD_REGISTERLOGIN_AJAX_REGISTRATION_DESCRIPTION">
8295
<option value="1">JYES</option>

0 commit comments

Comments
 (0)