Joomla Benutzer vs. JoomShopping Benutzer

07.03.2011 09:39
#1
notfall
Joomshopping forum user no avatar
Name: Patient
04.03.2011
Posts: 59
Quote
Joomla Benutzer vs. JoomShopping Benutzer

Was ist der Unterschied zwischen Joomla Benutzer und JoomShopping Benutzer?

Wir haben nun den Joomla Login im Hauptmenu entfernt und nur noch das Kundenlogin zu den Usern im JoomShopping im Hauptmenu gelassen. Inwieweit gibt es einen Unterschied beim Einloggen? Wo muss man sich als Kunde einloggen und wo muss man sich als Besucher einloggen? Macht es einen Unterschied beim Schreiben von Kommentaren?


Joomla: 1.6
JoomShopping: 3.0
PHP: 5.2
MySQL: 5
Website Url: watches-germany.com
 
07.03.2011 16:12
#2
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16480
Quote
Aw: Joomla Benutzer vs. JoomShopping Benutzer

Use joomshopping login, register...

 
19.03.2011 14:52
#3
NogNeetMachinaal
Joomshopping forum user no avatar
Name: Will Moonen
18.03.2011
Posts: 10
Quote
Aw: Joomla Benutzer vs. JoomShopping Benutzer

Ok - clear.

Is there a way to use captcha of somesort?
Because without it, anyone can register.


Regards,
Will Moonen

 
19.03.2011 20:30
#4
Onofrei
Joomshopping forum user no avatar
Name: Mihai-Codrut
06.03.2011
Posts: 55
Quote
Aw: Joomla Benutzer vs. JoomShopping Benutzer

NogNeetMachinaal - 19.03.2011 14:52
Ok - clear.

Is there a way to use captcha of somesort?
Because without it, anyone can register.

Regards,
Will Moonen


I tested with success JoomlaXi Captcha but now I use CoreDesign Captcha Plugin on a site built with JoomShopping.
I may provide you the JoomShopping extension I wrote for CDCaptcha plugin or I will write to JoomShopping support team to put it on their download page.
Actually, if you opt for JoomlaXi no modification is needed. If you want to use CDCaptcha you have to complete the following steps:
1 - edit plugins/system/cdcaptcha.xml and insert:

<param name="enabled_for_com_jshopping" type="list" default="0" label="LABEL_ENABLED_FOR_COM_JSHOPPING" description="DESC_ENABLED_FOR_COM_JSHOPPING">
<option value="0">PARAM_ENABLED_FOR_COM_JSHOPPING_NO</option>
<option value="1">PARAM_ENABLED_FOR_COM_JSHOPPING_YES</option>
</param>

(let's say after COM_ZOO param)

2 - go to plugins/system/cdcaptcha/extension/site and create a new file - cdcaptcha_com_jshopping.php. Then edit it and insert:

<?php
defined('_JEXEC') or die('Restricted access');
class cdcaptcha_com_jshopping {
var $enabled = 0;
var $redirect = '';
var $rememberFields = 1;
var $isAjax = 0;

/**
* Get Instance
*
* @return instance
*/
function &getInstance() {
static $instance;
if ($instance == null) $instance = new cdcaptcha_com_jshopping();
return $instance;
}

/**
* Form object
*
* @return object Form element.
*/

function formObject() {
$formObject = new stdClass();
$view = JRequest::getCmd('task', '', 'get');
// login form
switch($view) {
case 'login':
$formObject->formElement = 'form[name="jlogin"]';
break;

case 'register':
$formObject->formElement = 'form[name="loginForm"]';
break;

case 'step2':
$formObject->formElement = 'form[name="loginForm"]';
break;

default:
break;
}

return $formObject;
}

/**
* Check captcha if required
*
* @return boolean True if captcha is checked.
*/

function checkCaptchaRules() {
$post_task = JRequest::getCmd('task', '', 'post');
switch($post_task) {
case 'loginsave':
if (JRequest::getCmd('task', '', 'get') === 'loginsave') {
return true;
}
break;
case 'step2save':
$this->redirect = 'index.php?option=com_jshopping&view=&task=step2save';
return true;
break;
case 'registersave':
$this->redirect = 'index.php?option=com_jshopping&view=&task=registersave';
return true;
default:
break;
}

return false;
}

}

?>

That's it, enjoy!


Letzte Ă„nderung: 19.03.2011 21:54
 
23.03.2011 22:42
#5
NogNeetMachinaal
Joomshopping forum user no avatar
Name: Will Moonen
18.03.2011
Posts: 10
Quote
Aw: Joomla Benutzer vs. JoomShopping Benutzer

Thanks for the detailed instructions.
Indeed - I would like to use CD-Captcha.
I will try the suggested code.

Grtz - Will

 
28.03.2011 17:51
#6
brunoandre
Joomshopping forum user no avatar
Name: Bruno
23.03.2011
Posts: 2
Quote
Aw: Joomla Benutzer vs. JoomShopping Benutzer

Onofrei - 19.03.2011 20:30
NogNeetMachinaal - 19.03.2011 14:52
Ok - clear.

Is there a way to use captcha of somesort?
Because without it, anyone can register.

Regards,
Will Moonen


I tested with success JoomlaXi Captcha but now I use CoreDesign Captcha Plugin on a site built with JoomShopping.
I may provide you the JoomShopping extension I wrote for CDCaptcha plugin or I will write to JoomShopping support team to put it on their download page.
Actually, if you opt for JoomlaXi no modification is needed. If you want to use CDCaptcha you have to complete the following steps:
1 - edit plugins/system/cdcaptcha.xml and insert:

<param name="enabled_for_com_jshopping" type="list" default="0" label="LABEL_ENABLED_FOR_COM_JSHOPPING" description="DESC_ENABLED_FOR_COM_JSHOPPING">
<option value="0">PARAM_ENABLED_FOR_COM_JSHOPPING_NO</option>
<option value="1">PARAM_ENABLED_FOR_COM_JSHOPPING_YES</option>
</param>

(let's say after COM_ZOO param)

2 - go to plugins/system/cdcaptcha/extension/site and create a new file - cdcaptcha_com_jshopping.php. Then edit it and insert:

<?php
defined('_JEXEC') or die('Restricted access');
class cdcaptcha_com_jshopping {
var $enabled = 0;
var $redirect = '';
var $rememberFields = 1;
var $isAjax = 0;

/**
* Get Instance
*
* @return instance
*/
function &getInstance() {
static $instance;
if ($instance == null) $instance = new cdcaptcha_com_jshopping();
return $instance;
}

/**
* Form object
*
* @return object Form element.
*/

function formObject() {
$formObject = new stdClass();
$view = JRequest::getCmd('task', '', 'get');
// login form
switch($view) {
case 'login':
$formObject->formElement = 'form[name="jlogin"]';
break;

case 'register':
$formObject->formElement = 'form[name="loginForm"]';
break;

case 'step2':
$formObject->formElement = 'form[name="loginForm"]';
break;

default:
break;
}

return $formObject;
}

/**
* Check captcha if required
*
* @return boolean True if captcha is checked.
*/

function checkCaptchaRules() {
$post_task = JRequest::getCmd('task', '', 'post');
switch($post_task) {
case 'loginsave':
if (JRequest::getCmd('task', '', 'get') === 'loginsave') {
return true;
}
break;
case 'step2save':
$this->redirect = 'index.php?option=com_jshopping&view=&task=step2save';
return true;
break;
case 'registersave':
$this->redirect = 'index.php?option=com_jshopping&view=&task=registersave';
return true;
default:
break;
}

return false;
}

}

?>

That's it, enjoy!


Great job!

Could you tell how to put captcha in "Comments"?

And how to translate captcha for different languages?

Thanks
Aw: Joomla Benutzer vs. JoomShopping Benutzer


Joomla: 1.5.22
JoomShopping: 2.7.3
 
29.03.2011 02:25
#7
Onofrei
Joomshopping forum user no avatar
Name: Mihai-Codrut
06.03.2011
Posts: 55
Quote
Aw: Joomla Benutzer vs. JoomShopping Benutzer

brunoandre - 28.03.2011 17:51

Great job!

Could you tell how to put captcha in "Comments"?

And how to translate captcha for different languages?

Thanks


What do you mean by translating captcha?
For my visitors I translated the word Captcha as "Supplementary Validation" or "Extra Validation".
If you want to edit the variables/text displayed then edit or create
administrator/language/xy-XY/xy-XY.plg_system_cdcaptcha.ini
where xy-XY is you language code. You may copy en-GB.plg_system_cdcaptcha.ini, rename en-GB to your xy-XY and edit it.

I didn't enable comments on my test shop yet. If I'll go there maybe I'll update the plugin to manage the comments too.


Joomla: 1.5.22
JoomShopping: 2.8.0

Letzte Ă„nderung: 29.03.2011 02:25
 
Copyrights MAXXmarketing GmbH. All Rights Reserved