Community Add-Ons
| Maintainers: | kocu |
Activation Code
for osCommerce Online Merchant v2.2
This contribution will make visitors need to activate their account after registration. Activation code is sent to new registered user email address.
Legend:
Download
Report
New features and bug fixes!
The new 1.0 release is finally ready for production use.
Full package. Includes upgrade instructions!
activate customer account by admin
1) open admin/customers.php
find
if (tep_not_null($action)) {
switch ($action) {
case 'update':
after:
$entry_state = tep_db_prepare_input($HTTP_POST_VARS['entry_state']);
add
$customers_active_status= tep_db_prepare_input($HTTP_POST_VARS['customers_active_status']);
step 2
find
$sql_data_array = array('customers_firstname' => $customers_firstname,
'customers_lastname' => $customers_lastname,
'customers_email_address' => $customers_email_address,
'customers_telephone' => $customers_telephone,
'customers_fax' => $customers_fax,
add before the ")" with
, 'customers_active_status' => $customers_active_status
step 3
find
$customers_query = tep_db_query("select c.customers_id, c.customers_gender, c.customers_firstname, c.customers_lastname, c.customers_dob,
replace with
$customers_query = tep_db_query("select c.customers_id, c.customers_gender, c.customers_firstname, c.customers_lastname, c.customers_dob, c.customers_active_status,
step 4
find
<td class="main"><?php echo ENTRY_NEWSLETTER; ?></td>
<td class="main">
<?php
if ($processed == true) {
if ($cInfo->customers_newsletter == '1') {
echo ENTRY_NEWSLETTER_YES;
} else {
echo ENTRY_NEWSLETTER_NO;
}
echo tep_draw_hidden_field('customers_newsletter');
} else {
echo tep_draw_pull_down_menu('customers_newsletter', $newsletter_array, (($cInfo->customers_newsletter == '1') ? '1' : '0'));
}
?></td>
</tr>
add after
<?php
if ($action == 'edit' || $action == 'update') {
$active_status_array = array(array('id' => '1', 'text' => ENTRY_EMAILVALIDATE_YES),
array('id' => '0', 'text' => ENTRY_EMAILVALIDATE_NO));
}
?>
<tr>
<td class="main"><?php echo ENTRY_CUSTOMERS_EMAIL_VALIDATED;?> </td>
<td class="main">
<?
if(ACTIVATION_CODE=='on'){
echo tep_draw_pull_down_menu('customers_active_status',$active_status_array, (($cInfo->customers_active_status == '1') ? '1' : '0'));
}else{
echo TEXT_EMAIL_VALIDATE_FEATURE. tep_draw_hidden_field('customers_active_status',$cInfo->customers_active_status);
}
?>
</td>
</tr>
open admin/includes/languages/english/customers.php
add
define('ENTRY_CUSTOMERS_EMAIL_VALIDATED','Email Validated:');
define('ENTRY_EMAILVALIDATE_YES', 'Validated (active)');
define('ENTRY_EMAILVALIDATE_NO', 'Unvalidated (inactive)');
define('TEXT_EMAIL_VALIDATE_FEATURE','Require E-mail confirmation on account creation is set off.');
before ?>
This fix will autoselect the proper status and then update it upon submit.
I've updated the german language. All needed is in the package.
Corrected same error as in previous Version (TEXT_ACTIVATION_CODE) only in german language.
I found a small bug in Italian version (not checked the other languages): TEXT_ACTIVATION_CODE not defined so I add "define" into /includes/languages/italian/create_account.php.
I suggest some "join words" between the default email and the new with activation code.
This MOD BUG fix is only for Italian version.
----------------------------------------------------
Ho trovato un piccolo bug: TEXT_ACTIVATION_CODE non è definito e nella email inviata al cliente appare così; non ho verificato nelle altre lingue. Ho aggiunto questa definizione in /includes/languages/italian/create_account.php.
Ho inserito anche delle frasi di convenienza per adattare l'email di default con la nuova che ha il codice di attivazione.
THIS ZIP PACKAGE CONTAIN ONLY /includes/languages/italian/create_account.php.
MOD for Italian Language plus another small contribution in 1 file (create_account.php)
Updated and Attached:
catalog / includes / languages / italian.php
catalog / includes / languages / italian / login.php
catalog / includes / languages / italian / create_account.php
-------------------------------------------------------
MOD Italiano per codice di Attivazione clienti
E' stata realizzata anche una piccola modifica ad un file originale (create_account.php)
File Inclusi:
catalog / includes / languages / italian.php
catalog / includes / languages / italian / login.php
catalog / includes / languages / italian / create_account.php
THIS IS NOT A FULL PACKAGE
activate customer account by admin
admin/customers.php
step 1.
find
if (tep_not_null($action)) {
switch ($action) {
case 'update':
case 'insert':
add
$customers_active_status= tep_db_prepare_input($HTTP_POST_VARS['customers_active_status']);
step 2
find
$sql_data_array = array('customers_firstname' => $customers_firstname,
'customers_lastname' => $customers_lastname,
'customers_email_address' => $customers_email_address,
'customers_telephone' => $customers_telephone,
'customers_fax' => $customers_fax,
replace with
$sql_data_array = array('customers_firstname' => $customers_firstname,
'customers_lastname' => $customers_lastname,
'customers_email_address' => $customers_email_address,
'customers_telephone' => $customers_telephone,
'customers_fax' => $customers_fax,
'customers_active_status' => $customers_active_status,
step 3
find
$customers_query = tep_db_query("select c.customers_id, c.customers_gender, c.customers_firstname, c.customers_lastname, c.customers_dob,
add after
c.customers_active_status,
step 4
find
<td class="main"><?php echo ENTRY_NEWSLETTER; ?></td>
<td class="main">
<?php
if ($processed == true) {
if ($cInfo->customers_newsletter == '1') {
echo ENTRY_NEWSLETTER_YES;
} else {
echo ENTRY_NEWSLETTER_NO;
}
echo tep_draw_hidden_field('customers_newsletter');
} else {
echo tep_draw_pull_down_menu('customers_newsletter', $newsletter_array, (($cInfo->customers_newsletter == '1') ? '1' : '0'));
}
?></td>
</tr>
add after
<tr>
<td class="main"><?php echo ENTRY_CUSTOMERS_EMAIL_VALIDATED;?> </td>
<td class="main">
<?
if(ACTIVATION_CODE=='on')
{ echo tep_draw_pull_down_menu('customers_active_status',$active_status_array, $cInfo->customers_active_status);
}else
{
echo TEXT_EMAIL_VALIDATE_FEATURE. tep_draw_hidden_field('customers_active_status',$cInfo->customers_active_status);
}
?>
</td>
</tr>
open admin/includes/languages/english/customers.php
add
define('ENTRY_CUSTOMERS_EMAIL_VALIDATED','Email Validated:');
define('ENTRY_EMAILVALIDATE_YES', 'Validated (active)');
define('ENTRY_EMAILVALIDATE_NO', 'Unvalidated (inactive)');
define('TEXT_EMAIL_VALIDATE_FEATURE','Require E-mail confirmation on account creation is set off.');
before ?>
done.
When you try to activate an account already activated you must receive an error mesage, "Your Account is activate, no need to reactivate it" but this is not happen. I attached fixed file.
French translation included
This is a full package
I have translated all the language text of this nice contribution to Greek and corrected some small errors in English.
Maybe someone else can translate to French, German, Spanish or Italian for others to include to their multilanguage e-shop
Feel free to upload your translation here! :)
I have updated this module to work with 2.2RC2a because someone gave him problems.
Only change the installation manual .txt to the catalog/create_account.php
to work to 2.2MS2 download the below file
--------------------------------------------------
Se ha modificado para que trabaje con 2.2RC2a
cualquier problema me lo comunicais, en el foro español.
Solo he cambiado las instrucciones del catalog/create_account.php, en el manual de instalación
No se ha traducido ni tiene ninguna modificación. Para 2.2MS2 descargar el archivo de abajo.
--------------------------------------------------
J'ai changer le module pour qu'il travaille avec 2.2RC2a, raccontez-moi si vous avez des problèmes. Je m'excuse pour mon ortographe mais ca fait longtemps que je n'ecrivez pas le français.
Seulement j'ai changer l'instruction du manual txt. relative aux catalog/create_account.php
Best regards, salut, salu2 del foro español
I forget a line in the catalog/create_account.php and the link don't work in the email.
Now is ok.
full package included
You can see:
http://www.mogadornetworkdesign
best regards from spanish forum
--------------------------------------------------
He olvidado una linea en el catalog/create_account.php y el link que debe aparecer en el correo que recibe el cliente no funcionaba.
Ahora funciona perfectamente
Para ver como funciona, podeis verlo en:
http://www.mogadornetworkdesign.com
Saludos del foro en español
I change the catalog/account_create.php and the catalog/includes/languages/your language/create_account.php cause when i receive the email to active my account i d'ont find the activation code independent
to the link, now i receive the activation code and the link. now run perfectly.
I translate to spanish the install manual...
only to the 2.2ms2-060817
Best regards from spanish forum
I'm sediento in spanish forum
Sorry for my english
--------------------------------------------------
Debido a que el código de activación solo aparece en el link, y que la mayoría de personas no podrían a la primera, descifrar
dicho problema he modificado ligeramente para que el código de activación aparezca en el email que el cliente recibe y, le sea
más fácil activar su cuenta.
He traducido algunos puntos del manual de instalación al español, ya que es muy sencillo de entender
Lo he realizado para 2.2ms2-060817
Recuerdos del foro de oscommerce español
en este foro soy sediento
This did not work properly with 2.2rc2a osc.
changed a few things updated the install.txt added a full install folder for virgin osc so you only need to upload the files and run the SQL.
Full package of install files, plus manual install instructions.
Full credit to the original and previous authors for this great contribution.
if your oscommerce has a "ultimate seo url" then
your seo url setting must be
admin -> configuration -> SEO URLs -> Output W3C valid URLs (parameter string)? "false"
this is important for your members
because url of the activation code do not work with & code.
Here is a sample for activation code link:
before setting:
account_activate.php?activation_id=820f1af38e8a52ad2cc79239be4becd7&activation_code=g2rxyhn03cts
after setting:
account_activate.php?activation_id=820f1af38e8a52ad2cc79239be4becd7&activation_code=g2rxyhn03cts
no file attached...
This is a fullpackage with all updates
There's a small problem with the previous update!
It will bring every new register member to the confirmation page along with the code,
this open the system for new member using a false email.
This update will fix so they could only use the link in their email.
Run this update AFTER you have Auto Fill Activation Code Installed!
This is an update to send the activation code in the activation link, so your customer doesn't need to copy and paste it in the email.
Use this ONLY if you think you need it.
(only contains update manual without the whole package)
-- thanx to westland for the fix (^_^) --
Error at account_activate.php fixed
This contribution will make visitors need to activate their account after registration. Activation code is sent to new registered user email address.
