added captcha in edit form
authorivankartolo <ivankartolo@735d13b6-9817-0410-8766-e36946ffe9aa>
Wed, 9 Feb 2011 22:59:13 +0000 (22:59 +0000)
committerivankartolo <ivankartolo@735d13b6-9817-0410-8766-e36946ffe9aa>
Wed, 9 Feb 2011 22:59:13 +0000 (22:59 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/direct_mail_subscription/trunk@43362 735d13b6-9817-0410-8766-e36946ffe9aa

ChangeLog [new file with mode: 0644]
fe_adminLib.inc
pi/fe_admin_dmailsubscrip.tmpl

diff --git a/ChangeLog b/ChangeLog
new file mode 100644 (file)
index 0000000..bab561b
--- /dev/null
+++ b/ChangeLog
@@ -0,0 +1,11 @@
+2011-02-09 Ivan Kartolo <ivan.kartolo@dkd.de>
+       * added captcha in subscription and edit form
+       * added the ability to search for user recursively
+       * if no subscription's not found, no mail will be sent.
+
+2011-02-01 Ivan Kartolo <ivan.kartolo@dkd.de>
+       * add salutation field in tt_address. This will be taken from locallang
+       * input and output values will be sanitized
+       * remove unused dk template
+       * fe_adminLib is copied, so it's dependant from core
+       * fixed old bug #4776: categories are not updated.
\ No newline at end of file
index 926d12e..9376817 100644 (file)
@@ -1099,6 +1099,19 @@ class user_feAdmin       {
 
                $markerArray['###HIDDENFIELDS###'].= '<input type="hidden" name="FE['.$this->theTable.'][uid]" value="'.$currentArr['uid'].'" />';
                if ($this->conf['edit.']['preview'] && !$this->previewLabel)    {$markerArray['###HIDDENFIELDS###'].= '<input type="hidden" name="preview" value="1" />';}
+               
+               /* CAPTCHA */
+               if (t3lib_extMgm::isLoaded('captcha')){
+                       if (!$this->markerArray['###CAPTCHA###']) {
+                               $templateCodeCaptcha = $this->cObj->getSubpart($this->templateCode, '###TEMPLATE_CAPTCHA###');
+                               $markerArrayCaptcha['###CAPTCHA_IMG###'] = '<img src="'.t3lib_extMgm::siteRelPath('captcha').'captcha/captcha.php" alt="" />';
+                               $templateCodeCaptcha = $this->cObj->substituteSubpart($templateCodeCaptcha, '###SUB_REQUIRED_FIELD_captcha###', '');
+                               $markerArray['###CAPTCHA###'] = $this->cObj->substituteMarkerArray($templateCodeCaptcha, $markerArrayCaptcha);
+                       }
+               } else {
+                       $markerArray['###CAPTCHA###'] = '';
+               }
+                       
                $content = $this->cObj->substituteMarkerArray($templateCode, $markerArray);
                $content.=$this->cObj->getUpdateJS($this->modifyDataArrForFormUpdate($currentArr), $this->theTable.'_form',  'FE['.$this->theTable.']', $this->fieldList.$this->additionalUpdateFields);
 
index 63b6575..dc7f50e 100644 (file)
@@ -215,32 +215,14 @@ You're now subscribed to our newsletter. An email has been sent to your email ad
 <BR>
 
 
-
-
-
-
-<br>
-<b>Select Special Categories:</b><BR>
-<table>
-<tr>
-       <td>###GW2B###Food###GW2E###</td><td><input type="checkbox" name="FE[tt_address][module_sys_dmail_category][0]"></td>
-</tr>
-<tr>
-       <td>###GW2B###Books###GW2E###</td><td><input type="checkbox" name="FE[tt_address][module_sys_dmail_category][1]"></td>
-</tr>
-<tr>
-       <td>###GW2B###Sport###GW2E###</td><td><input type="checkbox" name="FE[tt_address][module_sys_dmail_category][2]"></td>
-</tr>
-<tr>
-       <td>###GW2B###Religion###GW2E###</td><td><input type="checkbox" name="FE[tt_address][module_sys_dmail_category][3]"></td>
-</tr>
-</table>
+###CE_CATLIST###
 
 <BR>
 <b>HTML emails?</b><BR>
 <input type="checkbox" name="FE[tt_address][module_sys_dmail_html]" value=1>
 <BR>
 
+###CAPTCHA###
 
 
        ###HIDDENFIELDS###