Hi all,

sorry if i cause any trouble in the last post, it was totally
un-intensional.

I am wondering if anyone could show me how to add an extra field call "Phone
Number" so that the user can enter in the phone number text field and it
will be updated to the tt_address table.

i have tried modifying the ext_typoscript_setup file as so:

  // Edit setup
  edit = 1
  edit.fields = name, email, phone, module_sys_dmail_category,
module_sys_dmail_html
  edit.required = name, email, phone
  edit.evalValues {
    email = uniqueLocal, email
  }

  // Create setup
  create = 1
  create.preview = 0
  create.fields = name, hidden, email, phone, module_sys_dmail_category,
module_sys_dmail_html
  create.required = name, email, phone
  create.noSpecialLoginForm = 1
    # Initially hide the user until he approves!
  create.overrideValues.hidden = 1
  create.evalValues {
    email = uniqueLocal, email
  }


and then put in the temlate as follow: 
<b>Phone No.:</b><BR>
<!--###SUB_REQUIRED_FIELD_phone### begin
        This is shown only if the form is submitted and the field is
configured to be "required" and at the same time not filled in.
        The syntax is of the comment 'name' is:
SUB_REQUIRED_FIELD_[enter-the-field-name-here]
-->
        <font color=red><strong>You must fill in this
field!</strong></font><BR>
<!--###SUB_REQUIRED_FIELD_phone### end -->

<input type="text" name="FE[tt_address][phone]">
<BR>

but still this doesn't work, please have if you have any idea how to do this
properly.

thanks heaps,
Tan

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Tuesday, May 06, 2008 8:00 PM
To: typo3-english@lists.netfielders.de
Subject: TYPO3-english Digest, Vol 56, Issue 15

Send TYPO3-english mailing list submissions to
        typo3-english@lists.netfielders.de

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
or, via email, send a message with subject or body 'help' to
        [EMAIL PROTECTED]

You can reach the person managing the list at
        [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of TYPO3-english digest..."


Today's Topics:

   1. Re: Problem with lfeditor (Stefan Galinski)
   2. Re: Problem with lfeditor (Brian Bendtsen)
   3.  realurl postVarSet problem (Xavier Perseguers)
   4. Re: realurl postVarSet problem (Georg Ringer)
   5. Re: realurl postVarSet problem (Xavier Perseguers)
   6. Re: Problem with lfeditor (Stefan Galinski)


----------------------------------------------------------------------

Message: 1
Date: Tue, 06 May 2008 10:45:17 +0200
From: Stefan Galinski <[EMAIL PROTECTED]>
Subject: Re: [TYPO3] Problem with lfeditor
To: typo3-english@lists.netfielders.de
Message-ID:
        <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=us-ascii

Brian Bendtsen wrote:

> Hi
> 
> Im trying to use the LFEditor to edit the tt_news language files but I
> get this error on every save:
> 
> Some language files have unsufficient permissions (i.e. write permission)!
> 
> The file has "apache" as group and the group has write permission.
> 
> Another thing is that I can edit the file using quixplorer.
> 
> What causes the error?
> 
> /Brian

Hi,

You can apply a small workaround to fix your problem...

1) open the file mod1/class.tx_lfeditor_mod1_file.php
2) comment line 243 thru 246
3) save file and have fun

In general i can't reproduce your problem. Maybe i will do the same check in
the next version by opening the file with fopen. That should work like
expected... ;-)

Can you please post the exact permissions of the problematic file. Appears
the problem for all language files? Any special php options (e.g. safe
mode, open_basedir)?

--
Stefan



------------------------------

Message: 2
Date: Tue, 06 May 2008 11:22:43 +0200
From: Brian Bendtsen <[EMAIL PROTECTED]>
Subject: Re: [TYPO3] Problem with lfeditor
To: typo3-english@lists.netfielders.de
Message-ID:
        <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Stefan Galinski skrev:
> Brian Bendtsen wrote:
> 
>> Hi
>>
>> Im trying to use the LFEditor to edit the tt_news language files but I
>> get this error on every save:
>>
>> Some language files have unsufficient permissions (i.e. write
permission)!
>>
>> The file has "apache" as group and the group has write permission.
>>
>> Another thing is that I can edit the file using quixplorer.
>>
>> What causes the error?
>>
>> /Brian
> 
> Hi,
> 
> You can apply a small workaround to fix your problem...
> 
> 1) open the file mod1/class.tx_lfeditor_mod1_file.php
> 2) comment line 243 thru 246
> 3) save file and have fun
> 
> In general i can't reproduce your problem. Maybe i will do the same check
in
> the next version by opening the file with fopen. That should work like
> expected... ;-)
> 
> Can you please post the exact permissions of the problematic file. Appears
> the problem for all language files? Any special php options (e.g. safe
> mode, open_basedir)?
> 
> --
> Stefan
> 
Hi

Using the workaround I get this error:

Warning: 
fopen(/var/www/vhosts/domain.com/httpdocs/typo3conf/LFEditor/Backup/3868213c
ed.bak) 
[function.fopen]: failed to open stream: Permission denied in 
/var/www/vhosts/domain.com/httpdocs/typo3_src-4.2.0/t3lib/class.t3lib_div.ph
p 
on line 2661

The error appears for all language files.

The exact permissions for the file is:
-rw-rw-r-- bb apache locallang.xml

/Brian


------------------------------

Message: 3
Date: Tue, 06 May 2008 11:25:18 +0200
From: Xavier Perseguers <[EMAIL PROTECTED]>
Subject: [TYPO3]  realurl postVarSet problem
To: typo3-english@lists.netfielders.de
Message-ID:
        <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hi,

I notice that since I updated RealURL to the latest release, I cannot 
create new pages that are recognized by RealURL. The URL is well formed 
and all my "already-existing" pages are shown but if I create a page and 
try to navigate using the RealURL generated URL I get a message like this:

Reason: Segment "help" was not a keyword for a postVarSet as expected!

If I manually edit the Speaking URL path segment in page properties then 
I can access the page but 1) that is not an option as it was automatic 
before and 2) such field does not exist for page of type "shortcut".

What should I do?

Regards

-- 
Xavier Perseguers

http://xavier.perseguers.ch/en/tutorials/typo3.html


------------------------------

Message: 4
Date: Tue, 06 May 2008 11:26:45 +0200
From: Georg Ringer <[EMAIL PROTECTED]>
Subject: Re: [TYPO3] realurl postVarSet problem
To: typo3-english@lists.netfielders.de
Message-ID:
        <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Xavier Perseguers wrote:
> What should I do?

adding the realurl conf here? or do you prefer the only answer someone 
can give without it: make it right and it works

georg


------------------------------

Message: 5
Date: Tue, 06 May 2008 11:36:53 +0200
From: Xavier Perseguers <[EMAIL PROTECTED]>
Subject: Re: [TYPO3] realurl postVarSet problem
To: typo3-english@lists.netfielders.de
Message-ID:
        <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Georg Ringer wrote:
> Xavier Perseguers wrote:
>> What should I do?
> 
> adding the realurl conf here? or do you prefer the only answer someone 
> can give without it: make it right and it works

OK, here you are:

<?php
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tstemplate.php']['linkData
-PostProc'][] 
= 'EXT:realurl/class.tx_realurl.php:&tx_realurl->encodeSpURL';
$TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['checkAlternative
IdMethods-PostProc'][] 
= 'EXT:realurl/class.tx_realurl.php:&tx_realurl->decodeSpURL';

$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearAllCac
he_additionalTables']['tx_realurl_urldecodecache'] 
= 'tx_realurl_urldecodecache';
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearAllCac
he_additionalTables']['tx_realurl_urlencodecache'] 
= 'tx_realurl_urlencodecache';
// MLC clear cache on this destroys old urls as well
// 
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearAllCac
he_additionalTables']['tx_realurl_pathcache'] 
= 'tx_realurl_pathcache';

$TYPO3_CONF_VARS['FE']['addRootLineFields'] .= 
',tx_realurl_pathsegment,alias,nav_title,title';

$TYPO3_CONF_VARS['EXTCONF']['realurl'] = array();
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
        'init' => array(

                'enableCHashCache' => 1
                // disable enableUrlDecodeCache for multiple domains as no
root pid is
                // caught and the system check to see if correct page path
is grabbed
                , 'enableUrlDecodeCache' => 0
                , 'enableUrlEncodeCache' => 0
                , 'appendMissingSlash' => 'ifNotFile'
                , 'respectSimulateStaticURLs' => 0
                //, 'postVarSet_failureMode' => 'redirect_goodUpperDir'
        )

        , 'redirects'   => array()
        , 'preVars' => array(
                array(

                        'GETvar' => 'no_cache',
                        'valueMap' => array(
                                'no_cache' => 1,
                        ),
                        'noMatch' => 'bypass',
                )
        )
        , 'pagePath' => array(
                'type'                  => 'user'
                , 'userFunc'            => 
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main'
                , 'spaceCharacter'      => '-'
                , 'languageGetVar'      => 'L'
                , 'disablePathCache'    => 0
                , 'expireDays'          => 3
                , 'segTitleFieldList'   =>
'tx_realurl_pathsegment,alias,nav_title,title'
                , 'excludePageIds'      => null
        )
        , 'fixedPostVars'       => array()
        , 'postVarSets' => array(
                '_DEFAULT' => array(
                        'hash' => array(
                                array(
                                        'GETvar' => 'cHash'
                                )
                        )

                        // news item
                        , 'news' => array(
                                array(
                                        'GETvar' => 'tx_ttnews[tt_news]'
                                        , 'lookUpTable' => array(
                                                'table' => 'tt_news'
                                                , 'id_field' => 'uid'
                                                , 'alias_field' => 'title'
                                                , 'addWhereClause' => ' AND
NOT deleted'
                                                , 'useUniqueCache' => 1
                                                , 'useUniqueCache_conf' =>
array(
                                                        'strtolower' => 1
                                                        , 'spaceCharacter'
=> '-'
                                                )
                                        )
                                )
                                , array(
                                        'GETvar' => 'tx_ttnews[backPid]'
                                        , 'noMatch' => 'bypass'
                                )
                                , array(
                                        'GETvar' => 'tx_ttnews[swords]'
                                        , 'noMatch' => 'bypass'
                                )
                        )
                        // news page browser
                        , 'news-browse' => array(
                                array(
                                        'GETvar' => 'tx_ttnews[pointer]'
                                )
                        )
                        // news archive
                        , 'news-archive' => array(
                                array(
                                        'condPrevValue' => -1
                                        , 'GETvar' => 'tx_ttnews[pS]'
                                )
                                , array(
                                        'GETvar' => 'tx_ttnews[pL]'
                                )
                                , array(
                                        'GETvar' => 'tx_ttnews[arc]'
                                        , 'valueMap' => array(
                                                'archived' => 1
                                                , 'non-archived' => -1
                                        )
                                )
                        )
                        , 'news-period' => array(
                                array(
                                        'condPrevValue' => -1
                                        , 'GETvar' => 'tx_ttnews[pS]'
                                )
                                , array(
                                        'GETvar' => 'tx_ttnews[pL]'
                                )
                                , array(
                                        'GETvar' => 'tx_ttnews[arc]'
                                        , 'valueMap' => array(
                                                'archived' => 1
                                                , 'non-archived' => -1
                                        )
                                )
                        )
                        , 'indexed-search'      => array(
                                array(
                                        'GETvar'        =>
'tx_indexedsearch[sword]'
                                )
                                , array(
                                        'GETvar'        =>
'tx_indexedsearch[ext]'
                                )
                                , array(
                                        'GETvar'        =>
'tx_indexedsearch[submit_button]'
                                )
                                , array(
                                        'GETvar'        =>
'tx_indexedsearch[_sections]'
                                )
                                , array(
                                        'GETvar'        =>
'tx_indexedsearch[pointer]'
                                )
                        )
                        , 'slide-show'  => array(
                                array(
                                        'GETvar'        =>
'tx_gsislideshow_pi1[total]'
                                )
                                , array(
                                        'GETvar'        =>
'tx_gsislideshow_pi1[lastUid]'
                                        , 'noMatch' => 'bypass'
                                )
                                , array(
                                        'GETvar'        =>
'tx_gsislideshow_pi1[firstUid]'
                                        , 'noMatch' => 'bypass'
                                )
                                , array(
                                        'GETvar'        =>
'tx_gsislideshow_pi1[current]'
                                )
                                , array(
                                        'GETvar'        =>
'tx_gsislideshow_pi1[showUid]'
                                        , 'lookUpTable' => array(
                                                'table' =>
'tx_gsislideshow_images'
                                                , 'id_field' => 'uid'
                                                , 'alias_field' => 'caption'
                                                , 'addWhereClause' => ' AND
NOT deleted'
                                                , 'useUniqueCache' => 1
                                                , 'useUniqueCache_conf' =>
array(
                                                        'strtolower' => 1
                                                        , 'spaceCharacter'
=> '-'
                                                )
                                        )
                                )
                        )
                        , 'news-category' => array (
                                array(
                                        'GETvar' => 'tx_ttnews[cat]'
                                        , 'lookUpTable' => array(
                                                'table' => 'tt_news_cat'
                                                , 'id_field' => 'uid'
                                                , 'alias_field' => 'title'
                                                , 'addWhereClause' => ' AND
NOT deleted'
                                                , 'useUniqueCache' => 1
                                                , 'useUniqueCache_conf' =>
array(
                                                        'strtolower' => 1
                                                ),
                                        ),
                                ),
                        )
                )
        )
        , 'fileName' => array (
                'index' => array(
                        'index.html' => array(

                                'keyValues' => array(
                                        'type' => 0,
                                )

                        )
                        , 'atom.xml' => array(
                                'keyValues' => array(
                                        'type' => 122,
                                )
                        )
                        , '_DEFAULT' => array(
                                'keyValues' => array()
                        )
                )
                , 'defaultToHTMLsuffixOnPrev' => 1
        )
);
?>


------------------------------

Message: 6
Date: Tue, 06 May 2008 11:46:00 +0200
From: Stefan Galinski <[EMAIL PROTECTED]>
Subject: Re: [TYPO3] Problem with lfeditor
To: typo3-english@lists.netfielders.de
Message-ID:
        <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=us-ascii

Brian Bendtsen wrote:

> Stefan Galinski skrev:
>> Brian Bendtsen wrote:
>> 
>>> Hi
>>>
>>> Im trying to use the LFEditor to edit the tt_news language files but I
>>> get this error on every save:
>>>
>>> Some language files have unsufficient permissions (i.e. write
>>> permission)!
>>>
>>> The file has "apache" as group and the group has write permission.
>>>
>>> Another thing is that I can edit the file using quixplorer.
>>>
>>> What causes the error?
>>>
>>> /Brian
>> 
>> Hi,
>> 
>> You can apply a small workaround to fix your problem...
>> 
>> 1) open the file mod1/class.tx_lfeditor_mod1_file.php
>> 2) comment line 243 thru 246
>> 3) save file and have fun
>> 
>> In general i can't reproduce your problem. Maybe i will do the same check
>> in the next version by opening the file with fopen. That should work like
>> expected... ;-)
>> 
>> Can you please post the exact permissions of the problematic file.
>> Appears the problem for all language files? Any special php options (e.g.
>> safe mode, open_basedir)?
>> 
>> --
>> Stefan
>> 
> Hi
> 
> Using the workaround I get this error:
> 
> Warning:
>
fopen(/var/www/vhosts/domain.com/httpdocs/typo3conf/LFEditor/Backup/3868213c
ed.bak)
> [function.fopen]: failed to open stream: Permission denied in
>
/var/www/vhosts/domain.com/httpdocs/typo3_src-4.2.0/t3lib/class.t3lib_div.ph
p
> on line 2661
> 
> The error appears for all language files.
> 
> The exact permissions for the file is:
> -rw-rw-r-- bb apache locallang.xml
> 
> /Brian

Hi Brian,

Seems that you have a problem with the backup files. The error should
disappear if you deactivate the backup feature in the global extension
configuration or if you fix the permissions of the backup directory and
backup files.

To prevent the problem in the future you should set
the "$TYPO3_CONF_VARS['BE']['fileCreateMask']" and "$TYPO3_CONF_VARS['BE'
['folderCreateMask']" variable in your localconf. It's used to change the
permissions after a file is created. If you have already set the variable
you should delete the whole backup directory and try editing again.

Example from my localconf.php:

$TYPO3_CONF_VARS['BE']['fileCreateMask'] = '0664';
$TYPO3_CONF_VARS['BE']['folderCreateMask'] = '0775';

--
Stefan


------------------------------

_______________________________________________
TYPO3-english mailing list
TYPO3-english@lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english

End of TYPO3-english Digest, Vol 56, Issue 15
*********************************************

_______________________________________________
TYPO3-english mailing list
TYPO3-english@lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english

Reply via email to