[TYPO3] Netcreators: comments, a bit bug

Custos Ostii falcifer2001 at yahoo.es
Mon Feb 25 17:23:01 CET 2008


sure??? for sr_freecap??
elseif ($captchaType == 2 && t3lib_extMgm::isLoaded('sr_freecap')) {
            require_once(t3lib_extMgm::extPath('sr_freecap') . 'pi2/class.tx_srfreecap_pi2.php');
            $freeCap = t3lib_div::makeInstance('tx_srfreecap_pi2');
            /* @var $freeCap tx_srfreecap_pi2 */
            $template = $this->cObj->getSubpart($this->templateCode, '###CAPTCHA_SUB###');
            return $this->cObj->substituteMarkerArray($template, array_merge($freeCap->makeCaptcha(), array(
                            '###REQUIRED_CAPTCHA###' => $this->cObj->getSubpart($this->templateCode, '###REQUIRED_FIELD###'),
                            '###ERROR_CAPTCHA###' => $this->form_wrapError('captcha'),
                            '###SITE_REL_PATH###' => t3lib_extMgm::siteRelPath('comments')
                        )));
        }
        return '';

----- Mensaje original ----
De: Dmitry Dulepov [typo3] <dmitry at typo3.org>
Para: typo3-english at lists.netfielders.de
Enviado: lunes, 25 de febrero, 2008 12:56:05
Asunto: Re: [TYPO3] Netcreators: comments, a bit bug

Hi!

Custos Ostii wrote:
> The great comments extension from netcreators missed (i think so) this line
> '###TEXT_ENTER_CODE###' => $this->pi_getLL('pi1_template.enter_code')
> just after
>  '###SITE_REL_PATH###' => t3lib_extMgm::siteRelPath('comments'),
> at line 688 in "pi1/class.tx_comments_pi1.php" 

It does not. This line exists there. Here is the code:

=================
$code = $this->cObj->substituteMarkerArray($template, array(
        '###SR_FREECAP_IMAGE###' => '<img src="' . t3lib_extMgm::siteRelPath('captcha') . 'captcha/captcha.php" alt="" />',
        '###SR_FREECAP_CANT_READ###' => '',
        '###REQUIRED_CAPTCHA###' => $this->cObj->getSubpart($this->templateCode, '###REQUIRED_FIELD###'),
        '###ERROR_CAPTCHA###' => $this->form_wrapError('captcha'),
        '###SITE_REL_PATH###' => t3lib_extMgm::siteRelPath('comments'),
        '###TEXT_ENTER_CODE###' => $this->pi_getLL('pi1_template.enter_code'),
    ));
return str_replace('<br /><br />', '<br />', $code);
=================

> Ahh, and one question:
> How can i enable comments for entries in cal extension?

You need to know two things about cal:
- table name where cal records are stored (something like tx_cal_something)
- paramater prefix that cal uses in its URLs (will look something like "tx_cal_pi1")

Next you add to your TS template:

prefixToTableMap.tx_cal_pi1 = tx_cal_something

Next you specify tx_cal_pi1 as triggering prefix in configuration. That's all.

You can also ask cal developers to add this one line into their TS. This way cal and comments will automatically integrate. Or they can provide information to me and I will add it to comments extension.

-- 
Dmitry Dulepov
TYPO3 core team
Web: http://typo3bloke.net/
Skype: callto:liels_bugs
"Nothing is impossible. There are only limits to our knowledge"
_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english





       
______________________________________________ 
¿Con Mascota por primera vez? Sé un mejor Amigo. Entra en Yahoo! Respuestas http://es.answers.yahoo.com/info/welcome


More information about the TYPO3-english mailing list