From j.rau at web.de Wed Apr 1 00:26:18 2009 From: j.rau at web.de (Jochen Rau) Date: Wed, 01 Apr 2009 00:26:18 +0200 Subject: [TYPO3-dev] Depreciation log grows too fast and too big In-Reply-To: References: Message-ID: Hi Niels, > I just recognized that on my development machine the depreciation log > was about 600 MB. Those data was collected during some weeks. > Nevertheless I feel like this file is growing too fast and is getting > too big. > > I am currently wondering what value this log should offer to common > TYPO3 administrators? > > I personally think this log is completely useless and does just consume > space on my HDD without providing any value. > > So what about throwing this log away or at least inventing a switch to > turn off logging the depreciation messages to the filesystem? I have reported this a as a bug a couple of days ago: http://bugs.typo3.org/view.php?id=10707 Regards Jochen From typo3 at t3node.com Wed Apr 1 00:47:41 2009 From: typo3 at t3node.com (=?UTF-8?B?U3RlZmZlbiBNw7xsbGVy?=) Date: Wed, 01 Apr 2009 00:47:41 +0200 Subject: [TYPO3-dev] Debugging Problems with login and cookies In-Reply-To: References: Message-ID: Hi. On 31.03.2009 19:33 Volker Biberger wrote: > In this post I will describe the Problems we had and how we debugged them. > Volker, Ingmar, thank you very much for that excellent explanation of this issue. There was so much confusion on this topic and I think this posting make things much clearer. -- cheers, Steffen http://www.t3node.com/ From lolli at schwarzbu.ch Wed Apr 1 04:16:27 2009 From: lolli at schwarzbu.ch (Christian Kuhn) Date: Wed, 01 Apr 2009 04:16:27 +0200 Subject: [TYPO3-dev] Depreciation log grows too fast and too big In-Reply-To: References: Message-ID: Hey there, Jochen Rau wrote: >> I just recognized that on my development machine the depreciation log >> was about 600 MB. Those data was collected during some weeks. >> Nevertheless I feel like this file is growing too fast and is getting >> too big. > > I have reported this a as a bug a couple of days ago: > http://bugs.typo3.org/view.php?id=10707 I just hacked up a happy little patch attached to the bugtracker id to introduce a new install tool option: $TYPO3_CONF_VARS['SYS']['enableDeprecationLogFile'] Does this fit your needs? Greetings Christian From xoonsji02 at sneakemail.com Wed Apr 1 05:32:28 2009 From: xoonsji02 at sneakemail.com (bernd wilke) Date: Wed, 1 Apr 2009 03:32:28 +0000 (UTC) Subject: [TYPO3-dev] rendering a modified tt_content record inside of plugin References: Message-ID: On Tue, 31 Mar 2009 20:38:41 +0300 Dmitry Dulepov wrote: > Hi! > > bernd wilke wrote: >> can you give me a hint where I can find an usage or example? > > Here is the code: > > $data = array('CType' => 'text', 'bodytext' => 'whatever', .......); > $cObj = t3lib_div::makeInstance('tslib_cObj'); $cObj->start($data, > 'tt_content'); > $result = $cObj->cObjGetSingle(' > You must have CType set correctly. Notice "<" before "tt_content" in > cObjGetSingle. If you omit it, nothing will work. thanks. with this help I could rebuild my extension imagescroller and fix some old problems about caption, alt and title. bernd -- http://www.pi-phi.de/t3v4/cheatsheet.html From typo3 at perseguers.ch Wed Apr 1 07:27:53 2009 From: typo3 at perseguers.ch (Xavier Perseguers) Date: Wed, 01 Apr 2009 07:27:53 +0200 Subject: [TYPO3-dev] Depreciation log grows too fast and too big In-Reply-To: References: Message-ID: Hi, >>> I just recognized that on my development machine the depreciation log >>> was about 600 MB. Those data was collected during some weeks. >>> Nevertheless I feel like this file is growing too fast and is getting >>> too big. >> I have reported this a as a bug a couple of days ago: >> http://bugs.typo3.org/view.php?id=10707 > > I just hacked up a happy little patch attached to the bugtracker id to > introduce a new install tool option: > $TYPO3_CONF_VARS['SYS']['enableDeprecationLogFile'] IIRC there was such a discussion on the core list and people there did not want to introduce such an option. At last, the goal is not to annoy people with insipid log entries but to make admin awares that they use old extensions that should be patched/upgraded/replaced ASAP. The problem is that as you pointed out, the log file becomes huge very quickly as Dan reported that most if not all entries come from core itself. I think this is where the problem is: introducing this deprecation feature without taking care of quickly enough making the core compatible with it. This deprecation log makes sense and should not be removed or at least not by default. But core should very soon become compatible and perhaps a install note should tell sysadmins that adding a rule to their logrotate config might be a good idea... -- Xavier Perseguers http://xavier.perseguers.ch/en One contribution a day keeps the fork away From typo3 at t3node.com Wed Apr 1 10:08:03 2009 From: typo3 at t3node.com (=?UTF-8?B?U3RlZmZlbiBNw7xsbGVy?=) Date: Wed, 01 Apr 2009 10:08:03 +0200 Subject: [TYPO3-dev] Depreciation log grows too fast and too big In-Reply-To: References: Message-ID: Hi. On 01.04.2009 07:27 Xavier Perseguers wrote: > IIRC there was such a discussion on the core list and people there did > not want to introduce such an option. At last, the goal is not to annoy > people with insipid log entries but to make admin awares that they use > old extensions that should be patched/upgraded/replaced ASAP. > We should have learned from the security review project, that educating people is a honorable goal, but does not automatically work as excepted. Nowadays one has to click a checkbox in the extension manager to be able to have access to most of the extension. IMHO the educative effects of this are: 1) confusion (EM not working as expected), 2) search for and apply solution, 3) keep on installing insecure extensions (people have been informed but left alone without practical solutions) 4) get convinced that the security review project is a failure. This is not meant as a critique against the security team. I once was part of it and was a strong prosecutor of the reviews. But now I changed my mind. > itself. I think this is where the problem is: introducing this > deprecation feature without taking care of quickly enough making the > core compatible with it. No it's not. The problem is not that it grows fast, but that it grows infinitely by default. Thanks to the core bugs, we had the chance to see how annoying this logfile could be. > > This deprecation log makes sense and should not be removed or at least > not by default. But core should very soon become compatible and perhaps > a install note should tell sysadmins that adding a rule to their > logrotate config might be a good idea... > ATM the log file is located in typo3conf. This is quite annoying, because www has access to it. No chance to change that without ugly code hacks (including .htaccess) The obscurity of the hashed filename alone doesn't hide the file from outside (the investigation of GhostNet demonstrated that). The routines are designed to let the file grow endless without a build-in option. This is critical for any system regardless how fast it happens. In my eyes these are two critical flaws, which got introduced by design. Not all people have access to logrotate (think of managed webspace). So you would get my +1 for this patch with one cosmetic exception: change $TYPO3_CONF_VARS['SYS']['enableDeprecationLogFile'] to $TYPO3_CONF_VARS['SYS']['enableDeprecationLog'] (see bugtracker) -- cheers, Steffen http://www.t3node.com/ From cedenoj at gmail.com Wed Apr 1 10:11:51 2009 From: cedenoj at gmail.com (Jose Cedeno) Date: Wed, 1 Apr 2009 01:11:51 -0700 Subject: [TYPO3-dev] [GSOC] Static File Caching Message-ID: Hi guys, I'm a graduate student at Oregon State University pursuing a masters degree in Computer Science with emphasis on Human Computer Interaction (HCI) and open source. I'm interested in applying for the Google Summer of code project idea of 'Static File Caching' of Typo3. I've started reading the documentation online on how the front end is rendered (nice diagrams), and talked to a couple of people in IRC about my thoughts on the project idea. I've started writing a rough draft of my application. Is a Project Timeline not required in this application? I didn't see it mentioned in the template provided by the Typo3 Google summer of code page. I'm aware that there are a couple of extensions out there that provide the static file caching functionality, but they need some improvement so that pages based on dynamic content is supported. Could you guys take a look at my rough draft application and let me know what you guys think? http://docs.google.com/Doc?id=dgffwp9z_54dchmjggp Thanks, Jose From karsten at typo3.org Wed Apr 1 10:16:02 2009 From: karsten at typo3.org (Karsten Dambekalns) Date: Wed, 01 Apr 2009 10:16:02 +0200 Subject: [TYPO3-dev] [TYPO3-english] Google Summer of Code 2009 - apply now! Message-ID: Hi folks. Google Summer of Code 2009 takes student applications until April 3rd - if you like to work on #TYPO3 or #FLOW3 this is your chance! More information at http://tr.im/i3c6 - only two days left! Regards, Karsten From karsten at typo3.org Wed Apr 1 10:19:37 2009 From: karsten at typo3.org (Karsten Dambekalns) Date: Wed, 01 Apr 2009 10:19:37 +0200 Subject: [TYPO3-dev] [GSOC] Static File Caching In-Reply-To: References: Message-ID: Hi Jose. On 01.04.2009 10:11 Uhr, Jose Cedeno wrote: > application. Is a Project Timeline not required in this application? I > didn't see it mentioned in the template provided by the Typo3 Google summer > of code page. Well, the GSoC program itself provides a timeline, so everyone assumes your work will fit in I guess. If you want, provide a more detailed one regarding your project, but it's not a must. Regards, Karsten From mail at niels-pardon.de Wed Apr 1 10:41:38 2009 From: mail at niels-pardon.de (Niels Pardon) Date: Wed, 01 Apr 2009 10:41:38 +0200 Subject: [TYPO3-dev] Depreciation log grows too fast and too big In-Reply-To: References: Message-ID: Steffen M?ller schrieb: > So you would get my +1 for this patch with one cosmetic exception: > change > $TYPO3_CONF_VARS['SYS']['enableDeprecationLogFile'] > to > $TYPO3_CONF_VARS['SYS']['enableDeprecationLog'] > (see bugtracker) > I would vote +1 for that, too. Greets, Niels From masi-no at spam-typo3.org Wed Apr 1 10:56:02 2009 From: masi-no at spam-typo3.org (Martin Kutschker) Date: Wed, 01 Apr 2009 10:56:02 +0200 Subject: [TYPO3-dev] Depreciation log grows too fast and too big In-Reply-To: References: Message-ID: Xavier Perseguers schrieb: > > The problem is that as you pointed out, the log file becomes huge very > quickly as Dan reported that most if not all entries come from core > itself. I think this is where the problem is: introducing this > deprecation feature without taking care of quickly enough making the > core compatible with it. The point is that the Core devs need also to know which things must be chaned for the final release. Hey, 4.3 isn't even shipped as a beta. So don't worry. Masi From ingo at typo3.org Wed Apr 1 11:06:15 2009 From: ingo at typo3.org (Ingo Renner) Date: Wed, 01 Apr 2009 11:06:15 +0200 Subject: [TYPO3-dev] [GSOC] Static File Caching In-Reply-To: References: Message-ID: Jose Cedeno wrote: Hi Jose, > I've started reading the documentation online on how the front end is > rendered (nice diagrams), and talked to a couple of people in IRC about my > thoughts on the project idea. I've started writing a rough draft of my > application. Is a Project Timeline not required in this application? I > didn't see it mentioned in the template provided by the Typo3 Google summer > of code page. I thought there'd be a field for your timeline provided by Google, but if that isn't the case just provide your timeline with your application (if you have one). We already had another application doing just the same. > I'm aware that there are a couple of extensions out there that provide the > static file caching functionality, but they need some improvement so that > pages based on dynamic content is supported. Could you guys take a look at > my rough draft application and let me know what you guys think? > http://docs.google.com/Doc?id=dgffwp9z_54dchmjggp sounds awesome! looking forward to your application! Ingo -- Ingo Renner TYPO3 Core Developer, Release Manager TYPO3 4.2 From typo3 at susannemoog.de Wed Apr 1 17:24:06 2009 From: typo3 at susannemoog.de (Susanne Moog) Date: Wed, 01 Apr 2009 17:24:06 +0200 Subject: [TYPO3-dev] GraphicsMagick Problems in current trunk - can someone confirm? Message-ID: Hi, I just installed a fresh TYPO3 with current trunk as basis and run the image tests. However those tests fail for tests with the identify command (pcx, tga, pdf, ai) as there is no option named "profile". TYPO3 tries to execute: /usr/X11R6/bin/gm identify +profile '*' /var/www/typo3test/typo3/sysext/install/imgs/jesus.pcx[0] Working would be for example: /usr/X11R6/bin/gm identify /var/www/typo3test/typo3/sysext/install/imgs/jesus.pcx[0] Error: /usr/X11R6/bin/gm identify: Unrecognized option (+profile). Is this a TYPO3 bug, a GM bug or a general bug (did not test with ImageMagick) or no bug at all? Regards, Susanne -- Susanne Moog NEUSTA GmbH - www.neusta.de From typo.removeformessage at fx-graefix.de Wed Apr 1 18:24:41 2009 From: typo.removeformessage at fx-graefix.de (Franz Koch) Date: Wed, 01 Apr 2009 18:24:41 +0200 Subject: [TYPO3-dev] GraphicsMagick Problems in current trunk - can someone confirm? In-Reply-To: References: Message-ID: Hi, > I just installed a fresh TYPO3 with current trunk as basis and run the > image tests. However those tests fail for tests with the identify > command (pcx, tga, pdf, ai) as there is no option named "profile". > > TYPO3 tries to execute: > /usr/X11R6/bin/gm identify +profile '*' > /var/www/typo3test/typo3/sysext/install/imgs/jesus.pcx[0] > > Working would be for example: > /usr/X11R6/bin/gm identify > /var/www/typo3test/typo3/sysext/install/imgs/jesus.pcx[0] > > Error: /usr/X11R6/bin/gm identify: Unrecognized option (+profile). > > Is this a TYPO3 bug, a GM bug or a general bug (did not test with > ImageMagick) or no bug at all? there have been some changes in trunk lately, that will by default force IM or GM to strip all ICC profiles (or alike) from created/scaled images, which is reducing the size of images on some pages significantly. The command that get's added is "+ profile '*'", which should work for most IM and GM versions and can be configured/set in the install-tool (if not, it's missing). I think '-strip' is also working in old IM versions, whereas "+profile '*'" might only work in newer IM versions - but I'm not sure. Please have a look in the core list and search for "reduce image size" or something - there you should find the according discussion about that topic. -- kind regards, Franz Koch --------------------------------------------------- PayPal-Account: 'paypal _at_ elements-net _dot_ de' --------------------------------------------------- From typo3 at t3node.com Wed Apr 1 18:42:55 2009 From: typo3 at t3node.com (=?UTF-8?B?U3RlZmZlbiBNw7xsbGVy?=) Date: Wed, 01 Apr 2009 18:42:55 +0200 Subject: [TYPO3-dev] GraphicsMagick Problems in current trunk - can someone confirm? In-Reply-To: References: Message-ID: Hi. On 01.04.2009 17:24 Susanne Moog wrote: > Is this a TYPO3 bug, a GM bug or a general bug (did not test with > ImageMagick) or no bug at all? > I think +profile '*' is not supported for identify. This does neither work on GM nor IM. Its meant to be used with convert. The related revision is 5244, resolving #10025: http://forge.typo3.org/repositories/revision/typo3v4-core/5244 http://bugs.typo3.org/view.php?id=10025 260 sponsored beers on the tour had obviously impact on proper testing ;-) -- cheers, Steffen http://www.t3node.com/ From info at sk-typo3.de Wed Apr 1 18:52:58 2009 From: info at sk-typo3.de (Steffen Kamper) Date: Wed, 01 Apr 2009 18:52:58 +0200 Subject: [TYPO3-dev] GraphicsMagick Problems in current trunk - can someone confirm? In-Reply-To: References: Message-ID: Hi, Steffen M?ller schrieb: > Hi. > > On 01.04.2009 17:24 Susanne Moog wrote: >> Is this a TYPO3 bug, a GM bug or a general bug (did not test with >> ImageMagick) or no bug at all? >> > > I think +profile '*' is not supported for identify. This does neither > work on GM nor IM. > Its meant to be used with convert. > > The related revision is 5244, resolving #10025: > http://forge.typo3.org/repositories/revision/typo3v4-core/5244 > http://bugs.typo3.org/view.php?id=10025 > > 260 sponsored beers on the tour had obviously impact on proper testing ;-) > > :-) That beer wasn't drunk while testing. Olly and I did patch and testing and it worked well on our installations (Michael also tested successfully). All can be configured in install tool with 2 additional options: im_stripProfileCommand (holds the command +profile '*') im_useStripProfileByDefault (1 by default) you can switch it off or change the command. You can also force strip in IMAGE by setting file.stripProfile = 1 vg Steffen From masi-no at spam-typo3.org Wed Apr 1 19:01:17 2009 From: masi-no at spam-typo3.org (Martin Kutschker) Date: Wed, 01 Apr 2009 19:01:17 +0200 Subject: [TYPO3-dev] A standard AJAX interface to TCA tables Message-ID: Hi! I'm playing around with ExtJS and needed some JSON/XML stores for my grids. After a while I thought it might be nice to have a standardized AJAX interface for data retrieving and manipluation in the BE. Here's what I came up in a lonely brain storming :) typo3/ajax.php?ajaxID= &format= Format may be json (default) or xml. GET A SINGLE RECORD typo3/ajax.php?ajaxID=tcaget &table= &uid= Possible modifications could be whether to apply or not to apply versions/translations or to fetch also deleted records. GET A LIST OF RECORDS typo3/ajax.php?ajaxID=tcalist &table=
&uids=[,] OR typo3/ajax.php?ajaxID=tcalist &table=
&pids=[,pid>] For the latter syntax "pids" may be omitted for admins. Possible modifications could be whether to apply or not to apply versions/translations. Additonally there must be some parameters to allow for paging (start, end or length) and filtering (a full blown where clause?) CALL TCEmain directly typo3/ajax.php?ajaxID=tcemain &data= &cmd= At least one of "data" and "cmd" must be passed. Maybe some TCEmain init variables could be set also via parameters. UPDATE a single record typo3/ajax.php?ajaxID=tcaupdate &table=
&uid= &record= INSERT a single record typo3/ajax.php?ajaxID=tcainsert &table=
&pid= &record= DELETE a single record typo3/ajax.php?ajaxID=tcadelete &table=
&uid= &record= Masi From info at sk-typo3.de Wed Apr 1 19:03:15 2009 From: info at sk-typo3.de (Steffen Kamper) Date: Wed, 01 Apr 2009 19:03:15 +0200 Subject: [TYPO3-dev] GraphicsMagick Problems in current trunk - can someone confirm? In-Reply-To: References: Message-ID: Hi, but you are correct with "identify" I will commit a follow-up vg Steffen From dmitry at typo3.org Wed Apr 1 19:05:31 2009 From: dmitry at typo3.org (Dmitry Dulepov) Date: Wed, 01 Apr 2009 20:05:31 +0300 Subject: [TYPO3-dev] A standard AJAX interface to TCA tables In-Reply-To: References: Message-ID: Hi! Martin Kutschker wrote: > I'm playing around with ExtJS and needed some JSON/XML stores for my > grids. After a while I thought it might be nice to have a standardized > AJAX interface for data retrieving and manipluation in the BE. > > Here's what I came up in a lonely brain storming :) There is a little danger: typo3/ajax.php?ajaxID=tcalist&table=be_users&pids=0 typo3/ajax.php?ajaxID=tcaget&table=be_users&uid=1 typo3/ajax.php?ajaxID=tcainsert&table=be_users&pid=0&record=....admin=1... -- Dmitry Dulepov Skype: liels_bugs In the blog: http://dmitry-dulepov.com/article/automatic-realurl-configuration-howto.html From info at sk-typo3.de Wed Apr 1 19:12:26 2009 From: info at sk-typo3.de (Steffen Kamper) Date: Wed, 01 Apr 2009 19:12:26 +0200 Subject: [TYPO3-dev] A standard AJAX interface to TCA tables In-Reply-To: References: Message-ID: Hi Masi, in general i like the idea of this dispatcher, and i remember we talked about such. +1 for having such I see a problem with access control, atm they all in admin mode. I also would like to bundle the functionality in one class, eg t3lib_ajaxServer.php where you define output format etc. Maybe then another parameter could be used for dispatch to the right method etc. vg Steffen From typo3 at t3node.com Wed Apr 1 19:12:28 2009 From: typo3 at t3node.com (=?UTF-8?B?U3RlZmZlbiBNw7xsbGVy?=) Date: Wed, 01 Apr 2009 19:12:28 +0200 Subject: [TYPO3-dev] GraphicsMagick Problems in current trunk - can someone confirm? In-Reply-To: References: Message-ID: Hi. On 01.04.2009 19:03 Steffen Kamper wrote: > but you are correct with "identify" > > I will commit a follow-up > > vg Steffen I have patched t3lib_div::imageMagickCommand() to avoid profile stripping for identify. This fixes the issue for me: Index: t3lib/class.t3lib_div.php =================================================================== --- t3lib/class.t3lib_div.php (revision 5253) +++ t3lib/class.t3lib_div.php (working copy) @@ -5381,7 +5381,7 @@ } // strip profile information for thumbnails and reduce their size - if ($gfxConf['im_useStripProfileByDefault'] && $gfxConf['im_stripProfileCommand'] != '') { + if ($gfxConf['im_useStripProfileByDefault'] && $gfxConf['im_stripProfileCommand'] != '' && $command != 'identify') { if (strpos($parameters, $gfxConf['im_stripProfileCommand']) === false) { // Determine whether the strip profile action has be disabled by TypoScript: if ($parameters !== '' && $parameters !== '-version' && strpos($parameters, '###SkipStripProfile###') === false) { -- cheers, Steffen http://www.t3node.com/ From masi-no at spam-typo3.org Wed Apr 1 19:20:45 2009 From: masi-no at spam-typo3.org (Martin Kutschker) Date: Wed, 01 Apr 2009 19:20:45 +0200 Subject: [TYPO3-dev] A standard AJAX interface to TCA tables In-Reply-To: References: Message-ID: Dmitry Dulepov schrieb: > Hi! > > Martin Kutschker wrote: >> I'm playing around with ExtJS and needed some JSON/XML stores for my >> grids. After a while I thought it might be nice to have a standardized >> AJAX interface for data retrieving and manipluation in the BE. >> >> Here's what I came up in a lonely brain storming :) > > > > There is a little danger: > > typo3/ajax.php?ajaxID=tcalist&table=be_users&pids=0 > typo3/ajax.php?ajaxID=tcaget&table=be_users&uid=1 > typo3/ajax.php?ajaxID=tcainsert&table=be_users&pid=0&record=....admin=1... All standard permission checks will apply here as well. Perhaps a few extra checks are needed or maybe we exclude "important" tables from the AJAX interface completely. Masi From info at sk-typo3.de Wed Apr 1 19:21:38 2009 From: info at sk-typo3.de (Steffen Kamper) Date: Wed, 01 Apr 2009 19:21:38 +0200 Subject: [TYPO3-dev] GraphicsMagick Problems in current trunk - can someone confirm? In-Reply-To: References: Message-ID: Hi Steffen, Steffen M?ller schrieb: > Hi. > > On 01.04.2009 19:03 Steffen Kamper wrote: >> but you are correct with "identify" >> >> I will commit a follow-up >> >> vg Steffen > > I have patched t3lib_div::imageMagickCommand() to avoid profile > stripping for identify. This fixes the issue for me: > i committed identical patch one minute ago :-) vg Steffen From typo3 at t3node.com Wed Apr 1 19:28:36 2009 From: typo3 at t3node.com (=?UTF-8?B?U3RlZmZlbiBNw7xsbGVy?=) Date: Wed, 01 Apr 2009 19:28:36 +0200 Subject: [TYPO3-dev] GraphicsMagick Problems in current trunk - can someone confirm? In-Reply-To: References: Message-ID: Hi. On 01.04.2009 19:21 Steffen Kamper wrote: > i committed identical patch one minute ago :-) > :) Thanks. -- cheers, Steffen http://www.t3node.com/ From typo3 at susannemoog.de Wed Apr 1 20:06:31 2009 From: typo3 at susannemoog.de (Susanne Moog) Date: Wed, 01 Apr 2009 20:06:31 +0200 Subject: [TYPO3-dev] GraphicsMagick Problems in current trunk - can someone confirm? In-Reply-To: References: Message-ID: Hey, Steffen Kamper schrieb: > Hi Steffen, > > Steffen M?ller schrieb: >> Hi. >> >> On 01.04.2009 19:03 Steffen Kamper wrote: >>> but you are correct with "identify" >>> >>> I will commit a follow-up >>> >>> vg Steffen >> >> I have patched t3lib_div::imageMagickCommand() to avoid profile >> stripping for identify. This fixes the issue for me: >> > > i committed identical patch one minute ago :-) Thanks a lot! I just updated my trunk and wondered where the error had gone till I saw your post here. Super fast! :) Regards, Susanne -- Susanne Moog NEUSTA GmbH - www.neusta.de From masi-no at spam-typo3.org Wed Apr 1 20:18:56 2009 From: masi-no at spam-typo3.org (Martin Kutschker) Date: Wed, 01 Apr 2009 20:18:56 +0200 Subject: [TYPO3-dev] A standard AJAX interface to TCA tables In-Reply-To: References: Message-ID: Steffen Kamper schrieb: > Hi Masi, > > in general i like the idea of this dispatcher, and i remember we talked > about such. > > +1 for having such > > I see a problem with access control, atm they all in admin mode. > I also would like to bundle the functionality in one class, eg > t3lib_ajaxServer.php > where you define output format etc. Maybe then another parameter could > be used for dispatch to the right method etc. I don't like huge do-everything classes. This somehow defies the idea of OO. But I guess that it may make sense to have a base class that can be used for other code then the "default" ajax commands of the BE. I'm bored, so I'm going to look into it :) Masi From info at sk-typo3.de Wed Apr 1 23:34:16 2009 From: info at sk-typo3.de (Steffen Kamper) Date: Wed, 01 Apr 2009 23:34:16 +0200 Subject: [TYPO3-dev] A standard AJAX interface to TCA tables In-Reply-To: References: Message-ID: Hi Masi, Martin Kutschker schrieb: > Steffen Kamper schrieb: >> Hi Masi, >> >> in general i like the idea of this dispatcher, and i remember we talked >> about such. >> >> +1 for having such >> >> I see a problem with access control, atm they all in admin mode. >> I also would like to bundle the functionality in one class, eg >> t3lib_ajaxServer.php >> where you define output format etc. Maybe then another parameter could >> be used for dispatch to the right method etc. > > I don't like huge do-everything classes. This somehow defies the idea of > OO. fresh classes are never huge :-) But a base should be there. having an API for ajax would enrich the possibilities a lot. > But I guess that it may make sense to have a base class that can be > used for other code then the "default" ajax commands of the BE. > > I'm bored, so I'm going to look into it :) > that sounds like a good task, good luck! vg Steffen From joerg at klein-family.com Thu Apr 2 00:31:12 2009 From: joerg at klein-family.com (Jörg Klein) Date: Thu, 2 Apr 2009 00:31:12 +0200 Subject: [TYPO3-dev] Is there a way to hide the "Save and View" button? Message-ID: Hi guys! I want to tidy up the form in which you can enter a content-element. I already found options to hide the delete button, the history and so on. But I miss a possibility to hide the "Save and View" button. Is there none? Greetings J?rg From info at sk-typo3.de Thu Apr 2 00:43:30 2009 From: info at sk-typo3.de (Steffen Kamper) Date: Thu, 02 Apr 2009 00:43:30 +0200 Subject: [TYPO3-dev] Is there a way to hide the "Save and View" button? In-Reply-To: References: Message-ID: Hi J?rg Klein schrieb: > Hi guys! > > I want to tidy up the form in which you can enter a content-element. > I already found options to hide the delete button, the history and so on. > > But I miss a possibility to hide the "Save and View" button. > options.saveDocNew.[table] = 0 vg Steffen From Simon.Harhues at muenster.de Thu Apr 2 00:55:44 2009 From: Simon.Harhues at muenster.de (Simon Harhues) Date: Thu, 02 Apr 2009 00:55:44 +0200 Subject: [TYPO3-dev] Is there a way to hide the "Save and View" button? In-Reply-To: References: Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Steffen and J?rg, Steffen Kamper schrieb: >> But I miss a possibility to hide the "Save and View" button. >> > > options.saveDocNew.[table] = 0 he asked for the "save & view", and not for the "save & new" Button. :-) I think, the first one can't be hidden bei TS config. Regards, Simon -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAknT8PAACgkQzqmr83R5SCzRtACcCcAYBv++BP75Os3EWRU1uwPN GzsAniBSrC6tT/18e73jTbQEl6G73NiC =2KSv -----END PGP SIGNATURE----- From info at rs-websystems.de Thu Apr 2 08:02:11 2009 From: info at rs-websystems.de (Steffen Ritter) Date: Thu, 02 Apr 2009 08:02:11 +0200 Subject: [TYPO3-dev] A standard AJAX interface to TCA tables In-Reply-To: References: Message-ID: Hi Masi, since I am working on a ExtJS Based BE-Search i needed something familiar to get my search results into ExtJS Templates. I used XML... It would be be nice if we could introduce a standard for ExtJS-TCA-Record interaction. I agree to the descussion, that all write commands have to be secured very well. kind regards Steffen From masi-no at spam-typo3.org Thu Apr 2 08:49:03 2009 From: masi-no at spam-typo3.org (Martin Kutschker) Date: Thu, 02 Apr 2009 08:49:03 +0200 Subject: [TYPO3-dev] A standard AJAX interface to TCA tables In-Reply-To: References: Message-ID: Steffen Kamper schrieb: > Hi Masi, > > Martin Kutschker schrieb: >> Steffen Kamper schrieb: >>> Hi Masi, >>> >>> in general i like the idea of this dispatcher, and i remember we talked >>> about such. >>> >>> +1 for having such >>> >>> I see a problem with access control, atm they all in admin mode. >>> I also would like to bundle the functionality in one class, eg >>> t3lib_ajaxServer.php >>> where you define output format etc. Maybe then another parameter could >>> be used for dispatch to the right method etc. >> >> I don't like huge do-everything classes. This somehow defies the idea of >> OO. > > fresh classes are never huge :-) This is no argument. > But a base should be there. having an > API for ajax would enrich the possibilities a lot. Sure, but I thought it might make sense to eg separate write from read access. Masi From dmitry at typo3.org Thu Apr 2 09:36:47 2009 From: dmitry at typo3.org (Dmitry Dulepov) Date: Thu, 02 Apr 2009 10:36:47 +0300 Subject: [TYPO3-dev] Is there a way to hide the "Save and View" button? In-Reply-To: References: Message-ID: Hi! J?rg Klein wrote: > I want to tidy up the form in which you can enter a content-element. > I already found options to hide the delete button, the history and so on. > > But I miss a possibility to hide the "Save and View" button. > > Is there none? Nope. This is possible only programmatically. It needs "&noView=1" parameter when calling alt_doc.php. It should be fixed in the code. -- Dmitry Dulepov Skype: liels_bugs In the blog: http://dmitry-dulepov.com/article/automatic-realurl-configuration-howto.html From ingo at typo3.org Thu Apr 2 10:46:57 2009 From: ingo at typo3.org (Ingo Renner) Date: Thu, 02 Apr 2009 10:46:57 +0200 Subject: [TYPO3-dev] [TYPO3-GSoC] [GSoC] Prospective students: Apply now! Message-ID: Dear prospective students, this is a reminder that the deadline for applications to Google Summer of Code 2009 is tomorrow, April 3rd 12:00 noon PDT (21:00 Europe/Berlin). It is important that you hand in your applications *before* that deadline! You can however still edit and finetune your applications after that deadline. As there are some popular project ideas getting more than one application but we can only have one student per project we also advise you to hand in more than one application so that we can assign you to another project you might be interested in. all the best and good luck, looking forward to your applications Ingo -- Ingo Renner TYPO3 Core Developer, Release Manager TYPO3 4.2 From peter.russ at 4many.net Thu Apr 2 11:51:19 2009 From: peter.russ at 4many.net (Peter Russ) Date: Thu, 02 Apr 2009 11:51:19 +0200 Subject: [TYPO3-dev] Re: [Typo3-directmail] Missing feature: Special Query In-Reply-To: References: Message-ID: --- Original Nachricht --- Absender: Peter Russ Datum: 26.03.2009 22:02: > I was totally suprised seeing the capabilities to build the query. > Good concept! > > But I think one important feature is missing (at least in the TER > version 2.6.2): > > If you select a group as a criteria it doesn't respect that this field > is a MM-table realtion. Instead it equals numbers of relations instead > of groups. Seams to me that none tried that before. > > Exp: Groups > Mailorder 1 > Party 2 > Common 3 > > Generated query: > SELECT uid,pid,deleted FROM tt_address WHERE ( hidden != '1' AND > tx_fdfxaddresschecker_check_hidden = '0' AND > tx_fdfxaddresschecker_check_errorcode = '-2' AND addressgroup = '1') AND > tt_address.deleted=0 > > Due to the fact that addressgroup is MM related with the addressgroup we > have the count of realtions in this field. So performing above query > will not check for the right group but for the relations :-( > > Any update in pipeline. > > Peter. As this this core related (t3lib_queryGenerator) I filed a bug report http://bugs.typo3.org/view.php?id=10826 Regs. Peter. -- Fiat lux! Docendo discimus. _____________________________ uon GbR http://www.uon.li http://www.xing.com/profile/Peter_Russ From christopher at temporaryforwarding.com Thu Apr 2 12:27:21 2009 From: christopher at temporaryforwarding.com (Christopher) Date: Thu, 2 Apr 2009 12:27:21 +0200 Subject: [TYPO3-dev] Is there a way to hide the "Save and View" button? References: Message-ID: Hi Dmitry, "Dmitry Dulepov" schrieb im Newsbeitrag news:mailman.1.1238657807.8434.typo3-dev at lists.netfielders.de... > Hi! > > J?rg Klein wrote: >> I want to tidy up the form in which you can enter a content-element. >> I already found options to hide the delete button, the history and so on. >> >> But I miss a possibility to hide the "Save and View" button. >> >> Is there none? > > Nope. This is possible only programmatically. It needs "&noView=1" > parameter when calling alt_doc.php. It should be fixed in the code. I also had this problem and already found quite some others who have. I have opened a bugtracker-entry for this here: http://bugs.typo3.org/view.php?id=10827 Having this possibility in would be another small but cool usability enhancement! Greetings Christopher From snf at dkm.dk Thu Apr 2 12:53:32 2009 From: snf at dkm.dk (=?ISO-8859-1?Q?Stig_N=F8rgaard_F=E6rch?=) Date: Thu, 02 Apr 2009 12:53:32 +0200 Subject: [TYPO3-dev] New opportunities with sponsored projects In-Reply-To: References: Message-ID: > That may be one reason indeed. Another reason is that for the moment the > projects were announced only via the news or the mailing lists. I intend > to take more personal contacts with known TYPO3 agencies but this takes > time :-) The TYPO3 association should have newsletter targeted at agencies. /Stig From ben at netcreators.com Thu Apr 2 12:57:20 2009 From: ben at netcreators.com (ben van 't ende [netcreators]) Date: Thu, 02 Apr 2009 12:57:20 +0200 Subject: [TYPO3-dev] New opportunities with sponsored projects In-Reply-To: References: Message-ID: Stig N?rgaard F?rch wrote: > >> That may be one reason indeed. Another reason is that for the moment >> the projects were announced only via the news or the mailing lists. I >> intend to take more personal contacts with known TYPO3 agencies but >> this takes time :-) > > The TYPO3 association should have newsletter targeted at agencies. > > /Stig Hey Stig, Marketing is being addressed as we speak ;-) gRTz ben -- netcreators :: creation and innovation www.netcreators.com - www.TYPO3.nl From ingo at typo3.org Thu Apr 2 13:49:45 2009 From: ingo at typo3.org (Ingo Renner) Date: Thu, 02 Apr 2009 13:49:45 +0200 Subject: [TYPO3-dev] New opportunities with sponsored projects In-Reply-To: References: Message-ID: Stig N?rgaard F?rch wrote: > >> That may be one reason indeed. Another reason is that for the moment >> the projects were announced only via the news or the mailing lists. I >> intend to take more personal contacts with known TYPO3 agencies but >> this takes time :-) > > The TYPO3 association should have newsletter targeted at agencies. ... on the way -- Ingo Renner TYPO3 Core Developer, Release Manager TYPO3 4.2 From marcus#exp2009 at t3sec.info Thu Apr 2 16:33:18 2009 From: marcus#exp2009 at t3sec.info (Marcus Krause) Date: Thu, 02 Apr 2009 16:33:18 +0200 Subject: [TYPO3-dev] Challenging into tt_news archive.. In-Reply-To: References: Message-ID: Sanjay Chauhan schrieb am 03/26/2009 01:41 PM Uhr: > Hello Dev... > > Thanks in advance.. > > I want tt_news archive listing like attached file ( see attachment > tt_news-archive.jpg ). > > Can we do this things with TypoScript or any solutions... Anything is possimbable. Cheers, Marcus. From dosipov at phillyburbs.com Thu Apr 2 16:58:35 2009 From: dosipov at phillyburbs.com (Dan Osipov) Date: Thu, 02 Apr 2009 10:58:35 -0400 Subject: [TYPO3-dev] Is there a way to hide the "Save and View" button? In-Reply-To: References: Message-ID: I had a similar issue with usability, and submitted a bug for it: http://bugs.typo3.org/view.php?id=10706 It should probably be handled at the same time. Dan Osipov Calkins Media http://danosipov.com/blog/ Christopher wrote: > Hi Dmitry, > > "Dmitry Dulepov" schrieb im Newsbeitrag > news:mailman.1.1238657807.8434.typo3-dev at lists.netfielders.de... >> Hi! >> >> J?rg Klein wrote: >>> I want to tidy up the form in which you can enter a content-element. >>> I already found options to hide the delete button, the history and so on. >>> >>> But I miss a possibility to hide the "Save and View" button. >>> >>> Is there none? >> Nope. This is possible only programmatically. It needs "&noView=1" >> parameter when calling alt_doc.php. It should be fixed in the code. > > I also had this problem and already found quite some others who have. > I have opened a bugtracker-entry for this here: > http://bugs.typo3.org/view.php?id=10827 > > Having this possibility in would be another small but cool usability > enhancement! > > Greetings > > Christopher > > From niederlag at ikd01.de Thu Apr 2 18:25:14 2009 From: niederlag at ikd01.de (Peter Niederlag) Date: Thu, 02 Apr 2009 18:25:14 +0200 Subject: [TYPO3-dev] A standard AJAX interface to TCA tables In-Reply-To: References: Message-ID: Hi there, Sounds very interesting as we all start getting to like extjs now. ;) Currently we are still working with some special handcrafted AJAX calls here. To get this into a general approach definitly is a very nice goal! Greets, Peter Martin Kutschker schrieb: > Hi! > > I'm playing around with ExtJS and needed some JSON/XML stores for my > grids. After a while I thought it might be nice to have a standardized > AJAX interface for data retrieving and manipluation in the BE. > > Here's what I came up in a lonely brain storming :) > > typo3/ajax.php?ajaxID= > &format= > > Format may be json (default) or xml. > > GET A SINGLE RECORD > > typo3/ajax.php?ajaxID=tcaget > &table=
> &uid= > > Possible modifications could be whether to apply or not to apply > versions/translations or to fetch also deleted records. > > GET A LIST OF RECORDS > > typo3/ajax.php?ajaxID=tcalist > &table=
> &uids=[,] > OR > typo3/ajax.php?ajaxID=tcalist > &table=
> &pids=[,pid>] > > For the latter syntax "pids" may be omitted for admins. > > Possible modifications could be whether to apply or not to apply > versions/translations. > > Additonally there must be some parameters to allow for paging (start, > end or length) and filtering (a full blown where clause?) > > CALL TCEmain directly > > typo3/ajax.php?ajaxID=tcemain > &data= > &cmd= > > At least one of "data" and "cmd" must be passed. > Maybe some TCEmain init variables could be set also via parameters. > > UPDATE a single record > > typo3/ajax.php?ajaxID=tcaupdate > &table=
> &uid= > &record= > > INSERT a single record > > typo3/ajax.php?ajaxID=tcainsert > &table=
> &pid= > &record= > > DELETE a single record > > typo3/ajax.php?ajaxID=tcadelete > &table=
> &uid= > &record= > > > Masi -- Peter Niederlag http://www.niekom.de * TYPO3 & EDV Dienstleistungen * http://www.typo3partner.net * professional services network * From masi-no at spam-typo3.org Thu Apr 2 18:48:03 2009 From: masi-no at spam-typo3.org (Martin Kutschker) Date: Thu, 02 Apr 2009 18:48:03 +0200 Subject: [TYPO3-dev] A standard AJAX interface to TCA tables In-Reply-To: References: Message-ID: Peter Niederlag schrieb: > Hi there, > > Sounds very interesting as we all start getting to like extjs now. ;) > Currently we are still working with some special handcrafted AJAX calls > here. To get this into a general approach definitly is a very nice goal! I'm quite impressed by ExtJS, but I think also the jQuery or Mootool users will benefit from a standard AJAX interface. Masi From snf at dkm.dk Fri Apr 3 09:47:28 2009 From: snf at dkm.dk (=?UTF-8?B?U3RpZyBOw7hyZ2FhcmQgRsOmcmNo?=) Date: Fri, 03 Apr 2009 09:47:28 +0200 Subject: [TYPO3-dev] New opportunities with sponsored projects In-Reply-To: References: Message-ID: ben van 't ende [netcreators] skrev: > Stig N?rgaard F?rch wrote: >>> That may be one reason indeed. Another reason is that for the moment >>> the projects were announced only via the news or the mailing lists. I >>> intend to take more personal contacts with known TYPO3 agencies but >>> this takes time :-) >> The TYPO3 association should have newsletter targeted at agencies. >> >> /Stig > > Hey Stig, > > Marketing is being addressed as we speak ;-) Great :-) /Stig From snf at dkm.dk Fri Apr 3 09:47:39 2009 From: snf at dkm.dk (=?ISO-8859-1?Q?Stig_N=F8rgaard_F=E6rch?=) Date: Fri, 03 Apr 2009 09:47:39 +0200 Subject: [TYPO3-dev] New opportunities with sponsored projects In-Reply-To: References: Message-ID: Ingo Renner skrev: > Stig N?rgaard F?rch wrote: >> >>> That may be one reason indeed. Another reason is that for the moment >>> the projects were announced only via the news or the mailing lists. I >>> intend to take more personal contacts with known TYPO3 agencies but >>> this takes time :-) >> >> The TYPO3 association should have newsletter targeted at agencies. > > ... on the way > Cool :-) /Stig From info at rs-websystems.de Fri Apr 3 10:35:53 2009 From: info at rs-websystems.de (Steffen Ritter) Date: Fri, 03 Apr 2009 10:35:53 +0200 Subject: [TYPO3-dev] AJAX ReLogin does not work Message-ID: Hi folks, I'm sorry but i have to tell that for me relogin does not work. I mean "real" relogin where to type username and password. It fails every time, i have to use "logout" and relogin by normal interface... So far.. Steffen From thomaskieslich at gmx.net Fri Apr 3 10:40:32 2009 From: thomaskieslich at gmx.net (Thomas Kieslich) Date: Fri, 3 Apr 2009 10:40:32 +0200 Subject: [TYPO3-dev] AJAX ReLogin does not work References: Message-ID: Am Fri, 03 Apr 2009 10:35:53 +0200 schrieb Steffen Ritter: > Hi folks, > I'm sorry but i have to tell that for me relogin does not work. > I mean "real" relogin where to type username and password. It fails > every time, i have to use "logout" and relogin by normal interface... > > So far.. > Steffen Hi I can confirm this. Firefox, xampp, Vista, 4.3 alpha2 Thomas From typo3 at susannemoog.de Fri Apr 3 10:50:34 2009 From: typo3 at susannemoog.de (Susanne Moog) Date: Fri, 03 Apr 2009 10:50:34 +0200 Subject: [TYPO3-dev] AJAX ReLogin does not work In-Reply-To: References: Message-ID: Steffen Ritter schrieb: > Hi folks, > I'm sorry but i have to tell that for me relogin does not work. > I mean "real" relogin where to type username and password. It fails > every time, i have to use "logout" and relogin by normal interface... > > So far.. > Steffen http://bugs.typo3.org/view.php?id=10467 -- Susanne Moog NEUSTA GmbH - www.neusta.de From info at rs-websystems.de Fri Apr 3 11:49:12 2009 From: info at rs-websystems.de (Steffen Ritter) Date: Fri, 03 Apr 2009 11:49:12 +0200 Subject: [TYPO3-dev] AJAX ReLogin does not work In-Reply-To: References: Message-ID: Susanne Moog schrieb: > http://bugs.typo3.org/view.php?id=10467 > Yes for shure, but I'm not on XAMPP... I have just a "normal" installation Apache/2.2.11 (Debian) DAV/2 SVN/1.5.6 mod_python/3.3.1 Python/2.5.4 mod_ssl/2.2.11 OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.0 PHP Version 5.2.6-3,Suhosin Patch 0.9.6.2, eAccelerator v0.9.5.3 Current Trunk... My testing environment, will be open for everybody who wants to test... kind regards Steffen From typo3 at perseguers.ch Fri Apr 3 11:51:31 2009 From: typo3 at perseguers.ch (Xavier Perseguers) Date: Fri, 03 Apr 2009 11:51:31 +0200 Subject: [TYPO3-dev] AJAX ReLogin does not work In-Reply-To: References: Message-ID: Hi, Steffen Ritter wrote: > Susanne Moog schrieb: > > http://bugs.typo3.org/view.php?id=10467 >> > Yes for shure, but I'm not on XAMPP... > I have just a "normal" installation > > Apache/2.2.11 (Debian) DAV/2 SVN/1.5.6 mod_python/3.3.1 Python/2.5.4 > mod_ssl/2.2.11 OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.0 > > PHP Version 5.2.6-3,Suhosin Patch 0.9.6.2, eAccelerator v0.9.5.3 > > Current Trunk... > My testing environment, will be open for everybody who wants to test... Mine is on my laptop but I have same problem. Info: Server version: Apache/2.2.11 (Unix) Server built: Mar 13 2009 22:15:30 PHP 5.2.9 (cli) (built: Mar 14 2009 08:48:29) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies with Xdebug v2.0.3, Copyright (c) 2002-2007, by Derick Rethans with eAccelerator v0.9.5.3, Copyright (c) 2004-2006 eAccelerator, by eAccelerator -- Xavier Perseguers http://xavier.perseguers.ch/en One contribution a day keeps the fork away From info at sk-typo3.de Fri Apr 3 11:54:55 2009 From: info at sk-typo3.de (Steffen Kamper) Date: Fri, 03 Apr 2009 11:54:55 +0200 Subject: [TYPO3-dev] AJAX ReLogin does not work In-Reply-To: References: Message-ID: Hi, this happens since the session fixation fix, never worked again for me. vg Steffen From typo3 at susannemoog.de Fri Apr 3 12:22:41 2009 From: typo3 at susannemoog.de (Susanne Moog) Date: Fri, 03 Apr 2009 12:22:41 +0200 Subject: [TYPO3-dev] AJAX ReLogin does not work In-Reply-To: References: Message-ID: Steffen Ritter schrieb: > Susanne Moog schrieb: > > http://bugs.typo3.org/view.php?id=10467 >> > Yes for shure, but I'm not on XAMPP... > I have just a "normal" installation > Yes, me too. In the comments of the bug it's mentioned that it does not matter whether it's xampp or not, it never works. Regards, Susanne -- Susanne Moog NEUSTA GmbH - www.neusta.de From mail at niels-pardon.de Fri Apr 3 12:27:07 2009 From: mail at niels-pardon.de (Niels Pardon) Date: Fri, 03 Apr 2009 12:27:07 +0200 Subject: [TYPO3-dev] AJAX ReLogin does not work In-Reply-To: References: Message-ID: Hi Steffen! I already wrote it in the other thread in this list: I don't understand why the login challenge is generated a second time in the core. If I just take the value from the session without generating it a second time it works for me. See attached patch. Greets, Niels -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: TYPO3_trunk.patch URL: From dmitry at typo3.org Fri Apr 3 13:09:12 2009 From: dmitry at typo3.org (Dmitry Dulepov) Date: Fri, 03 Apr 2009 14:09:12 +0300 Subject: [TYPO3-dev] AJAX ReLogin does not work In-Reply-To: References: Message-ID: Hi! Niels Pardon wrote: > I already wrote it in the other thread in this list: I don't understand > why the login challenge is generated a second time in the core. Because the challenge should change for each login attempt. Otherwise it will be much easier to automate login attempts. -- Dmitry Dulepov In TYPO3 blog: http://dmitry-dulepov.com/article/creating-a-mobile-version-of-a-web-site.html Twitter: http://twitter.com/dmitryd Skype: liels_bugs From typo3 at perseguers.ch Fri Apr 3 13:12:03 2009 From: typo3 at perseguers.ch (Xavier Perseguers) Date: Fri, 03 Apr 2009 13:12:03 +0200 Subject: [TYPO3-dev] AJAX ReLogin does not work In-Reply-To: References: Message-ID: Hi, > Niels Pardon wrote: >> I already wrote it in the other thread in this list: I don't understand >> why the login challenge is generated a second time in the core. > > Because the challenge should change for each login attempt. Otherwise it will be much easier to automate login attempts. I agree, good to point this out. I did not analyze the incriminated code yet ;-) but perhaps the problem is that the new challenge should be put into session prior to showing the login dialog (or showing it again if an attempt was wrong) and then mentioned patch (in a previous post) may be used. -- Xavier Perseguers http://xavier.perseguers.ch/en One contribution a day keeps the fork away From mail at niels-pardon.de Fri Apr 3 13:25:17 2009 From: mail at niels-pardon.de (Niels Pardon) Date: Fri, 03 Apr 2009 13:25:17 +0200 Subject: [TYPO3-dev] AJAX ReLogin does not work In-Reply-To: References: Message-ID: Hi Dmitry! Dmitry Dulepov schrieb: > Niels Pardon wrote: >> I already wrote it in the other thread in this list: I don't understand >> why the login challenge is generated a second time in the core. > > Because the challenge should change for each login attempt. Otherwise it will be much easier to automate login attempts. > Thanks for the explanation. I am still clueless why this thing does not work. Greets, Niels From dmitry at typo3.org Fri Apr 3 14:06:44 2009 From: dmitry at typo3.org (Dmitry Dulepov) Date: Fri, 03 Apr 2009 15:06:44 +0300 Subject: [TYPO3-dev] AJAX ReLogin does not work In-Reply-To: References: Message-ID: Hi! Niels Pardon wrote: > I am still clueless why this thing does not work. I don't know :( We have to fix before the release anyway... -- Dmitry Dulepov In TYPO3 blog: http://dmitry-dulepov.com/article/creating-a-mobile-version-of-a-web-site.html Twitter: http://twitter.com/dmitryd Skype: liels_bugs From mail at niels-pardon.de Fri Apr 3 14:20:27 2009 From: mail at niels-pardon.de (Niels Pardon) Date: Fri, 03 Apr 2009 14:20:27 +0200 Subject: [TYPO3-dev] AJAX ReLogin does not work In-Reply-To: References: Message-ID: Hi! Dmitry Dulepov schrieb: > Niels Pardon wrote: >> I am still clueless why this thing does not work. > > I don't know :( We have to fix before the release anyway... I've found out the following: $_SESSION['login_challenge'] before the update in backend.php: dcc5a2bb54631da50371d8aa7eba7fae $_SESSION['login_challenge'] after the update in backend.php: b7d8038cce3df6570c7d52a6cfeac9e6 (This is the value put in the JS) $_SESSION['login_challenge'] in the AJAX request to /typo3/ajax.php?ajaxID=BackendLogin%3A%3AisTimedOut&skipSessionUpdate=1: 32aed7785d3faf4b7a329fe8c5223f00 So why do we have 3 different login challenges during one session? Greets, Niels From mail at niels-pardon.de Fri Apr 3 14:59:40 2009 From: mail at niels-pardon.de (Niels Pardon) Date: Fri, 03 Apr 2009 14:59:40 +0200 Subject: [TYPO3-dev] AJAX ReLogin does not work In-Reply-To: References: Message-ID: Niels Pardon schrieb: > $_SESSION['login_challenge'] before the update in backend.php: > dcc5a2bb54631da50371d8aa7eba7fae > > $_SESSION['login_challenge'] after the update in backend.php: > b7d8038cce3df6570c7d52a6cfeac9e6 > (This is the value put in the JS) > > $_SESSION['login_challenge'] in the AJAX request to > /typo3/ajax.php?ajaxID=BackendLogin%3A%3AisTimedOut&skipSessionUpdate=1: > 32aed7785d3faf4b7a329fe8c5223f00 > > So why do we have 3 different login challenges during one session? It seems that as soon as the login expires in the background the page containing the "click here to re-login" link (the old one) is loaded and therefore a new login challenge is generated by backend.php. Although this is not visible to user. Greets, Niels From marcus#exp2009 at t3sec.info Fri Apr 3 17:27:39 2009 From: marcus#exp2009 at t3sec.info (Marcus Krause) Date: Fri, 03 Apr 2009 17:27:39 +0200 Subject: [TYPO3-dev] AJAX ReLogin does not work In-Reply-To: References: Message-ID: Niels Pardon schrieb am 04/03/2009 02:59 PM Uhr: > Niels Pardon schrieb: >> $_SESSION['login_challenge'] before the update in backend.php: >> dcc5a2bb54631da50371d8aa7eba7fae >> >> $_SESSION['login_challenge'] after the update in backend.php: >> b7d8038cce3df6570c7d52a6cfeac9e6 >> (This is the value put in the JS) >> >> $_SESSION['login_challenge'] in the AJAX request to >> /typo3/ajax.php?ajaxID=BackendLogin%3A%3AisTimedOut&skipSessionUpdate=1: >> 32aed7785d3faf4b7a329fe8c5223f00 >> >> So why do we have 3 different login challenges during one session? > > It seems that as soon as the login expires in the background the page > containing the "click here to re-login" link (the old one) is loaded and > therefore a new login challenge is generated by backend.php. Although > this is not visible to user. I'm not into this relogin stuff but will leave a comment: When is this "popup" fired up, before or after a user session expires? If it's after, then the previous session ID is no longer valid. That's what the session fixation fix does; prevent tricking TYPO3 to use a not valid session ID. If it's after the whole process, the "relogin" is/should be the usual authentication. Marcus. From mail at niels-pardon.de Fri Apr 3 17:38:50 2009 From: mail at niels-pardon.de (Niels Pardon) Date: Fri, 03 Apr 2009 17:38:50 +0200 Subject: [TYPO3-dev] AJAX ReLogin does not work In-Reply-To: References: Message-ID: Hi Marcus! Good to have you in the discussion! Marcus Krause schrieb: > Niels Pardon schrieb am 04/03/2009 02:59 PM Uhr: >> Niels Pardon schrieb: >>> $_SESSION['login_challenge'] before the update in backend.php: >>> dcc5a2bb54631da50371d8aa7eba7fae >>> >>> $_SESSION['login_challenge'] after the update in backend.php: >>> b7d8038cce3df6570c7d52a6cfeac9e6 >>> (This is the value put in the JS) >>> >>> $_SESSION['login_challenge'] in the AJAX request to >>> /typo3/ajax.php?ajaxID=BackendLogin%3A%3AisTimedOut&skipSessionUpdate=1: >>> 32aed7785d3faf4b7a329fe8c5223f00 >>> >>> So why do we have 3 different login challenges during one session? >> It seems that as soon as the login expires in the background the page >> containing the "click here to re-login" link (the old one) is loaded and >> therefore a new login challenge is generated by backend.php. Although >> this is not visible to user. > > I'm not into this relogin stuff but will leave a comment: > > When is this "popup" fired up, before or after a user session expires? > > If it's after, then the previous session ID is no longer valid. That's > what the session fixation fix does; prevent tricking TYPO3 to use a not > valid session ID. > > If it's after the whole process, the "relogin" is/should be the usual > authentication. There is a countdown displayed 120 seconds before the login expires. If you don't react on that countdown the user gets logged out and the login window is displayed. The problem is that the login challenge for the relogin window is generated directly after the initial login. If the user session is no longer valid after the user is logged out (when the session expires) then it makes sense that the relogin does not work. This would mean we can't generate the login challenge for the relogin after the first login but have to get it directly after the logout. Am I right with that assumption? Greets, Niels From dosipov at phillyburbs.com Fri Apr 3 17:49:34 2009 From: dosipov at phillyburbs.com (Dan Osipov) Date: Fri, 03 Apr 2009 11:49:34 -0400 Subject: [TYPO3-dev] AJAX ReLogin does not work In-Reply-To: References: Message-ID: I've experienced an issue (http://bugs.typo3.org/view.php?id=10800) where the login box doesn't appear at all - and I think that's because the session expires. The 120 second count is not based on the server session time, but on the client - so you might already be logged out even though the counter is still going. I really hope this is fixed by the release, as otherwise I would get a lot of complaints... Dan Osipov Calkins Media http://danosipov.com/blog/ Niels Pardon wrote: > Hi Marcus! > > Good to have you in the discussion! > > Marcus Krause schrieb: >> Niels Pardon schrieb am 04/03/2009 02:59 PM Uhr: >>> Niels Pardon schrieb: >>>> $_SESSION['login_challenge'] before the update in backend.php: >>>> dcc5a2bb54631da50371d8aa7eba7fae >>>> >>>> $_SESSION['login_challenge'] after the update in backend.php: >>>> b7d8038cce3df6570c7d52a6cfeac9e6 >>>> (This is the value put in the JS) >>>> >>>> $_SESSION['login_challenge'] in the AJAX request to >>>> /typo3/ajax.php?ajaxID=BackendLogin%3A%3AisTimedOut&skipSessionUpdate=1: >>>> 32aed7785d3faf4b7a329fe8c5223f00 >>>> >>>> So why do we have 3 different login challenges during one session? >>> It seems that as soon as the login expires in the background the page >>> containing the "click here to re-login" link (the old one) is loaded and >>> therefore a new login challenge is generated by backend.php. Although >>> this is not visible to user. >> I'm not into this relogin stuff but will leave a comment: >> >> When is this "popup" fired up, before or after a user session expires? >> >> If it's after, then the previous session ID is no longer valid. That's >> what the session fixation fix does; prevent tricking TYPO3 to use a not >> valid session ID. >> >> If it's after the whole process, the "relogin" is/should be the usual >> authentication. > > There is a countdown displayed 120 seconds before the login expires. If > you don't react on that countdown the user gets logged out and the login > window is displayed. > > The problem is that the login challenge for the relogin window is > generated directly after the initial login. > > If the user session is no longer valid after the user is logged out > (when the session expires) then it makes sense that the relogin does not > work. > > This would mean we can't generate the login challenge for the relogin > after the first login but have to get it directly after the logout. > > Am I right with that assumption? > > Greets, > > Niels From info at sk-typo3.de Sun Apr 5 14:43:56 2009 From: info at sk-typo3.de (Steffen Kamper) Date: Sun, 05 Apr 2009 14:43:56 +0200 Subject: [TYPO3-dev] AJAX ReLogin does not work In-Reply-To: References: Message-ID: Hi, Steffen Ritter schrieb: > Hi folks, > I'm sorry but i have to tell that for me relogin does not work. > I mean "real" relogin where to type username and password. It fails > every time, i have to use "logout" and relogin by normal interface... > > So far.. > Steffen we need it switchable anyway. When using openID it doesn't make sense at all or has to be modified. vg Steffen From info at sk-typo3.de Sun Apr 5 14:48:30 2009 From: info at sk-typo3.de (Steffen Kamper) Date: Sun, 05 Apr 2009 14:48:30 +0200 Subject: [TYPO3-dev] Versioning module In-Reply-To: References: Message-ID: Hi, Uschi Renziehausen schrieb: >> >> Clicking on view icon of a version brings error: >> The requested page didn't have a proper connection to the tree-root! >> >> (Broken rootline) >> > > http://bugs.typo3.org/view.php?id=10795 > i'm astonished when checking this in 4_2, and it's broken also. As noone reported since now, is versioning used such less? I think versioning at all is one of the USPs of TYPO3 and should work as expected (sure) and should be presented in some documentations on t3org like "How to use versioning with your website - practice report" vg Steffen From fsuter at cobweb.ch Sun Apr 5 17:17:52 2009 From: fsuter at cobweb.ch (Francois Suter) Date: Sun, 05 Apr 2009 17:17:52 +0200 Subject: [TYPO3-dev] AJAX ReLogin does not work In-Reply-To: References: Message-ID: Hi, > we need it switchable anyway. When using openID it doesn't make sense at > all or has to be modified. BTW usage with OpenID works, but it's not ideal. See: http://bugs.typo3.org/view.php?id=10244 Cheers -- Francois Suter Cobweb Development Sarl - http://www.cobweb.ch From info at rs-websystems.de Sun Apr 5 17:57:27 2009 From: info at rs-websystems.de (Steffen Ritter) Date: Sun, 05 Apr 2009 17:57:27 +0200 Subject: [TYPO3-dev] technical Problems / Questions building AJAX BE-Search based on ExtJS In-Reply-To: References: Message-ID: Hi Lists, as promised on the hci-list I finished the first version of the new besearch for your testing/discussion and comments... To save traffic, I won't attach the T3X to this post, you may find it on hci-list... Following list of working things: - search over all TCA registered tables - command like OR, AND, "my expression" ar respected - permissions to table-fields, tables, and containing pages - multipage search results - editing records from within search results by popup (on popup close search results are refreshed). - toggle search menu by Hotkey: Strg+Space - deactivating usage by ExtConf what is not working by now: - any user configuration like search presets, tables or record types - core lacks possibility to deactivate the current search module - auto-focus the search field if the menu is shown - CSH Icon is not display... what has to be improved: - CSS/optics - code improovements... I hope you like it and I'm looking forward to your comments/dislikes and featurerequests... thanks in advance Steffen From typo3lists at webenergy.de Mon Apr 6 14:18:46 2009 From: typo3lists at webenergy.de (Julian Hofmann) Date: Mon, 06 Apr 2009 14:18:46 +0200 Subject: [TYPO3-dev] addEnableColumns-hook in class t3lib_page not working for pages? Message-ID: Hello. I wanted to extend access control for fe-users. I found the addEnableColumns-hook in t3lib_page::enableFields(). There's the following comment: "It is used by the extension ingmar_accessctrl which enables assigning more than one usergroup to content and page records". So, it should be useful for my plan. But I do not get the hook working for page-records. In some cases this hooks seems to work, in others it doesn't. I looked in the core and it seems, there have been lots of changes since this hook was implemented. The functionality of Ingmar's extension is now part of the TYPO3 core. And the function enableFields() seems to need TCA for working - but the TCA is (now) filled after querying page records. Only a few requests on pages-table are done after filling the TCA. Have I misunderstoud something? Or can anybody confirm this strange behaviour? Julian From news at ringerge.org Tue Apr 7 08:02:15 2009 From: news at ringerge.org (Georg Ringer) Date: Tue, 07 Apr 2009 08:02:15 +0200 Subject: [TYPO3-dev] addEnableColumns-hook in class t3lib_page not working for pages? In-Reply-To: References: Message-ID: Hi Julian, did you try my patch: http://bugs.typo3.org/view.php?id=10822 there is an RFC out there too for it, so if it works, give me please a +1. the problem with the existing hook is that you can just *add* something to the where clause and you are not able to manipulate it. For example I need to disable check for usergroups and set it for my own dynamically... Georg From typo3lists at webenergy.de Tue Apr 7 12:38:13 2009 From: typo3lists at webenergy.de (Julian Hofmann) Date: Tue, 07 Apr 2009 12:38:13 +0200 Subject: [TYPO3-dev] addEnableColumns-hook in class t3lib_page not working for pages? In-Reply-To: References: Message-ID: Hi Georg. your patch is a good idea, but seems not to resolve my/the problem. In my case it would be sufficient to *add* something. Have a look in /t3lib/class.t3lib_page.php. All (or nearly all) queries for page-records are done *without* calling enableFields(). Whatever a hook would change in this function, it wouldn't have any consequences for querying page-records. Simple example: Try to exclude a certain page from displaying via adding ' AND uid <> 1' (or any other page-ID) by the addEnableColumns-hook. Normally you should not see this page nor any content of this page now. But in fact, you can see (parts of) it. Julian From lalbertini at cross-systems.com Tue Apr 7 13:05:18 2009 From: lalbertini at cross-systems.com (Laurent Albertini) Date: Tue, 07 Apr 2009 13:05:18 +0200 Subject: [TYPO3-dev] CLI Message-ID: Hi, I am working with TYPO3 4.2.6 and i am trying to launch a PHP script using the CLI mode. I tried the methode with cli_dispatch.phpsh , but i failed to make work the system. There was some lines of scripts i have to comment to sucess to launch my php script. In typo3/init.php : 1 - include(PATH_typo3conf.$TYPO3_LOADED_EXT['_CACHEFILE'].'_ext_tables.php'); 2 - $BE_USER->backendCheckLogin(); / 3 - require_once(PATH_t3lib.'class.t3lib_befunc.php'); Moreover, in t3lib/config_default.php , there is a require of temp_CACHED_XXXX_ext_localconf.php . In this file i have ton comment all the configuration of imagemap_wizard. As you could imagine the comment of this line ( in the init.php ) destroyed the BE of TYPO3 and the FE :) I decided to use the depreciated method (consisting to define a $BACK_PATH ), but i still have problems.... My php script make insert in tt_news, and i have to use class.t3lib_db.php. But the params concerning the DB are in t3lib/config_default.php , and so, i have the same problems that using the cli_dispatch.phpsh methode. I am going to uninstall the extension imagemap_wizard... perhaps it will work. But do you have any advice on the first problem ? From dmitry at typo3.org Tue Apr 7 14:51:13 2009 From: dmitry at typo3.org (Dmitry Dulepov) Date: Tue, 07 Apr 2009 15:51:13 +0300 Subject: [TYPO3-dev] CLI In-Reply-To: References: Message-ID: Hi! Laurent Albertini wrote: > I am working with TYPO3 4.2.6 and i am trying to launch a PHP script > using the CLI mode. > I tried the methode with cli_dispatch.phpsh , but i failed to make work > the system. Failed?.. How exactly? > There was some lines of scripts i have to comment to sucess to launch > my php script. This is definitely a wrong way to go. > But do you have any advice on the first problem ? I have two ;) Firsts, tell us what exactly is the problem. Saying "failed" actually says nothing. There should be a error message at least. Secondly, take a look how other extensions work. Here is one simple example of CLI script: http://typo3.org/extensions/repository/view/yafi/current/info/cli%252Fcli_yafi.php/ -- Dmitry Dulepov In TYPO3 blog: http://dmitry-dulepov.com/article/google-analytics-certified.html Twitter: http://twitter.com/dmitryd Skype: liels_bugs From info at rs-websystems.de Tue Apr 7 15:29:33 2009 From: info at rs-websystems.de (Steffen Ritter) Date: Tue, 07 Apr 2009 15:29:33 +0200 Subject: [TYPO3-dev] Question about RTE link generation Message-ID: Hi list, espcially Stanislas Rolland, we all know RTE as the "Eierlegende-Wollmilch-Sau" (sry, don't know any corresponding word in english) of editors. Something, which bothers me all the time is the link generation. The wizard-window with selection for email-adresses,pages and so on is very nice for editors... But for admins there is the questions: why ara links generated as "full tags" and not as text. Generating links and URLs completely TS config about linkvars, linkhandlers, hooks on linkgeneration (such as googleanalytics, download counter) and furthermore realurl are ignored. So is there any reason why not acting like the standard tt_content link wizard (returning a parameter for typolink.parameter) and saving the link by |, letting the parsefunc doing the rest, respecting all configuration. If there is no reason for that: Tell me how I can help you refactoring this to work "the typo3 way" of link generation... (Probably a switch like "use classic link generation" in future versions for backwards compatability). If there is: please tell me ;) regards Steffen From marcus#exp2009 at t3sec.info Tue Apr 7 16:22:08 2009 From: marcus#exp2009 at t3sec.info (Marcus Krause) Date: Tue, 07 Apr 2009 16:22:08 +0200 Subject: [TYPO3-dev] TYPO3 on ATOM CPU Message-ID: Hi! Has anyone experiences on running TYPO3 on ATOM CPU? (for development only of course) Marcus. -- Member TYPO3 Security Team From bjoern.hahnefeld at dallmeier-electronic.com Tue Apr 7 16:26:22 2009 From: bjoern.hahnefeld at dallmeier-electronic.com (Hahnefeld Bjoern) Date: Tue, 7 Apr 2009 16:26:22 +0200 Subject: [TYPO3-dev] TYPO3 on ATOM CPU In-Reply-To: References: Message-ID: Hello Marcus, This is no problem for development and hosting. I'm using the ATOM's for both! Best regards Bj?rn -----Urspr?ngliche Nachricht----- Von: typo3-dev-bounces at lists.netfielders.de [mailto:typo3-dev-bounces at lists.netfielders.de] Im Auftrag von Marcus Krause Gesendet: Dienstag, 7. April 2009 16:22 An: typo3-dev at lists.netfielders.de Betreff: [TYPO3-dev] TYPO3 on ATOM CPU Hi! Has anyone experiences on running TYPO3 on ATOM CPU? (for development only of course) Marcus. -- Member TYPO3 Security Team _______________________________________________ TYPO3-dev mailing list TYPO3-dev at lists.netfielders.de http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev From j.a.m.v.d.wiel at tue.nl Tue Apr 7 16:29:44 2009 From: j.a.m.v.d.wiel at tue.nl (Wiel, J.A.M. van de) Date: Tue, 7 Apr 2009 16:29:44 +0200 Subject: [TYPO3-dev] TYPO3 on ATOM CPU In-Reply-To: References: Message-ID: Hi Marcus, CPU type really only matters to the operating system. If something like Linux (or something else UNIX-like) runs on it, it'll most likely also support MySQL, PHP and a webserver. I've done this on MIPS, PowerPC, SPARC.. you name it. TYPO3 doesn't mind, as long as the software below it compiles for your architecture. Bas ________________________________________ From: typo3-dev-bounces at lists.netfielders.de [typo3-dev-bounces at lists.netfielders.de] On Behalf Of Marcus Krause [marcus#exp2009 at t3sec.info] Sent: Tuesday, April 07, 2009 4:22 PM To: typo3-dev at lists.netfielders.de Subject: [TYPO3-dev] TYPO3 on ATOM CPU Hi! Has anyone experiences on running TYPO3 on ATOM CPU? (for development only of course) Marcus. -- Member TYPO3 Security Team _______________________________________________ TYPO3-dev mailing list TYPO3-dev at lists.netfielders.de http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev From bjoern.hahnefeld at dallmeier-electronic.com Tue Apr 7 16:34:58 2009 From: bjoern.hahnefeld at dallmeier-electronic.com (Hahnefeld Bjoern) Date: Tue, 7 Apr 2009 16:34:58 +0200 Subject: [TYPO3-dev] TYPO3 on ATOM CPU In-Reply-To: References: Message-ID: My words ;) -----Urspr?ngliche Nachricht----- Von: typo3-dev-bounces at lists.netfielders.de [mailto:typo3-dev-bounces at lists.netfielders.de] Im Auftrag von Wiel, J.A.M. van de Gesendet: Dienstag, 7. April 2009 16:30 An: List for Core-/Extension development Betreff: Re: [TYPO3-dev] TYPO3 on ATOM CPU Hi Marcus, CPU type really only matters to the operating system. If something like Linux (or something else UNIX-like) runs on it, it'll most likely also support MySQL, PHP and a webserver. I've done this on MIPS, PowerPC, SPARC.. you name it. TYPO3 doesn't mind, as long as the software below it compiles for your architecture. Bas ________________________________________ From: typo3-dev-bounces at lists.netfielders.de [typo3-dev-bounces at lists.netfielders.de] On Behalf Of Marcus Krause [marcus#exp2009 at t3sec.info] Sent: Tuesday, April 07, 2009 4:22 PM To: typo3-dev at lists.netfielders.de Subject: [TYPO3-dev] TYPO3 on ATOM CPU Hi! Has anyone experiences on running TYPO3 on ATOM CPU? (for development only of course) Marcus. -- Member TYPO3 Security Team _______________________________________________ TYPO3-dev mailing list TYPO3-dev at lists.netfielders.de http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev _______________________________________________ TYPO3-dev mailing list TYPO3-dev at lists.netfielders.de http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev From lolli at schwarzbu.ch Tue Apr 7 18:17:39 2009 From: lolli at schwarzbu.ch (Christian Kuhn) Date: Tue, 07 Apr 2009 18:17:39 +0200 Subject: [TYPO3-dev] TYPO3 on ATOM CPU In-Reply-To: References: Message-ID: Hey Marcus, Marcus Krause wrote: > Has anyone experiences on running TYPO3 on ATOM CPU? (for development > only of course) Yep. 4.1, 4.2 and trunk all run on my EEEPC 1000H. Not too fast, but enough for a debugging sessions in a train ... The system is running a standard Ubuntu. Greetings Christian From typo3 at sjbr.ca Tue Apr 7 18:34:29 2009 From: typo3 at sjbr.ca (Stanislas Rolland) Date: Tue, 07 Apr 2009 12:34:29 -0400 Subject: [TYPO3-dev] Question about RTE link generation In-Reply-To: References: Message-ID: Hi Steffen,, > we all know RTE as the "Eierlegende-Wollmilch-Sau" (sry, don't know any > corresponding word in english) of editors. Something, which bothers me > all the time is the link generation. > The wizard-window with selection for email-adresses,pages and so on is > very nice for editors... But for admins there is the questions: why ara > links generated as "full tags" and not as text. > Perhaps RTE transformation is not correctly configured in your installation? > Generating links and URLs completely TS config about linkvars, > linkhandlers, hooks on linkgeneration (such as googleanalytics, download > counter) and furthermore realurl are ignored. > Links inserted in the RTE are typolinks and are rendered as such in the FE. If they are not rendered with realurl in your installation, I would think that something is not correctly configured. > So is there any reason why not acting like the standard tt_content link > wizard (returning a parameter for typolink.parameter) and saving the > link by |, letting the parsefunc doing the rest, > respecting all configuration. > The links are inserted in the RTE as a-tags so that they may be rendered correctly in the editing area of the RTE and may be edited correctly in the DOM tree used by the RTE. However, these links are transformed on the way to the database and are indeed inserted in the database as typolinks and should therefore be rendered in the FE just like any other typolinks and all their features. > If there is no reason for that: Tell me how I can help you refactoring > this to work "the typo3 way" of link generation... (Probably a switch > like "use classic link generation" in future versions for backwards > compatibility). > I think that the RTE works the TYPO3 way. The RTE extends the "standard link wizard" and uses an adapted version of script browse_links.php (for historical reason, I would think). Some extensions that may hook on browse_links.php or on class.browse_links.php may need to hook also on the corresponding RTE scripts. If they neglect to do so, the features they provide may not be available in the RTE. It may be possible to get rid of the RTE version of script browse_links.php, but I think the benefits would be minor. Kind regards, Stanislas From info at rs-websystems.de Tue Apr 7 18:55:56 2009 From: info at rs-websystems.de (Steffen Ritter) Date: Tue, 07 Apr 2009 18:55:56 +0200 Subject: [TYPO3-dev] Question about RTE link generation In-Reply-To: References: Message-ID: Stanislas Rolland schrieb: ... > I think that the RTE works the TYPO3 way. The RTE extends the "standard > link wizard" and uses an adapted version of script browse_links.php (for > historical reason, I would think). Some extensions that may hook on > browse_links.php or on class.browse_links.php may need to hook also on > the corresponding RTE scripts. If they neglect to do so, the features > they provide may not be available in the RTE. It may be possible to get > rid of the RTE version of script browse_links.php, but I think the > benefits would be minor. Shame on me ;) your right... Just did "forward" customers nagging "does not work" without looking at it in detail (and thinking over it)... Just looked into "source" in RTE editor window... I'm sorry... probably I should go on holidays... But looking into details you wrote, I really got a further question: How about an editor, who might be "advanced" and knowing "what he's going to link". In tt_content fields he would type 78,3#75 - 'look at record in english variant', How should this be done? Is there an possibilitiy to define this directly? I am missing anything again? (hope not) sry again ... Steffen From mail-spam at ringerge.org Tue Apr 7 19:07:36 2009 From: mail-spam at ringerge.org (Georg Ringer) Date: Tue, 07 Apr 2009 19:07:36 +0200 Subject: [TYPO3-dev] Worspace: Review of own records shouldn't be possible Message-ID: Hi, I got a question regarding workspaces: Is it possible that a user is not allowed to review his own records? I know the checkbox "Only workspace owner can publish" but I need it the other way around. Imagine this scenario: There 2 different users which both should be allowed to write, review and publish but never the own records to force the other to review it. Thanks for your help Georg From stephane.baribeau at sys-tech.net Tue Apr 7 19:29:47 2009 From: stephane.baribeau at sys-tech.net (Stephane Baribeau) Date: Tue, 07 Apr 2009 13:29:47 -0400 Subject: [TYPO3-dev] TCEmain Hook. Message-ID: Hello everyone! I begin in ext developping with hook, and i have a mistake that doesnt work. (sorry for my bad english i do my best!) i have this ext_localconf.php and i make a class.tx_hooktestextension_tcemain.php like that : and when im in the BackEnd, i make a new page, write information on it, create Content Element, etc. save and my hook doesnt work make a DIE when the database make operations. Whats wrong with my code? does i need to include my ext somewhere? or i only need to put him in the ext dir? thanks. have a nice day! -- *St?phane Baribeau* Programmeur stephane.baribeau at sys-tech.net 418 520-0739 poste 129 514 907-0036 / 1-877-969-8324 *SYS-TECH / Web, m?dias et technologies libres* 6700 BOUL PIERRE-BERTRAND BUREAU 209 QU?BEC QC G2J 0B4 http://www.sys-tech.net /Membre supporteur de l'Association TYPO3 / From dmitry at typo3.org Tue Apr 7 19:33:09 2009 From: dmitry at typo3.org (Dmitry Dulepov) Date: Tue, 07 Apr 2009 20:33:09 +0300 Subject: [TYPO3-dev] TCEmain Hook. In-Reply-To: References: Message-ID: Hi! Stephane Baribeau wrote: > and when im in the BackEnd, i make a new page, write information on it, > create Content Element, etc. save and my hook doesnt work make a DIE > when the database make operations. Did you clear configuration cache? -- Dmitry Dulepov In TYPO3 blog: http://dmitry-dulepov.com/article/google-analytics-certified.html Twitter: http://twitter.com/dmitryd Skype: liels_bugs From dmitry at typo3.org Tue Apr 7 19:34:00 2009 From: dmitry at typo3.org (Dmitry Dulepov) Date: Tue, 07 Apr 2009 20:34:00 +0300 Subject: [TYPO3-dev] TYPO3 on ATOM CPU In-Reply-To: References: Message-ID: Hi! Christian Kuhn wrote: > Yep. 4.1, 4.2 and trunk all run on my EEEPC 1000H. Not too fast, but > enough for a debugging sessions in a train ... The system is running a > standard Ubuntu. Do you run it with a "normal" debugger (like Zend debugger or XDebug)? Just wondering... :) -- Dmitry Dulepov In TYPO3 blog: http://dmitry-dulepov.com/article/google-analytics-certified.html Twitter: http://twitter.com/dmitryd Skype: liels_bugs From stephane.baribeau at sys-tech.net Tue Apr 7 19:44:25 2009 From: stephane.baribeau at sys-tech.net (Stephane Baribeau) Date: Tue, 07 Apr 2009 13:44:25 -0400 Subject: [TYPO3-dev] TCEmain Hook. In-Reply-To: References: Message-ID: Dmitry Dulepov a ?crit : > Hi! > > Stephane Baribeau wrote: > >> and when im in the BackEnd, i make a new page, write information on it, >> create Content Element, etc. save and my hook doesnt work make a DIE >> when the database make operations. >> > > Did you clear configuration cache? > > Hi Dmitry, Yes i cleared the cash, close all browser, restart it, try it again, same thing. No die() happen.. does i need to declare it in typoscript inside my template or something like that? -- *St?phane Baribeau* Programmeur stephane.baribeau at sys-tech.net 418 520-0739 poste 129 514 907-0036 / 1-877-969-8324 *SYS-TECH / Web, m?dias et technologies libres* 6700 BOUL PIERRE-BERTRAND BUREAU 209 QU?BEC QC G2J 0B4 http://www.sys-tech.net /Membre supporteur de l'Association TYPO3 / From mail-spam at ringerge.org Tue Apr 7 19:51:16 2009 From: mail-spam at ringerge.org (Georg Ringer) Date: Tue, 07 Apr 2009 19:51:16 +0200 Subject: [TYPO3-dev] TCEmain Hook. In-Reply-To: References: Message-ID: Hi, working example from me (sorry for not double checking with yours): and References: Message-ID: Hi Georg, Nice, that works.. what the difference between mine? the procdm word after the class? thats strange. i compared yours and mine and nothing too differente. that make me crazy! :D thats cool, but what i see, after the die, the others function from tce are called? does he have possibility to kill all the the other work? thanks! Georg Ringer a ?crit : > Hi, > > working example from me (sorry for not double checking with yours): > > > $GLOBALS > ['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] > = > 'EXT:rggmservice/class.tx_rggmservice_tcemainprocdm.php:tx_rggmservice_tcemainprocdm'; > > ?> > > and > > class tx_rggmservice_tcemainprocdm { > > function processDatamap_postProcessFieldArray ($status, $table, $id, > &$fieldArray, &$pObj) { > > .... > > Georg > _______________________________________________ > TYPO3-dev mailing list > TYPO3-dev at lists.netfielders.de > http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev > > !DSPAM:591,49db937a250695473080237! > > > > -- *St?phane Baribeau* Programmeur stephane.baribeau at sys-tech.net 418 520-0739 poste 129 514 907-0036 / 1-877-969-8324 *SYS-TECH / Web, m?dias et technologies libres* 6700 BOUL PIERRE-BERTRAND BUREAU 209 QU?BEC QC G2J 0B4 http://www.sys-tech.net /Membre supporteur de l'Association TYPO3 / From tapio.markula at xetpoint.fi Tue Apr 7 20:30:16 2009 From: tapio.markula at xetpoint.fi (Tapio Markula) Date: Tue, 07 Apr 2009 21:30:16 +0300 Subject: [TYPO3-dev] Missing reference link in Typo3 4.2.6 in fe editing Message-ID: Hi Typo3 4.2.6 seems to miss in fe editing reference with edit icon to the content, which doesn't exist in the actual page. Reference to other page might be 1) Content is so-called slide content and the content is in rootline 2) Shared content in MTB 3) CE, which type is shortcut At least the first type doesn't work. Bug in new version? From typo3 at sjbr.ca Tue Apr 7 21:29:55 2009 From: typo3 at sjbr.ca (Stanislas Rolland) Date: Tue, 07 Apr 2009 15:29:55 -0400 Subject: [TYPO3-dev] Question about RTE link generation In-Reply-To: References: Message-ID: Hi Steffen, > > But looking into details you wrote, I really got a further question: > How about an editor, who might be "advanced" and knowing "what he's > going to link". In tt_content fields he would type 78,3#75 - 'look at > record in english variant', > How should this be done? Is there an possibilitiy to define this > directly? I am missing anything again? (hope not) > In the RTE link dialogue, the author can always specify the title. With TYPO3 4.2, you can configure RTE.default.buttons.link.pageIdSelector.enabled = 1 This adds a field in the RTE link dialogue in which the author can enter directly the page id instead of using the page tree. With TYPO3 4.3, you can configure RTE.default.buttons.link.queryParametersSelector.enabled = 1 This adds a field in the RTE link dialogue in which the user can enter parameters, in your example, would be "L=3". There is currently no such shortcut for the anchor. In such case, you currently need to use the page tree, and browse the content elements of the page. Kind regards, Stanislas From typo3lists at webenergy.de Wed Apr 8 01:04:35 2009 From: typo3lists at webenergy.de (Julian Hofmann) Date: Wed, 08 Apr 2009 01:04:35 +0200 Subject: [TYPO3-dev] TCEmain Hook. In-Reply-To: References: Message-ID: Hi, the difference is in the class's filename after 't3lib': 't3lib/class.t3lib.tcemain.php' - your code 't3lib/class.t3lib_tcemain.php' - Georg's example. Julian From lolli at schwarzbu.ch Wed Apr 8 08:42:31 2009 From: lolli at schwarzbu.ch (Christian Kuhn) Date: Wed, 08 Apr 2009 08:42:31 +0200 Subject: [TYPO3-dev] TYPO3 on ATOM CPU In-Reply-To: References: Message-ID: Hey Dmitry. Dmitry Dulepov wrote: > Christian Kuhn wrote: >> Yep. 4.1, 4.2 and trunk all run on my EEEPC 1000H. Not too fast, but >> enough for a debugging sessions in a train ... The system is running a >> standard Ubuntu. > > Do you run it with a "normal" debugger (like Zend debugger or XDebug)? Just wondering... :) Not on this system, no. Regards Christian From rik at actiview.nl Wed Apr 8 10:00:37 2009 From: rik at actiview.nl (Rik Willems) Date: Wed, 08 Apr 2009 10:00:37 +0200 Subject: [TYPO3-dev] Extension review Message-ID: Hi all, Yesterday I uploaded my first extension to TER called irfaq_az. It extends irfaq and adds an A-Z (alphabetic) view of irfaq entries, based on the dynamic view of irfaq. Since this is my first extension I would really appreciate it if some of you could shortly look into the code. I'd like to make sure it is written properly so others can use it safely. Any suggestions are welcome. I'm looking forward to your replies. Regards, Rik NB: Documentation isn't yet available. I will add that soon. The extension is very simple in setup though, so it shouldn't be much of a problem. From mail-spam at ringerge.org Wed Apr 8 10:10:35 2009 From: mail-spam at ringerge.org (Georg Ringer) Date: Wed, 08 Apr 2009 10:10:35 +0200 Subject: [TYPO3-dev] Extension review In-Reply-To: References: Message-ID: Rik Willems wrote: Some words: - Please use the field "upload comment" - I don't like hardcoded JS > NB: Documentation isn't yet available. I will add that soon. The > extension is very simple in setup though, so it shouldn't be much of a > problem. if the ext is very simple, the manual takes 30min time and still it is important to know how it works! Is there an extra plugin or is there a hook used and you need to set an additional marker, xclass used,.... Georg From lalbertini at cross-systems.com Wed Apr 8 10:23:57 2009 From: lalbertini at cross-systems.com (Laurent Albertini) Date: Wed, 08 Apr 2009 10:23:57 +0200 Subject: [TYPO3-dev] CLI In-Reply-To: References: Message-ID: Hi Dmitry, Thank you for your help ! The process didn't go to the end when i launched cli_dispatch.phpsh ... but there was not visible errors... ( or i dont know how to make them visible) So, i decided to add and delete/move, some "die("DEBUG - die here");",line by line and script by script, to try to understand the problem... and to follow the process. To have sucess, i had to comment some lines ( detailed in my previous message). I know it is a wrong way to go, but i just wanted to try to understand what i did wrong. Finally i decided to use the "oldschool" method with the backpath but i had the same problem when trying to include the config_default.php. In this script there is a require of temp_CACHED_XXXX_ext_localconf.php and in this temp script there was the conf of some extensions i had to comment to have success ( timtab and imagemap_wizard). I decided to uninstall the two extensions, and the process go to the end ! I didn't test again the cli_dispatch.phpsh method, cause i dont'know how to resolve the problem of the $BE_USER->backendCheckLogin(); and the require_once(PATH_t3lib.'class.t3lib_befunc.php'); in "typo3/init.php". Moreover, i already take a look on your extension... ( i am developping an extension which import newsML Items in tt_news ). Dmitry Dulepov a ?crit : > Hi! > > Laurent Albertini wrote: >> I am working with TYPO3 4.2.6 and i am trying to launch a PHP script >> using the CLI mode. >> I tried the methode with cli_dispatch.phpsh , but i failed to make work >> the system. > > Failed?.. How exactly? > >> There was some lines of scripts i have to comment to sucess to launch >> my php script. > > This is definitely a wrong way to go. > >> But do you have any advice on the first problem ? > > I have two ;) Firsts, tell us what exactly is the problem. Saying "failed" actually says nothing. There should be a error message at least. Secondly, take a look how other extensions work. Here is one simple example of CLI script: > > http://typo3.org/extensions/repository/view/yafi/current/info/cli%252Fcli_yafi.php/ > From rik at actiview.nl Wed Apr 8 10:25:40 2009 From: rik at actiview.nl (Rik Willems) Date: Wed, 08 Apr 2009 10:25:40 +0200 Subject: [TYPO3-dev] Extension review In-Reply-To: References: Message-ID: Hi Georg, Thanks for this quick reply. I though I used the upload comment field... Will look at it next time. The JS is hardcoded in irfaq original, that is why I used that too. Alternative is to set it through setup I suppose? I know documentation is important, I will upload that soon as an update with any suggestions that come from this list. Thanks again, Rik Georg Ringer schreef: > Rik Willems wrote: > > Some words: > - Please use the field "upload comment" > - I don't like hardcoded JS > >> NB: Documentation isn't yet available. I will add that soon. The >> extension is very simple in setup though, so it shouldn't be much of a >> problem. > > if the ext is very simple, the manual takes 30min time and still it is > important to know how it works! Is there an extra plugin or is there a > hook used and you need to set an additional marker, xclass used,.... > > > Georg From marcus#exp2009 at t3sec.info Wed Apr 8 10:47:45 2009 From: marcus#exp2009 at t3sec.info (Marcus Krause) Date: Wed, 08 Apr 2009 10:47:45 +0200 Subject: [TYPO3-dev] TYPO3 on ATOM CPU In-Reply-To: References: Message-ID: Hahnefeld Bjoern schrieb am 04/07/2009 04:26 PM Uhr: > Hello Marcus, > > This is no problem for development and hosting. I'm using the ATOM's > for both! Thank you all for your comments. Marcus. From t33k.RE.MO.VE at RE.MO.VE.prolabium.com Wed Apr 8 11:33:06 2009 From: t33k.RE.MO.VE at RE.MO.VE.prolabium.com (Krystian Szymukowicz) Date: Wed, 08 Apr 2009 11:33:06 +0200 Subject: [TYPO3-dev] new content object COA_GO - performance - need some advise Message-ID: Hi Before I put it into TER I'd like to show you my extension and ask for some advise how to optimize it as it could be quite helpul ext for everyone. Extension adds new content object COA_GO. ( go = generate once) Whats extra in this cObj ? 1. cObj is generated only once (more in details) 2. cache period is supported 3. ajax is supported Where should you gain most? It's good for cObj that occurs in the same form at many pages, for example: a) news LATEST, forum LATEST, etc. b) menu ? the bigger is the more you gain more in speed (ACT can be simpulated by javascript) c) search input d) some footer, tools menu, etc. And its really easy to use it. See the example [1]: Simple COA: temp.a1 = COA temp.a1 = TEXT [...] After conversion to COA_GO temp.a1 = COA_GO temp.a1.cache.type = beforeCache_db temp.a1 = TEXT [...] That all! DETAILS: There are three types of caching type supported: 1. beforeCache_db 2. afterCache_file 3. ajax_file ============================== TYPE: "beforeCache_db" 1) cObject is generated once and the used by TYPO3 to generate other pages 2) Example: tt_news LATES with 10 real_url typolinks would render circa 150ms on each generated page. Now it will be generated once and fetched from cache to build the page. EXAMPLE as above [1]. ==================================== TYPE: "afterCache_file" 1) Its cached to file and fast delivered with file include. The only computing is to decide if the content expired or not. 2) If cache period expires it will regenerate cached cObjects. 3) content is replaced each time TYPO3 gets the page from cache (something like EXT_INT but cached to file and with cache period supported) EXAMPLE: temp.a1 = COA_GO temp.a1.cache.type = afterCache_file temp.a1.cache.period = 30 temp.a1.cache.hash = footer temp.a1 = TEXT [...] Where: "period" - time in seconds the hash expires "hash" - unigue name ? used in table cache_hash and as filename to write cached cObject. Choose it with care (means it should be unique and ready to be used as filename) ================================== TYPE: "ajax_file" 1) content is fetched using ajax 2) pages can be get from TYPO3 cache with full speed 3) pages can even be generated as static files (fe. nc_staticfilecache) 4) with static files no php_mod is executed so it can be extremly fast and still deliver dynamic content EXAMPLE temp.a1 = COA_GO temp.a1.cache.type = ajax_file temp.a1.cache.period = 30 temp.a1.cache.hash = footer temp.a1 = TEXT [...] ============================================================ All the three types works and can be tested (but are not optimal as its beta :) ) Esspecially I would like to ask you for advise how to make regeneration of the cObject more optimal. Now I fetch the url with no_cache parameter which I think is not a good idea. What I would like is to get URL that will regenerate only COA_GO object that are at the page. The best would be to have possibility to regenerate only selected COA_GO content objects. There is "hash" param in COA_GO that can be used to find only "this" COA_GO that sould be regenerated. Here is the graphical diagram. Maybe there is some more info. http://www.prolabium.com/coa_go/coa_go.gif And the extension to download for testing. (btw: ajax works now only in firefox, opera and chrome) http://www.prolabium.com/coa_go/coa_go.zip I hope you will like it and find some time for testing and giving some advices. Later this weekend I will put it on forge and create some more documentation. -- grtz Krystian Szymukowicz From tamer_elsoudy at yahoo.com Wed Apr 8 13:11:12 2009 From: tamer_elsoudy at yahoo.com (tamer abdelrahman) Date: Wed, 8 Apr 2009 04:11:12 -0700 (PDT) Subject: [TYPO3-dev] where is the answers Message-ID: dear all ? please give me the answer ? 1- which extension is better to make documentation area in typo3 2- how can I activate google search area in typo3 please answer me ? --- On Wed, 4/8/09, typo3-dev-request at lists.netfielders.de wrote: From: typo3-dev-request at lists.netfielders.de Subject: TYPO3-dev Digest, Vol 67, Issue 11 To: typo3-dev at lists.netfielders.de Date: Wednesday, April 8, 2009, 6:00 AM Send TYPO3-dev mailing list submissions to ??? typo3-dev at lists.netfielders.de To subscribe or unsubscribe via the World Wide Web, visit ??? http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev or, via email, send a message with subject or body 'help' to ??? typo3-dev-request at lists.netfielders.de You can reach the person managing the list at ??? typo3-dev-owner at lists.netfielders.de When replying, please edit your Subject line so it is more specific than "Re: Contents of TYPO3-dev digest..." Today's Topics: ???1.? Extension review (Rik Willems) ???2. Re: Extension review (Georg Ringer) ???3. Re: CLI (Laurent Albertini) ???4. Re: Extension review (Rik Willems) ???5. Re: TYPO3 on ATOM CPU (Marcus Krause) ???6. new content object COA_GO - performance - need some??? advise ? ? ? (Krystian Szymukowicz) ---------------------------------------------------------------------- Message: 1 Date: Wed, 08 Apr 2009 10:00:37 +0200 From: Rik Willems Subject: [TYPO3-dev]? Extension review To: typo3-dev at lists.netfielders.de Message-ID: ??? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hi all, Yesterday I uploaded my first extension to TER called irfaq_az. It extends irfaq and adds an A-Z (alphabetic) view of irfaq entries, based on the dynamic view of irfaq. Since this is my first extension I would really appreciate it if some of you could shortly look into the code. I'd like to make sure it is written properly so others can use it safely. Any suggestions are welcome. I'm looking forward to your replies. Regards, Rik NB: Documentation isn't yet available. I will add that soon. The extension is very simple in setup though, so it shouldn't be much of a problem. ------------------------------ Message: 2 Date: Wed, 08 Apr 2009 10:10:35 +0200 From: Georg Ringer Subject: Re: [TYPO3-dev] Extension review To: typo3-dev at lists.netfielders.de Message-ID: ??? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Rik Willems wrote: Some words: - Please use the field "upload comment" - I don't like hardcoded JS > NB: Documentation isn't yet available. I will add that soon. The > extension is very simple in setup though, so it shouldn't be much of a > problem. if the ext is very simple, the manual takes 30min time and still it is important to know how it works! Is there an extra plugin or is there a hook used and you need to set an additional marker, xclass used,.... Georg ------------------------------ Message: 3 Date: Wed, 08 Apr 2009 10:23:57 +0200 From: Laurent Albertini Subject: Re: [TYPO3-dev] CLI To: typo3-dev at lists.netfielders.de Message-ID: ??? Content-Type: text/plain; charset=UTF-8; format=flowed Hi Dmitry, Thank you for your help ! The process didn't go to the end when i launched cli_dispatch.phpsh ... but there was not visible errors... ( or i dont know how to make them visible) So, i decided to add and delete/move, some "die("DEBUG - die here");",line by line and script by script, to try to understand the problem... and to follow the process. To have sucess, i had to comment some lines ( detailed in my previous message). I know it is a wrong way to go, but i just wanted to try to understand what i did wrong. Finally i decided to use the "oldschool" method with the backpath but i had the same problem when trying to include the config_default.php. In this script there is a require of temp_CACHED_XXXX_ext_localconf.php and in this temp script there was the conf of some extensions i had to comment to have success ( timtab and imagemap_wizard). I decided to uninstall the two extensions, and the process go to the end? ! I didn't test again the cli_dispatch.phpsh method, cause i dont'know how to resolve the problem of the $BE_USER->backendCheckLogin(); and? the require_once(PATH_t3lib.'class.t3lib_befunc.php'); in "typo3/init.php". Moreover, i already take a look on your extension... ( i am developping an extension which import newsML Items in tt_news ). Dmitry Dulepov a ?crit : > Hi! > > Laurent Albertini wrote: >> I am working with TYPO3 4.2.6 and i am trying to launch a PHP script >> using the CLI mode. >> I tried the methode with cli_dispatch.phpsh , but i failed to make work >> the system. > > Failed?.. How exactly? > >> There was some lines of scripts? i have to comment to sucess to launch >> my php script. > > This is definitely a wrong way to go. > >> But do you have any advice on the first problem ? > > I have two ;) Firsts, tell us what exactly is the problem. Saying "failed" actually says nothing. There should be a error message at least. Secondly, take a look how other extensions work. Here is one simple example of CLI script: > > http://typo3.org/extensions/repository/view/yafi/current/info/cli%252Fcli_yafi.php/ > ------------------------------ Message: 4 Date: Wed, 08 Apr 2009 10:25:40 +0200 From: Rik Willems Subject: Re: [TYPO3-dev] Extension review To: typo3-dev at lists.netfielders.de Message-ID: ??? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hi Georg, Thanks for this quick reply. I though I used the upload comment field... ? Will look at it next time. The JS is hardcoded in irfaq original, that is why I used that too. Alternative is to set it through setup I suppose? I know documentation is important, I will upload that soon as an update with any suggestions that come from this list. Thanks again, Rik Georg Ringer schreef: > Rik Willems wrote: > > Some words: > - Please use the field "upload comment" > - I don't like hardcoded JS > >> NB: Documentation isn't yet available. I will add that soon. The >> extension is very simple in setup though, so it shouldn't be much of a >> problem. > > if the ext is very simple, the manual takes 30min time and still it is > important to know how it works! Is there an extra plugin or is there a > hook used and you need to set an additional marker, xclass used,.... > > > Georg ------------------------------ Message: 5 Date: Wed, 08 Apr 2009 10:47:45 +0200 From: Marcus Krause Subject: Re: [TYPO3-dev] TYPO3 on ATOM CPU To: typo3-dev at lists.netfielders.de Message-ID: Content-Type: text/plain; charset=ISO-8859-1 Hahnefeld Bjoern schrieb am 04/07/2009 04:26 PM Uhr: > Hello Marcus, > > This is no problem for development and hosting. I'm using the ATOM's > for both! Thank you all for your comments. Marcus. ------------------------------ Message: 6 Date: Wed, 08 Apr 2009 11:33:06 +0200 From: Krystian Szymukowicz Subject: [TYPO3-dev] new content object COA_GO - performance - need ??? some??? advise To: typo3-dev at lists.netfielders.de Message-ID: ??? Content-Type: text/plain; charset=UTF-8; format=flowed Hi Before I put it into TER I'd like to show you my extension and ask for some advise how to optimize it as it could be quite helpul ext for everyone. Extension adds new content object COA_GO. ( go = generate once) Whats extra in this cObj ? 1. cObj is generated only once (more in details) 2. cache period is supported 3. ajax is supported Where should you gain most? It's good for cObj that occurs in the same form at many pages, for example: a) news LATEST, forum LATEST, etc. b) menu ? the bigger is the more you gain more in speed (ACT can be simpulated by javascript) c) search input d) some footer, tools menu, etc. And its really easy to use it. See the example [1]: Simple COA: temp.a1 = COA temp.a1 = TEXT [...] After conversion to COA_GO temp.a1 = COA_GO temp.a1.cache.type = beforeCache_db temp.a1 = TEXT [...] That all! DETAILS: There are three types of caching type supported: ? ? 1. beforeCache_db ? ? 2. afterCache_file ? ? 3. ajax_file ============================== TYPE: "beforeCache_db" 1) cObject is generated once and the used by TYPO3 to generate other pages 2) Example: tt_news LATES with 10 real_url typolinks would render circa 150ms on each generated page. Now it will be generated once and fetched from cache to build the page. EXAMPLE as above [1]. ==================================== TYPE: "afterCache_file" 1) Its cached to file and fast delivered with file include. The only computing is to decide if the content expired or not. 2) If cache period expires it will regenerate cached cObjects. 3) content is replaced each time TYPO3 gets the page from cache (something like EXT_INT but cached to file and with cache period supported) EXAMPLE: temp.a1 = COA_GO temp.a1.cache.type = afterCache_file temp.a1.cache.period = 30 temp.a1.cache.hash = footer temp.a1 = TEXT [...] Where: "period" - time in seconds the hash expires "hash" - unigue name ? used in table cache_hash and as filename to write cached cObject. Choose it with care (means it should be unique and ready to be used as filename) ================================== TYPE: "ajax_file" 1) content is fetched using ajax 2) pages can be get from TYPO3 cache with full speed 3) pages can even be generated as static files (fe. nc_staticfilecache) 4) with static files no php_mod is executed so it can be extremly fast and still deliver dynamic content EXAMPLE temp.a1 = COA_GO temp.a1.cache.type = ajax_file temp.a1.cache.period = 30 temp.a1.cache.hash = footer temp.a1 = TEXT [...] ============================================================ All the three types works and can be tested (but are not optimal as its beta :) ) Esspecially I would like to ask you for advise how to make regeneration of the cObject more optimal. Now I fetch the url with no_cache parameter which I think is not a good idea. What I would like is to get URL that will regenerate only COA_GO object that are at the page. The best would be to have possibility to regenerate only selected COA_GO content objects. There is "hash" param in COA_GO that can be used to find only "this" COA_GO that sould be regenerated. Here is the graphical diagram. Maybe there is some more info. http://www.prolabium.com/coa_go/coa_go.gif And the extension to download for testing. (btw: ajax works now only in firefox, opera and chrome) http://www.prolabium.com/coa_go/coa_go.zip I hope you will like it and find some time for testing and giving some advices. Later this weekend I will put it on forge and create some more documentation. -- grtz Krystian Szymukowicz ------------------------------ _______________________________________________ TYPO3-dev mailing list TYPO3-dev at lists.netfielders.de http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev End of TYPO3-dev Digest, Vol 67, Issue 11 ***************************************** From stephane.baribeau at sys-tech.net Wed Apr 8 14:05:27 2009 From: stephane.baribeau at sys-tech.net (Stephane Baribeau) Date: Wed, 08 Apr 2009 08:05:27 -0400 Subject: [TYPO3-dev] TCEmain Hook. In-Reply-To: References: Message-ID: Hi Julian, hmmm ok lol my fault this time! :D Thanks for open my mind Julian Hofmann a ?crit : > Hi, > > the difference is in the class's filename after 't3lib': > 't3lib/class.t3lib.tcemain.php' - your code > 't3lib/class.t3lib_tcemain.php' - Georg's example. > > Julian > > _______________________________________________ > TYPO3-dev mailing list > TYPO3-dev at lists.netfielders.de > http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev > > !DSPAM:591,49dbdbd8285301383011969! > > > > -- *St?phane Baribeau* Programmeur stephane.baribeau at sys-tech.net 418 520-0739 poste 129 514 907-0036 / 1-877-969-8324 *SYS-TECH / Web, m?dias et technologies libres* 6700 BOUL PIERRE-BERTRAND BUREAU 209 QU?BEC QC G2J 0B4 http://www.sys-tech.net /Membre supporteur de l'Association TYPO3 / From typo3-german-02 at oliverklee.de Wed Apr 8 16:45:57 2009 From: typo3-german-02 at oliverklee.de (Oliver Klee) Date: Wed, 08 Apr 2009 16:45:57 +0200 Subject: [TYPO3-dev] Extension review In-Reply-To: References: Message-ID: Hi, Rik Willems schrieb: > Since this is my first extension I would really appreciate it if some of > you could shortly look into the code. I'd like to make sure it is > written properly so others can use it safely. Any suggestions are welcome. Some first thoughts concerning code readability: - Delete unused code instead of commenting it out (at least for code that's checked in to SVN or released in the TER). - Use proper PHP5-style access modifiers (public, private, protected) for functions and member variables (instead of "var"). - Also add @var comments (including the type and a description) for the member variables. - Add documentation for all functions. - Don't use abbreviations like colNr, nrCols, faqObj, res ... - Use proper capitalization: css -> CSS, faq -> FAQ, ... Oliver From j.a.m.v.d.wiel at tue.nl Wed Apr 8 17:53:13 2009 From: j.a.m.v.d.wiel at tue.nl (Wiel, J.A.M. van de) Date: Wed, 8 Apr 2009 17:53:13 +0200 Subject: [TYPO3-dev] TU/e TER mirror temporarily unavailable Message-ID: Hello all, We are replacing a number of servers at the moment, causing problems with the TU/e TER mirror. I would advise everyone to use a different mirror for the time being. We hope to resolve this issue within the next 24 hours. I will let you know as soon as the issues are resolved. With kind regards, Bas v.d. Wiel Eindhoven University of Technology From hphoeksma at stylence.nl Wed Apr 8 19:23:35 2009 From: hphoeksma at stylence.nl (Henjo Hoeksma) Date: Wed, 8 Apr 2009 19:23:35 +0200 Subject: [TYPO3-dev] how to update a flexform on a select change Message-ID: Hi dev's, I am trying to figure out how to update the flexform of a plugin when a select item has been set. The needed thing to happen is: on the selection of a categorie another selector must be updated with items belonging to that categorie. There is a relation between them by using IRRE (to which this is my first attempt :-) ) so maybe it can be done using that. My option would be a reload and then the 2nd selector appears (or gets filled)... I have looked - but propably using the wrong keywords to find what I am looking for. Thanks in advance for your response! Henjo -- Stylence | webdevelopment in style www.stylence.nl From rik at actiview.nl Thu Apr 9 08:43:47 2009 From: rik at actiview.nl (Rik Willems) Date: Thu, 09 Apr 2009 08:43:47 +0200 Subject: [TYPO3-dev] Extension review In-Reply-To: References: Message-ID: Hi Oliver, Thanks for your comments. Will bring them along for new version. I took irfaq as basis, that is why the style is php4. Rik Oliver Klee schreef: > Hi, > > Rik Willems schrieb: >> Since this is my first extension I would really appreciate it if some of >> you could shortly look into the code. I'd like to make sure it is >> written properly so others can use it safely. Any suggestions are welcome. > > Some first thoughts concerning code readability: > > - Delete unused code instead of commenting it out (at least for code > that's checked in to SVN or released in the TER). > - Use proper PHP5-style access modifiers (public, private, protected) > for functions and member variables (instead of "var"). > - Also add @var comments (including the type and a description) for the > member variables. > - Add documentation for all functions. > - Don't use abbreviations like colNr, nrCols, faqObj, res ... > - Use proper capitalization: css -> CSS, faq -> FAQ, ... > > > Oliver From j.a.m.v.d.wiel at tue.nl Thu Apr 9 11:09:18 2009 From: j.a.m.v.d.wiel at tue.nl (Wiel, J.A.M. van de) Date: Thu, 9 Apr 2009 11:09:18 +0200 Subject: [TYPO3-dev] TU/e TER mirror is up again Message-ID: Hello all, FYI: the TER mirror at the Eindhoven University of Technology should be working properly again. Bas From hagelstein at shr.cc Thu Apr 9 11:54:02 2009 From: hagelstein at shr.cc (Nikolas Hagelstein) Date: Thu, 9 Apr 2009 11:54:02 +0200 Subject: [TYPO3-dev] Resolving BACK_PATH using BE ajax via the ajax.php dispatcher. Message-ID: Hi there, What is TYPO3 best practise to receive the back_path from within a mod's ajax responder? (Needed to include init/conf etc.). Regards, Nikolas From info at sk-typo3.de Thu Apr 9 12:27:07 2009 From: info at sk-typo3.de (Steffen Kamper) Date: Thu, 09 Apr 2009 12:27:07 +0200 Subject: [TYPO3-dev] Resolving BACK_PATH using BE ajax via the ajax.php dispatcher. In-Reply-To: References: Message-ID: Hi, Nikolas Hagelstein schrieb: > Hi there, > > What is TYPO3 best practise to receive the back_path from within a mod's > ajax responder? > (Needed to include init/conf etc.). > > Regards, > Nikolas use the ajax.php with registered handle. Look eg in opendocs how it's done. vg Steffen From hagelstein at shr.cc Thu Apr 9 12:40:02 2009 From: hagelstein at shr.cc (Nikolas Hagelstein) Date: Thu, 9 Apr 2009 12:40:02 +0200 Subject: [TYPO3-dev] Resolving BACK_PATH using BE ajax via the ajax.php dispatcher. References: Message-ID: Hi, > use the ajax.php with registered handle. Look eg in opendocs how it's > done. Well actually I am looking for a way to check access privileges within the ajax responder script. Placing something like: -- require_once(t3lib_extMgm::extPath('xyz) . '/mod1/conf.php'); $GLOBALS['BE_USER']->modAccess($MCONF,1) -- Into the constructer of the registered class/functions seems a little odd to me. Regards, Nikolas From mathias.schreiber at wmdb.de Thu Apr 9 13:16:03 2009 From: mathias.schreiber at wmdb.de (Mathias Schreiber [wmdb >]) Date: Thu, 09 Apr 2009 13:16:03 +0200 Subject: [TYPO3-dev] how to update a flexform on a select change In-Reply-To: References: Message-ID: Henjo Hoeksma schrieb: > Hi dev's, > > I am trying to figure out how to update the flexform of a plugin when a > select item has been set. > > The needed thing to happen is: on the selection of a categorie another > selector must be updated with items belonging to that categorie. > > There is a relation between them by using IRRE (to which this is my > first attempt :-) ) so maybe it can be done using that. > > My option would be a reload and then the 2nd selector appears (or gets > filled)... > > I have looked - but propably using the wrong keywords to find what I am > looking for. I think what you try to do is not possible "by default". But the extension dynaflex could help you out. Bit tricky to configure and quite unstable when used with RTEs (the last time I checked, around january) but if no RTEs were used it worked quite well. cheers Mathias From dmitry at typo3.org Thu Apr 9 13:25:34 2009 From: dmitry at typo3.org (Dmitry Dulepov) Date: Thu, 09 Apr 2009 14:25:34 +0300 Subject: [TYPO3-dev] how to update a flexform on a select change In-Reply-To: References: Message-ID: Hi! Henjo Hoeksma wrote: > My option would be a reload and then the 2nd selector appears (or gets > filled)... > > I have looked - but propably using the wrong keywords to find what I am > looking for. Keywords: onChange -> for flexforms requestUpdate -> for regular fields -- Dmitry Dulepov In TYPO3 blog: http://dmitry-dulepov.com/article/typo3-seo-keep-your-links-working.html Twitter: http://twitter.com/dmitryd Skype: liels_bugs From gabor at h3online.hu Thu Apr 9 14:57:01 2009 From: gabor at h3online.hu (=?ISO-8859-2?Q?Horn_G=E1bor?=) Date: Thu, 09 Apr 2009 14:57:01 +0200 Subject: [TYPO3-dev] link from mini month view to event view possible? Message-ID: Hello, we use cal extension and it's great, but owuld like to aks for some advice. We only have all day events, and we would like the mini month view to link the days to the event themselves instead of teh day view. It's now a bit confusing that the all day events doesn't appear anywhere in the day view (we didn't set start or endtime to them ...well as they are all day events). If we click on teh week or month in the mini month view then we can click on the title of the events to get teh event view, but most user naturally clicks on the days themselves on the minimap view and it's confusing this way. Is there any way to achieve thsi fucntionality please, or have the day view automatically show the event view of an event if there is only 1 all day event on the given day? thanks, Gabor Horn From hphoeksma at stylence.nl Thu Apr 9 15:47:21 2009 From: hphoeksma at stylence.nl (Henjo Hoeksma) Date: Thu, 9 Apr 2009 15:47:21 +0200 Subject: [TYPO3-dev] how to update a flexform on a select change References: Message-ID: On 2009-04-09 13:16:03 +0200, "Mathias Schreiber [wmdb >]" said: > Henjo Hoeksma schrieb: >> Hi dev's, >> >> I am trying to figure out how to update the flexform of a plugin when a >> select item has been set. >> >> The needed thing to happen is: on the selection of a categorie another >> selector must be updated with items belonging to that categorie. >> >> There is a relation between them by using IRRE (to which this is my >> first attempt :-) ) so maybe it can be done using that. >> >> My option would be a reload and then the 2nd selector appears (or gets >> filled)... >> >> I have looked - but propably using the wrong keywords to find what I am >> looking for. > > I think what you try to do is not possible "by default". > But the extension dynaflex could help you out. > > Bit tricky to configure and quite unstable when used with RTEs (the > last time I checked, around january) but if no RTEs were used it worked > quite well. > > cheers > Mathias Thanks, I've seen that - but not sure wether I want to use that... ;-) -- Stylence | webdevelopment in style www.stylence.nl From hphoeksma at stylence.nl Thu Apr 9 15:48:23 2009 From: hphoeksma at stylence.nl (Henjo Hoeksma) Date: Thu, 9 Apr 2009 15:48:23 +0200 Subject: [TYPO3-dev] how to update a flexform on a select change References: Message-ID: On 2009-04-09 13:25:34 +0200, Dmitry Dulepov said: > Hi! > > Henjo Hoeksma wrote: >> My option would be a reload and then the 2nd selector appears (or gets >> filled)... >> >> I have looked - but propably using the wrong keywords to find what I am >> looking for. > > Keywords: > onChange -> for flexforms > requestUpdate -> for regular fields Hi Dmitry, thanks for the keywords. The requestUpdate I found, the onChange I didn't - and that's more what I need. Henjo -- Stylence | webdevelopment in style www.stylence.nl From dmitry at typo3.org Thu Apr 9 18:02:48 2009 From: dmitry at typo3.org (Dmitry Dulepov) Date: Thu, 09 Apr 2009 19:02:48 +0300 Subject: [TYPO3-dev] how to update a flexform on a select change In-Reply-To: References: Message-ID: Hi! Henjo Hoeksma wrote: > thanks for the keywords. The requestUpdate I found, the onChange I > didn't - and that's more what I need. Here in an example of flexform DS field: reload select .............. When the value changes, the form will prompt to reload. -- Dmitry Dulepov In TYPO3 blog: http://dmitry-dulepov.com/article/typo3-seo-keep-your-links-working.html Twitter: http://twitter.com/dmitryd Skype: liels_bugs From dmitry at typo3.org Thu Apr 9 18:04:37 2009 From: dmitry at typo3.org (Dmitry Dulepov) Date: Thu, 09 Apr 2009 19:04:37 +0300 Subject: [TYPO3-dev] how to update a flexform on a select change In-Reply-To: References: Message-ID: Oops, forgot one thing... Dmitry Dulepov wrote: > Here in an example of flexform DS field: ...and you can get the value of this selector for the using ###FIELD:select_field_name### (see in TSRef). So you will be able to fill the second selector with the values that are valid for the first selector. -- Dmitry Dulepov In TYPO3 blog: http://dmitry-dulepov.com/article/typo3-seo-keep-your-links-working.html Twitter: http://twitter.com/dmitryd Skype: liels_bugs From vsbies at wp.pl Fri Apr 10 07:08:33 2009 From: vsbies at wp.pl (Marcus 'biesior' Biesioroff) Date: Fri, 10 Apr 2009 07:08:33 +0200 Subject: [TYPO3-dev] new content object COA_GO - performance - need some advise In-Reply-To: References: Message-ID: Krystian Szymukowicz wrote: > Hi > > Before I put it into TER I'd like to show you my extension and ask for > some advise how to optimize it as it could be quite helpul ext for > everyone. > > Extension adds new content object COA_GO. ( go = generate once) > > > It's good for cObj that occurs in the same form at many pages, for example: > b) menu ? the bigger is the more you gain more in speed (ACT can be > simpulated by javascript) ellou' Krystian! Sounds great... works great :) I've got a huge JS dropdown menu, which consumes about 80% (ca. 800ms) of time needed for page generating ... every page :/. I also have few elements which require clearing of the whole FE cache at some few hours ... so I was looking for the way that will do... exactly what COA_GO does... for me it's revelation! ;) There is some problem with first method mentioned by you - beforeCache_db - when using with TemplaVoila the COA_GO content doesn't show on the page where it was generated (but on the other pages it is OK). Second and third ways works (probably) as they should do... :) I have a large implementation, on the almost-production state, so I will test more elements (as you mentioned few LATEST and LIST views) to check how does it work in general use... :) I'll let you know as fast as possible :) Thx! -- Marcus 'biesior' Biesioroff a.k.a. Marek Krawczyk (original) Polish TYPO3 Community Proud Member http://typo3.pl From t33k.RE.MO.VE at RE.MO.VE.prolabium.com Fri Apr 10 08:37:01 2009 From: t33k.RE.MO.VE at RE.MO.VE.prolabium.com (Krystian Szymukowicz) Date: Fri, 10 Apr 2009 08:37:01 +0200 Subject: [TYPO3-dev] new content object COA_GO - performance - need some advise In-Reply-To: References: Message-ID: Marcus 'biesior' Biesioroff wrote: > > Sounds great... works great :) I've got a huge JS dropdown menu, which > consumes about 80% (ca. 800ms) of time needed for page generating ... > every page :/. So this is a really big menu. And a really good case to use COA_GO :) > There is some problem with first method mentioned by you - > beforeCache_db - when using with TemplaVoila the COA_GO content doesn't > show on the page where it was generated (but on the other pages it is > OK). Second and third ways works (probably) as they should do... :) Whups - it was a simple bug and has nothing to do with TV. I've focused on testing afterCache_file and ajax_file and did not test properly the first method beforeCache_db. Sorry. I've uploaded new version [1] - it would be great if you can test it. Tnx. [1] http://prolabium.com/coa_go/coa_go.zip > I have a large implementation, on the almost-production state, so I will > test more elements (as you mentioned few LATEST and LIST views) to check > how does it work in general use... :) Nice to hear that COA_GO has just found its way in first production site! As I can see in your case it was a big time generation improvment. I am sure that integrating tt_news LATEST as "cache.type = ajax_file" or as "cache.type = afterCache_file" will make general performance of your site really great as there will be no need to clear cache of pages that have tt_news LATEST. If you have any trouble do not hestitate to ask. -- grtz Krystian Szymukowicz From masi-no at spam-typo3.org Fri Apr 10 11:25:47 2009 From: masi-no at spam-typo3.org (Martin Kutschker) Date: Fri, 10 Apr 2009 11:25:47 +0200 Subject: [TYPO3-dev] Resolving BACK_PATH using BE ajax via the ajax.php dispatcher. In-Reply-To: References: Message-ID: Nikolas Hagelstein schrieb: > Hi, > >> use the ajax.php with registered handle. Look eg in opendocs how it's >> done. > Well actually I am looking for a way to check access privileges within > the ajax responder script. > Placing something like: > -- > require_once(t3lib_extMgm::extPath('xyz) . '/mod1/conf.php'); > $GLOBALS['BE_USER']->modAccess($MCONF,1) > -- > Into the constructer of the registered class/functions seems a little > odd to me. Then add it directly to the handler method you have registered or put it into some init method. Or do the check in the constructor and set a status property to be checked by the handler, which tells if the access has been granted or not. Masi From typo.removeformessage at fx-graefix.de Fri Apr 10 17:05:34 2009 From: typo.removeformessage at fx-graefix.de (Franz Koch) Date: Fri, 10 Apr 2009 17:05:34 +0200 Subject: [TYPO3-dev] link from mini month view to event view possible? In-Reply-To: References: Message-ID: Hi, > we use cal extension and it's great, but owuld like to aks for some > advice. We only have all day events, and we would like the mini month > view to link the days to the event themselves instead of teh day view. > It's now a bit confusing that the all day events doesn't appear > anywhere in the day view (we didn't set start or endtime to them ...well > as they are all day events). If we click on teh week or month in the > mini month view then we can click on the title of the events to get teh > event view, but most user naturally clicks on the days themselves on the > minimap view and it's confusing this way. > > Is there any way to achieve thsi fucntionality please, or have the day > view automatically show the event view of an event if there is only 1 > all day event on the given day? this is definitely the wrong list for the question - but you already ask it in the calender newsgroup where I just wrote a solution for your problem. -- kind regards, Franz Koch --------------------------------------------------- PayPal-Account: 'paypal _at_ elements-net _dot_ de' --------------------------------------------------- From Markus.Deckmann79 at web.de Sat Apr 11 00:00:23 2009 From: Markus.Deckmann79 at web.de (Markus Deckmann) Date: Sat, 11 Apr 2009 00:00:23 +0200 Subject: [TYPO3-dev] Best Practise Message-ID: Hi, I try it in typo3.english but no answer is follow. Now I think its maybe a developement question... in my current project I use tt_news for manage news-items and tt_address for assign address-items to every tt_news-item. In FE the users can administrate the tt_news in one section of the page and the tt_address-items in anothter section of page. Administration of every item happens with Typo3-standard FE-Editing. For assign tt_address-items to a tt_news-item the user should not use the standard FE-Editing feature. In this case I want change the view to the existing FE address-management, choose the right address and return the selection to the tt_news-item. The tt_news-item should save this selection. Whats the best practise for this request? Any ideas? Bye Markus From dmitry at typo3.org Sat Apr 11 07:50:34 2009 From: dmitry at typo3.org (Dmitry Dulepov) Date: Sat, 11 Apr 2009 08:50:34 +0300 Subject: [TYPO3-dev] Best Practise In-Reply-To: References: Message-ID: Hi! Markus Deckmann wrote: > I try it in typo3.english but no answer is follow. Now I think its maybe > a developement question... Most likely no one knows. -- Dmitry Dulepov In TYPO3 blog: http://dmitry-dulepov.com/article/cbrealurl-preconfigure-your-realurl.html LinkedIn: http://www.linkedin.com/in/dmitrydulepov Twitter: http://twitter.com/dmitryd Skype: liels_bugs From steffen at steffen-gebert.de Sat Apr 11 14:25:10 2009 From: steffen at steffen-gebert.de (Steffen Gebert) Date: Sat, 11 Apr 2009 14:25:10 +0200 Subject: [TYPO3-dev] config.extTarget in menus Message-ID: Hi list, I'm just a bit puzzled, why config.extTarget doesn't affect pagetype "Link to external URL" in menus. I had some debug runs and couldn't find any code in menu generation which is affected by extTarget. Am I right that this isn't supposed to be this way? Steffen From gabor.nyeste83 at gmail.com Sat Apr 11 15:04:22 2009 From: gabor.nyeste83 at gmail.com (=?ISO-8859-1?Q?G=E1bor_Nyeste?=) Date: Sat, 11 Apr 2009 15:04:22 +0200 Subject: [TYPO3-dev] Web CMS research Message-ID: Dier Typo3 Developer! I am a student of Corvinus University of Budapest and I'm writing my thesis in the theme of open source web content management systems. I would like to ask you for help to my research so that I can get acquinted with the world of open source development. Please take a moment to fill out my survey. Survey URL: ** http://survey.e-businessportal.hu/index.php?sid=63134&lang=en Thanks Gabor Nyeste From typo3 at rvt.dds.nl Sat Apr 11 15:28:41 2009 From: typo3 at rvt.dds.nl (Ries van Twisk) Date: Sat, 11 Apr 2009 08:28:41 -0500 Subject: [TYPO3-dev] Web CMS research In-Reply-To: References: Message-ID: On Apr 11, 2009, at 8:04 AM, G?bor Nyeste wrote: > Dier Typo3 Developer! > > I am a student of Corvinus University of Budapest and I'm writing my > thesis > in the theme of open source web content management systems. I would > like to > ask you for help to my research so that I can get acquinted with the > world > of open source development. Please take a moment to fill out my > survey. > > Survey URL: > > ** > http://survey.e-businessportal.hu/index.php?sid=63134&lang=en > > Thanks > > Gabor NyesteGabor, Gabor, where are you going to post your results?? We see more and more of these surveys coming in, and in this case even through a business portal!!! You don't use a open source survey tool, so how can we know you are a student at all? Ries From falcifer2001 at yahoo.es Sat Apr 11 19:03:52 2009 From: falcifer2001 at yahoo.es (falcifer) Date: Sat, 11 Apr 2009 17:03:52 +0000 (UTC) Subject: [TYPO3-dev] flexform removes '&' character Message-ID: Hello I have defined a flexform field to store parameters of an URL like a string (something like tx_ttnews[tt_news]=###UID###&no_cache=1) but after save the record it always has stored tx_ttnews[tt_news] =###UID###no_cache=1 whithout the '&' Any ideas?, please help, I've lost several hours with it 1 From hphoeksma at stylence.nl Sat Apr 11 20:42:06 2009 From: hphoeksma at stylence.nl (Henjo Hoeksma) Date: Sat, 11 Apr 2009 20:42:06 +0200 Subject: [TYPO3-dev] how to update a flexform on a select change References: Message-ID: On 2009-04-09 18:04:37 +0200, Dmitry Dulepov said: > Oops, forgot one thing... > > Dmitry Dulepov wrote: >> Here in an example of flexform DS field: > > ...and you can get the value of this selector for the > using ###FIELD:select_field_name### (see in TSRef). So you will be able > to fill the second selector with the values that are valid for the > first selector. Thanks a million! -- Stylence | webdevelopment in style www.stylence.nl From typo3 at t3node.com Sat Apr 11 20:44:45 2009 From: typo3 at t3node.com (=?UTF-8?B?U3RlZmZlbiBNw7xsbGVy?=) Date: Sat, 11 Apr 2009 20:44:45 +0200 Subject: [TYPO3-dev] flexform removes '&' character In-Reply-To: References: Message-ID: Hi. On 11.04.2009 19:03 falcifer wrote: > I have defined a flexform field to store parameters of an URL like a > string (something like tx_ttnews[tt_news]=###UID###&no_cache=1) but after > save the record it always has stored tx_ttnews[tt_news] > =###UID###no_cache=1 whithout the '&' > 1) I cannot reproduce your problem. Make sure you use TYPO3 API to get the params from DB. & gets stored in the DB as & because of XML rules. 2) We use real names on this list. Chances are higher to a get potential solution without pseudonym. -- cheers, Steffen http://www.t3node.com/ From dmitry at typo3.org Sat Apr 11 21:56:23 2009 From: dmitry at typo3.org (Dmitry Dulepov) Date: Sat, 11 Apr 2009 22:56:23 +0300 Subject: [TYPO3-dev] flexform removes '&' character In-Reply-To: References: Message-ID: Hi! falcifer wrote: > I have defined a flexform field to store parameters of an URL like a > string (something like tx_ttnews[tt_news]=###UID###&no_cache=1) but after > save the record it always has stored tx_ttnews[tt_news] > =###UID###no_cache=1 whithout the '&' > > Any ideas?, please help, I've lost several hours with it This is a known bug in libxml.so. Upgrade it. -- Dmitry Dulepov In TYPO3 blog: http://dmitry-dulepov.com/article/cbrealurl-preconfigure-your-realurl.html LinkedIn: http://www.linkedin.com/in/dmitrydulepov Twitter: http://twitter.com/dmitryd Skype: liels_bugs From dmitry at typo3.org Sat Apr 11 21:58:12 2009 From: dmitry at typo3.org (Dmitry Dulepov) Date: Sat, 11 Apr 2009 22:58:12 +0300 Subject: [TYPO3-dev] Web CMS research In-Reply-To: References: Message-ID: Hi! G?bor Nyeste wrote: > I am a student of Corvinus University of Budapest and I'm writing my thesis > in the theme of open source web content management systems. I would like to > ask you for help to my research so that I can get acquinted with the world > of open source development. Please take a moment to fill out my survey. I wonder why a research needs filling a survey. I think spending a day or two analyzing the web would produce much more results. -- Dmitry Dulepov In TYPO3 blog: http://dmitry-dulepov.com/article/cbrealurl-preconfigure-your-realurl.html LinkedIn: http://www.linkedin.com/in/dmitrydulepov Twitter: http://twitter.com/dmitryd Skype: liels_bugs From typo3 at perseguers.ch Sun Apr 12 09:53:12 2009 From: typo3 at perseguers.ch (Xavier Perseguers) Date: Sun, 12 Apr 2009 09:53:12 +0200 Subject: [TYPO3-dev] Extension review In-Reply-To: References: Message-ID: Hi Rik, Had a quick overview to give you feedback. > Since this is my first extension I would really appreciate it if some of > you could shortly look into the code. I'd like to make sure it is > written properly so others can use it safely. Any suggestions are welcome. ------- ((isset($this->conf['numberOfColumns']) && $this->conf['numberOfColumns'] > 0 ) ? $this->numberOfColumns = $this->conf['numberOfColumns'] : $this->numberOfColumns = 1); Use a "if". The "? :" ternary operator should not be used in place of a if, but only for (short) assignment like: $foo = $someTest ? $value1 : $value2; You use it as a if and put code that has side-effects in true/false parts, that is not "good" coding. ------- $columnbreak = ''; camelCase? ------- doc/wizard_form.dat doc/wizard_form.html Remove kickstarter files when you won't be able to go back to kickstarter anyway without destroying your work. Regards -- Xavier Perseguers http://xavier.perseguers.ch/en One contribution a day keeps the fork away From typo3news at otherone.de Sun Apr 12 12:38:05 2009 From: typo3news at otherone.de (Uschi Renziehausen) Date: Sun, 12 Apr 2009 12:38:05 +0200 Subject: [TYPO3-dev] Why are certain submodules of Admin tools hidden in Draft-workspace? Message-ID: Hi folks, I have been in panic for three hours now because all of a sudden the following admin tools were missing: - Ext Manager - Configuration - Installation It took me some time to find out what the reason was: I was working in Draft workspace. Is there a reason for hiding those modules away when working in that workspace? Uschi (who would be grateful for enlightenment) From mail at niels-pardon.de Sun Apr 12 12:42:20 2009 From: mail at niels-pardon.de (Niels Pardon) Date: Sun, 12 Apr 2009 12:42:20 +0200 Subject: [TYPO3-dev] Why are certain submodules of Admin tools hidden in Draft-workspace? In-Reply-To: References: Message-ID: Hi Uschi! Uschi Renziehausen schrieb: > Hi folks, > > I have been in panic for three hours now because all of a sudden the > following admin tools were missing: > > - Ext Manager > - Configuration > - Installation > > It took me some time to find out what the reason was: I was working in > Draft workspace. Is there a reason for hiding those modules away when > working in that workspace? Just a guess. It is not possible to install an extension only in a specific workspace. The same for configuration or installation. You can't modify any variables neither through the Install Tool nor through the configuration module just for a specific workspace. Greets, Niels From typo3news at otherone.de Sun Apr 12 12:49:09 2009 From: typo3news at otherone.de (Uschi Renziehausen) Date: Sun, 12 Apr 2009 12:49:09 +0200 Subject: [TYPO3-dev] Why are certain submodules of Admin tools hidden in Draft-workspace? In-Reply-To: References: Message-ID: Hi Niels, > > Just a guess. It is not possible to install an extension only in a > specific workspace. The same for configuration or installation. You > can't modify any variables neither through the Install Tool nor through > the configuration module just for a specific workspace. > Thx, sounds reasonable. You cannot change anything in Module Configuration though, so at least that one could be enabled. Kind regards and many easter eggs for everybody, Uschi From dmitry at typo3.org Sun Apr 12 14:53:26 2009 From: dmitry at typo3.org (Dmitry Dulepov) Date: Sun, 12 Apr 2009 15:53:26 +0300 Subject: [TYPO3-dev] Why are certain submodules of Admin tools hidden in Draft-workspace? In-Reply-To: References: Message-ID: Hi! Uschi Renziehausen wrote: > I have been in panic for three hours now because all of a sudden the > following admin tools were missing: > > - Ext Manager > - Configuration > - Installation Kasper's decision. -- Dmitry Dulepov In TYPO3 blog: http://dmitry-dulepov.com/article/artificial-intelligence.html LinkedIn: http://www.linkedin.com/in/dmitrydulepov Twitter: http://twitter.com/dmitryd Skype: liels_bugs From masi-no at spam-typo3.org Sun Apr 12 17:22:17 2009 From: masi-no at spam-typo3.org (Martin Kutschker) Date: Sun, 12 Apr 2009 17:22:17 +0200 Subject: [TYPO3-dev] Why are certain submodules of Admin tools hidden in Draft-workspace? In-Reply-To: References: Message-ID: Uschi Renziehausen schrieb: > Hi folks, > > I have been in panic for three hours now because all of a sudden the > following admin tools were missing: In a workspace you see only these options you can modify in it, ie everything that can be versionized. The only exceptions are currently file mounts. But also for admins only those file mounts are shown that are configured for the workspace. Masi From info at sk-typo3.de Sun Apr 12 18:22:10 2009 From: info at sk-typo3.de (Steffen Kamper) Date: Sun, 12 Apr 2009 18:22:10 +0200 Subject: [TYPO3-dev] flexform removes '&' character In-Reply-To: References: Message-ID: Hi, Dmitry Dulepov schrieb: > Hi! > > falcifer wrote: >> I have defined a flexform field to store parameters of an URL like a >> string (something like tx_ttnews[tt_news]=###UID###&no_cache=1) but after >> save the record it always has stored tx_ttnews[tt_news] >> =###UID###no_cache=1 whithout the '&' >> >> Any ideas?, please help, I've lost several hours with it > > This is a known bug in libxml.so. Upgrade it. > i just encountered same problem on a site where the useCData was set, but inside Wizard config in flexform results in url browse_links.php?mode=wizardact=file|url which doesn't work obviously. I have no idea how to prevent this. On local system and other sites this works. vg Steffen From dmitry at typo3.org Sun Apr 12 18:57:07 2009 From: dmitry at typo3.org (Dmitry Dulepov) Date: Sun, 12 Apr 2009 19:57:07 +0300 Subject: [TYPO3-dev] flexform removes '&' character In-Reply-To: References: Message-ID: Hi! Steffen Kamper wrote: > i just encountered same problem on a site where the useCData was set, but > > > > inside Wizard config in flexform results in url > browse_links.php?mode=wizardact=file|url > > which doesn't work obviously. > I have no idea how to prevent this. On local system and other sites this > works. As I wrote :) It is a bug in some versions of libxml. Unfortunately it slipped into some Debian distributions. The only way to prevent it is to upgrade libxml.so. No other workarounds exist I think. -- Dmitry Dulepov In TYPO3 blog: http://dmitry-dulepov.com/article/artificial-intelligence.html LinkedIn: http://www.linkedin.com/in/dmitrydulepov Twitter: http://twitter.com/dmitryd Skype: liels_bugs From falcifer2001 at yahoo.es Mon Apr 13 09:41:55 2009 From: falcifer2001 at yahoo.es (Fernando) Date: Mon, 13 Apr 2009 07:41:55 +0000 (UTC) Subject: [TYPO3-dev] flexform removes '&' character References: Message-ID: Dmitry is right, I was a bug with php-xml. Just upgraded it and now it works Fernando A. THANKS!! El Sun, 12 Apr 2009 19:57:07 +0300, Dmitry Dulepov escribi?: > Hi! > > Steffen Kamper wrote: >> i just encountered same problem on a site where the useCData was set, >> but >> >> >> >> inside Wizard config in flexform results in url >> browse_links.php?mode=wizardact=file|url >> >> which doesn't work obviously. >> I have no idea how to prevent this. On local system and other sites >> this works. > > As I wrote :) It is a bug in some versions of libxml. Unfortunately it > slipped into some Debian distributions. The only way to prevent it is to > upgrade libxml.so. No other workarounds exist I think. From Markus.Deckmann79 at web.de Mon Apr 13 14:01:41 2009 From: Markus.Deckmann79 at web.de (Markus Deckmann) Date: Mon, 13 Apr 2009 14:01:41 +0200 Subject: [TYPO3-dev] Own fieldtype in BE-form Message-ID: Hi, it is possible to create a own field-type for editing in BE-forms? For example, tt_news used a own treeview-selector for categories in the BE-forms. I want to create a little search-form on the right side, the elements i searched and select should be saved on the left side of the selection field. Is this possible in typo3? Bye Markus From jigal at xs4all.nl Mon Apr 13 14:53:58 2009 From: jigal at xs4all.nl (Jigal van Hemert) Date: Mon, 13 Apr 2009 14:53:58 +0200 (CEST) Subject: [TYPO3-dev] Own fieldtype in BE-form Message-ID: > BE-forms. I want to create a little search-form on the right side, the > elements i searched and select should be saved on the left side of the > selection field. I think you describe something that tagpack uses: a select list for the tags associated with the record plus an AJAX powered search form to make it easier to select previously used tags. -- Jigal van Hemert. From info at sk-typo3.de Mon Apr 13 16:47:30 2009 From: info at sk-typo3.de (Steffen Kamper) Date: Mon, 13 Apr 2009 16:47:30 +0200 Subject: [TYPO3-dev] Own fieldtype in BE-form In-Reply-To: References: Message-ID: Hi, Markus Deckmann schrieb: > Hi, > > it is possible to create a own field-type for editing in BE-forms? For > example, tt_news used a own treeview-selector for categories in the > BE-forms. I want to create a little search-form on the right side, the > elements i searched and select should be saved on the left side of the > selection field. > > Is this possible in typo3? > > Bye Markus with 'form_type' => 'user' you can do what you want as you have to render the field. Remember that in most cases you additionally need hooks for tcemain save/update to handle your field correct. vg Steffen From vsbies at wp.pl Tue Apr 14 12:00:20 2009 From: vsbies at wp.pl (Marcus 'biesior' Biesioroff) Date: Tue, 14 Apr 2009 12:00:20 +0200 Subject: [TYPO3-dev] new content object COA_GO - performance - need some advise In-Reply-To: References: Message-ID: Krystian Szymukowicz wrote: >> There is some problem with first method mentioned by you... > > I've uploaded new version [1] - it would be great if you can test it. Sorry - I was on the holidays ;] yes, it's working now :) I also made JS-ACT for buttons (in my case via Mootools, which I use on every page), so finaly it works in my implementation without any errors :) I'll let you know, when I'll test it on the other elements! Thx! -- Marcus 'biesior' Biesioroff a.k.a. Marek Krawczyk (original) Polish TYPO3 Community Proud Member http://typo3.pl From info at sk-typo3.de Tue Apr 14 12:38:35 2009 From: info at sk-typo3.de (Steffen Kamper) Date: Tue, 14 Apr 2009 12:38:35 +0200 Subject: [TYPO3-dev] flexform removes '&' character In-Reply-To: References: Message-ID: Hi, Dmitry Dulepov schrieb: > Hi! > > Steffen Kamper wrote: >> i just encountered same problem on a site where the useCData was set, but >> >> >> >> inside Wizard config in flexform results in url >> browse_links.php?mode=wizardact=file|url >> >> which doesn't work obviously. >> I have no idea how to prevent this. On local system and other sites this >> works. > > As I wrote :) It is a bug in some versions of libxml. Unfortunately it slipped into some Debian distributions. The only way to prevent it is to upgrade libxml.so. No other workarounds exist I think. > update to libxml Version 2.7.3 solved the problem for me. I ask myself if there is any possibility for a workaround for people which are not able to update, any magic xml-settings? vg Steffen From mathias.schreiber at wmdb.de Tue Apr 14 14:25:36 2009 From: mathias.schreiber at wmdb.de (Mathias Schreiber [wmdb >]) Date: Tue, 14 Apr 2009 14:25:36 +0200 Subject: [TYPO3-dev] Why are certain submodules of Admin tools hidden in Draft-workspace? In-Reply-To: References: Message-ID: Uschi Renziehausen schrieb: > Hi Niels, > >> >> Just a guess. It is not possible to install an extension only in a >> specific workspace. The same for configuration or installation. You >> can't modify any variables neither through the Install Tool nor through >> the configuration module just for a specific workspace. >> > > Thx, sounds reasonable. You cannot change anything in Module > Configuration though, so at least that one could be enabled. not "yet". I think theidea to hide these modules is a wise one, since it could be easily confused with other "versioned" stuff you set. So better hide them before people will start to load extensions only for their curent workspace. On the other hand... just a thought... What implications would it have to dynamically load extensions (post-cache) while being in a workspace? cheers Mathias From news at ringerge.org Tue Apr 14 14:44:59 2009 From: news at ringerge.org (Georg Ringer) Date: Tue, 14 Apr 2009 14:44:59 +0200 Subject: [TYPO3-dev] Worspace: Review of own records shouldn't be possible In-Reply-To: References: Message-ID: Hi, anyone? georg From masi-no at spam-typo3.org Tue Apr 14 14:57:07 2009 From: masi-no at spam-typo3.org (Martin Kutschker) Date: Tue, 14 Apr 2009 14:57:07 +0200 Subject: [TYPO3-dev] Why are certain submodules of Admin tools hidden in Draft-workspace? In-Reply-To: References: Message-ID: Mathias Schreiber [wmdb >] schrieb: > > On the other hand... just a thought... > What implications would it have to dynamically load extensions > (post-cache) while being in a workspace? None. See my other post for reasonings why certain modules are hidden. Masi From stephane.baribeau at sys-tech.net Tue Apr 14 19:54:47 2009 From: stephane.baribeau at sys-tech.net (Stephane Baribeau) Date: Tue, 14 Apr 2009 13:54:47 -0400 Subject: [TYPO3-dev] Air Filemanager with Indexed Search Engine? Message-ID: Hi everyone, I need hint about my mistake. I use Indexed Search Engine extension, with Air Filemanager. The problem is Air filemanager don't use cache. So ISE dont index the file are use with AFM! Does anyone of you know a soluce that i can use? I searched on google, but all discussion dated from '06. So i think that someone can help if the problem have been reported. I have found a soluce to make a patch of AFM to use cache typo3 system but does we have another way to generate file structure from DAM with ISE? Thanks for your help. Have a nice day! -- *St?phane Baribeau* Programmeur stephane.baribeau at sys-tech.net 418 520-0739 poste 129 514 907-0036 / 1-877-969-8324 *SYS-TECH / Web, m?dias et technologies libres* 6700 BOUL PIERRE-BERTRAND BUREAU 209 QU?BEC QC G2J 0B4 http://www.sys-tech.net /Membre supporteur de l'Association TYPO3 / From dmitry at typo3.org Wed Apr 15 06:38:49 2009 From: dmitry at typo3.org (Dmitry Dulepov) Date: Wed, 15 Apr 2009 07:38:49 +0300 Subject: [TYPO3-dev] Air Filemanager with Indexed Search Engine? In-Reply-To: References: Message-ID: Hi! Stephane Baribeau wrote: > I use Indexed Search Engine extension, with Air Filemanager. > The problem is Air filemanager don't use cache. > So ISE dont index the file are use with AFM! If you want indexed search to index content, the content must be cached. There is no other way. But I do not think you can use file manager in such case. So there is no easy solution. -- Dmitry Dulepov In TYPO3 blog: http://dmitry-dulepov.com/article/microsofts-msnbot-acts-crazy.html LinkedIn: http://www.linkedin.com/in/dmitrydulepov Twitter: http://twitter.com/dmitryd Skype: liels_bugs From dmitry at typo3.org Wed Apr 15 06:39:50 2009 From: dmitry at typo3.org (Dmitry Dulepov) Date: Wed, 15 Apr 2009 07:39:50 +0300 Subject: [TYPO3-dev] Worspace: Review of own records shouldn't be possible In-Reply-To: References: Message-ID: Hi! Georg Ringer wrote: > anyone? What if I work alone and use workspaces? Why can't I use the full cycle in such case? :) -- Dmitry Dulepov In TYPO3 blog: http://dmitry-dulepov.com/article/microsofts-msnbot-acts-crazy.html LinkedIn: http://www.linkedin.com/in/dmitrydulepov Twitter: http://twitter.com/dmitryd Skype: liels_bugs From dmitry at typo3.org Wed Apr 15 06:41:14 2009 From: dmitry at typo3.org (Dmitry Dulepov) Date: Wed, 15 Apr 2009 07:41:14 +0300 Subject: [TYPO3-dev] flexform removes '&' character In-Reply-To: References: Message-ID: Hi! Steffen Kamper wrote: > update to libxml Version 2.7.3 solved the problem for me. > I ask myself if there is any possibility for a workaround for people > which are not able to update, any magic xml-settings? Convert all & to uniqid() before parsing and back after parsing... But this will be the workaround I really dislike to make in any system. -- Dmitry Dulepov In TYPO3 blog: http://dmitry-dulepov.com/article/microsofts-msnbot-acts-crazy.html LinkedIn: http://www.linkedin.com/in/dmitrydulepov Twitter: http://twitter.com/dmitryd Skype: liels_bugs From typo3 at perseguers.ch Wed Apr 15 08:19:27 2009 From: typo3 at perseguers.ch (Xavier Perseguers) Date: Wed, 15 Apr 2009 08:19:27 +0200 Subject: [TYPO3-dev] Worspace: Review of own records shouldn't be possible In-Reply-To: References: Message-ID: Hi, > Georg Ringer wrote: >> anyone? > > What if I work alone and use workspaces? Why can't I use the full cycle in such case? :) I guess the question is not "why isn't it like this" but "how do I configure to behave like this", meaning both use cases would be possible... :-) -- Xavier Perseguers http://xavier.perseguers.ch/en/tutorials/typo3.html From info at sk-typo3.de Wed Apr 15 09:34:45 2009 From: info at sk-typo3.de (Steffen Kamper) Date: Wed, 15 Apr 2009 09:34:45 +0200 Subject: [TYPO3-dev] flexform removes '&' character In-Reply-To: References: Message-ID: Hi, Dmitry Dulepov schrieb: > Hi! > > Steffen Kamper wrote: >> update to libxml Version 2.7.3 solved the problem for me. >> I ask myself if there is any possibility for a workaround for people >> which are not able to update, any magic xml-settings? > > Convert all & to uniqid() before parsing and back after parsing... But this will be the workaround I really dislike to make in any system. > i dislike this too, i hoped for a parameter or constant for magic setting. The problem is on Debian - stable releases - that it's not poissible to update. The unstable branch has also a lot of bugs listed in http://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=libxml2;dist=unstable The list doesn't look well anyway. Do you know a way to get debian (lenny) updated? vg Steffen From hphoeksma at stylence.nl Wed Apr 15 10:02:24 2009 From: hphoeksma at stylence.nl (Henjo Hoeksma) Date: Wed, 15 Apr 2009 10:02:24 +0200 Subject: [TYPO3-dev] external jQuery js not working Message-ID: Hi dev's, I am working on a site using jQuery and have it included as Dmitry proposes in his book (via the html template). When I put the jquery js in that file surrounded by script tags it works as a charm. But when I put it into an external file, it doesn't. The external file is loaded, and it's path is correct. This is what my header is looking like: Products Or is it because it is a restricted area? (htaccess restriction) -- Stylence | webdevelopment in style www.stylence.nl From hphoeksma at stylence.nl Wed Apr 15 10:19:44 2009 From: hphoeksma at stylence.nl (Henjo Hoeksma) Date: Wed, 15 Apr 2009 10:19:44 +0200 Subject: [TYPO3-dev] external jQuery js not working References: Message-ID: On 2009-04-15 10:02:24 +0200, Henjo Hoeksma said: > Hi dev's, > > I am working on a site using jQuery and have it included as Dmitry > proposes in his book (via the html template). > > When I put the jquery js in that file surrounded by script tags it > works as a charm. But when I put it into an external file, it doesn't. > > The external file is loaded, and it's path is correct. > > This is what my header is looking like: > > > > > > > > href="typo3temp/stylesheet_8192c2092f.css" /> > href="fileadmin/templates/res/styles.css" media="screen, projection" /> > > Products > > > > > > > > href="typo3conf/ext/flexproducts/res/pi1.css" /> > > > > > > Or is it because it is a restricted area? (htaccess restriction) Forget it, by accident I discovered when having 2 plugins on the page it screwed up... Will get to how that happens at a later stage... Henjo -- Stylence | webdevelopment in style www.stylence.nl From dmitry.dulepov at gmail.com Wed Apr 15 10:35:33 2009 From: dmitry.dulepov at gmail.com (Dmitry Dulepov) Date: Wed, 15 Apr 2009 11:35:33 +0300 Subject: [TYPO3-dev] flexform removes '&' character In-Reply-To: References: Message-ID: Hi! Steffen Kamper wrote: > Do you know a way to get debian (lenny) updated? No idea... I prefer SuSE Linux (both desktop and server). I like that Novel is behind it. I think SuSE has more quality control due to Novel. I did not have any issues with SuSE for may years of usage. Novel uses OpenSuSE for its paid and enterprise Linux solutions, so Novel will make sure that OpenSuSE goes well. No one will buy enterprise solution if its free base is not doing well. So I trust SuSE more than others. -- Dmitry Dulepov In TYPO3 blog: http://dmitry-dulepov.com/article/was-your-e-mail-to-typo3org-rejected.html LinkedIn: http://www.linkedin.com/in/dmitrydulepov Twitter: http://twitter.com/dmitryd Skype: liels_bugs From info at sk-typo3.de Wed Apr 15 10:41:38 2009 From: info at sk-typo3.de (Steffen Kamper) Date: Wed, 15 Apr 2009 10:41:38 +0200 Subject: [TYPO3-dev] flexform removes '&' character In-Reply-To: References: Message-ID: Hi, Dmitry Dulepov schrieb: > Hi! > > Steffen Kamper wrote: >> Do you know a way to get debian (lenny) updated? > > No idea... I prefer SuSE Linux (both desktop and server). I like that Novel is behind it. I think SuSE has more quality control due to Novel. I did not have any issues with SuSE for may years of usage. Novel uses OpenSuSE for its paid and enterprise Linux solutions, so Novel will make sure that OpenSuSE goes well. No one will buy enterprise solution if its free base is not doing well. So I trust SuSE more than others. > i trust on gentoo, as i'm very satisfied with. But this one is a client system where i try to get these things working. vg Steffen From typo3 at t3node.com Wed Apr 15 13:20:47 2009 From: typo3 at t3node.com (=?UTF-8?B?U3RlZmZlbiBNw7xsbGVy?=) Date: Wed, 15 Apr 2009 13:20:47 +0200 Subject: [TYPO3-dev] flexform removes '&' character In-Reply-To: References: Message-ID: Hi. On 12.04.2009 18:57 Dmitry Dulepov wrote: > As I wrote :) It is a bug in some versions of libxml. Unfortunately it slipped into some Debian distributions. The only way to prevent it is to upgrade libxml.so. No other workarounds exist I think. > Which distros are affected? Debian Lenny seems to be working, since this was the reference system for testing the issue. -- cheers, Steffen http://www.t3node.com/ From info at sk-typo3.de Wed Apr 15 13:56:08 2009 From: info at sk-typo3.de (Steffen Kamper) Date: Wed, 15 Apr 2009 13:56:08 +0200 Subject: [TYPO3-dev] flexform removes '&' character In-Reply-To: References: Message-ID: Steffen M?ller schrieb: > Hi. > > On 12.04.2009 18:57 Dmitry Dulepov wrote: >> As I wrote :) It is a bug in some versions of libxml. Unfortunately it slipped into some Debian distributions. The only way to prevent it is to upgrade libxml.so. No other workarounds exist I think. >> > > Which distros are affected? > Debian Lenny seems to be working, since this was the reference system > for testing the issue. > > exactly on Debian Lenny i had the problem (2.6.32) You can test it with comments as there is the link wizard used in flexform with "&" vg Steffen From stephane.baribeau at sys-tech.net Wed Apr 15 15:39:08 2009 From: stephane.baribeau at sys-tech.net (Stephane Baribeau) Date: Wed, 15 Apr 2009 09:39:08 -0400 Subject: [TYPO3-dev] Air Filemanager with Indexed Search Engine? In-Reply-To: References: Message-ID: Hi Dmitry, Yeah that what i think too! do you have any idea i can use to index fileadmin dir in cache? or anything else? thanks for your idea. have a nice day! Dmitry Dulepov a ?crit : > Hi! > > Stephane Baribeau wrote: > >> I use Indexed Search Engine extension, with Air Filemanager. >> The problem is Air filemanager don't use cache. >> So ISE dont index the file are use with AFM! >> > > If you want indexed search to index content, the content must be cached. There is no other way. But I do not think you can use file manager in such case. > > So there is no easy solution. > > -- *St?phane Baribeau* Programmeur stephane.baribeau at sys-tech.net 418 520-0739 poste 129 514 907-0036 / 1-877-969-8324 *SYS-TECH / Web, m?dias et technologies libres* 6700 BOUL PIERRE-BERTRAND BUREAU 209 QU?BEC QC G2J 0B4 http://www.sys-tech.net /Membre supporteur de l'Association TYPO3 / From info at sk-typo3.de Wed Apr 15 15:42:41 2009 From: info at sk-typo3.de (Steffen Kamper) Date: Wed, 15 Apr 2009 15:42:41 +0200 Subject: [TYPO3-dev] Air Filemanager with Indexed Search Engine? In-Reply-To: References: Message-ID: Hi, Stephane Baribeau schrieb: > Hi Dmitry, > > Yeah that what i think too! do you have any idea i can use to index > fileadmin dir in cache? or anything else? > thanks for your idea. > > have a nice day! > > look at crawler, it's possible to index all kind of records / pages / urls vg Steffen From stephane.baribeau at sys-tech.net Wed Apr 15 15:49:03 2009 From: stephane.baribeau at sys-tech.net (Stephane Baribeau) Date: Wed, 15 Apr 2009 09:49:03 -0400 Subject: [TYPO3-dev] Air Filemanager with Indexed Search Engine? In-Reply-To: References: Message-ID: Hi Steffen, I have tried the crawler, with url, pages or other, he doesnt index filemanager too, the other solution i have is to index directly fileadmin but thats doesnt look working with the doc i found on the web. thanks. Steffen Kamper a ?crit : > Hi, > > Stephane Baribeau schrieb: > >> Hi Dmitry, >> >> Yeah that what i think too! do you have any idea i can use to index >> fileadmin dir in cache? or anything else? >> thanks for your idea. >> >> have a nice day! >> >> >> > > look at crawler, it's possible to index all kind of records / pages / urls > > vg Steffen > _______________________________________________ > TYPO3-dev mailing list > TYPO3-dev at lists.netfielders.de > http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev > > !DSPAM:591,49e5e4e3107102623018610! > > > > -- *St?phane Baribeau* Programmeur stephane.baribeau at sys-tech.net 418 520-0739 poste 129 514 907-0036 / 1-877-969-8324 *SYS-TECH / Web, m?dias et technologies libres* 6700 BOUL PIERRE-BERTRAND BUREAU 209 QU?BEC QC G2J 0B4 http://www.sys-tech.net /Membre supporteur de l'Association TYPO3 / From stephane.baribeau at sys-tech.net Wed Apr 15 16:02:05 2009 From: stephane.baribeau at sys-tech.net (Stephane Baribeau) Date: Wed, 15 Apr 2009 10:02:05 -0400 Subject: [TYPO3-dev] Air Filemanager with Indexed Search Engine? In-Reply-To: References: Message-ID: Rebonjour JP. Je n'avais pas le projet dans le systeme, j'ai demand? a Sandrine de m'ouvrir le projet et nous l'Avons mis dans Banque d'heure de profweb. si c'est pas correct Sandrine va corrig? Merci. Steffen Kamper a ?crit : > Hi, > > Stephane Baribeau schrieb: > >> Hi Dmitry, >> >> Yeah that what i think too! do you have any idea i can use to index >> fileadmin dir in cache? or anything else? >> thanks for your idea. >> >> have a nice day! >> >> >> > > look at crawler, it's possible to index all kind of records / pages / urls > > vg Steffen > _______________________________________________ > TYPO3-dev mailing list > TYPO3-dev at lists.netfielders.de > http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev > > !DSPAM:591,49e5e4e3107102623018610! > > > > -- *St?phane Baribeau* Programmeur stephane.baribeau at sys-tech.net 418 520-0739 poste 129 514 907-0036 / 1-877-969-8324 *SYS-TECH / Web, m?dias et technologies libres* 6700 BOUL PIERRE-BERTRAND BUREAU 209 QU?BEC QC G2J 0B4 http://www.sys-tech.net /Membre supporteur de l'Association TYPO3 / From jigal at xs4all.nl Wed Apr 15 17:07:35 2009 From: jigal at xs4all.nl (Jigal van Hemert) Date: Wed, 15 Apr 2009 17:07:35 +0200 (CEST) Subject: [TYPO3-dev] Air Filemanager with Indexed Search Engine? Message-ID: Steffen wrote: > Stephane Baribeau schrieb: >> Yeah that what i think too! do you have any idea i can use to index >> fileadmin dir in cache? or anything else? > look at crawler, it's possible to index all kind of records / pages / urls The last time I looked at the air_filemanager source code it first retrieved a list of files from the file system, then retrieved the meta data from DAM and presented the data to the frontend. Hardly any possibilities for crawler to work with that... Besides, there is no "single view" in air_filemanager or default renderObject, so how can you display the information about the items crawler might find? -- Jigal van Hemert. From mail-spam at ringerge.org Thu Apr 16 08:14:42 2009 From: mail-spam at ringerge.org (Georg Ringer) Date: Thu, 16 Apr 2009 08:14:42 +0200 Subject: [TYPO3-dev] Worspace: Review of own records shouldn't be possible In-Reply-To: References: Message-ID: Dmitry Dulepov schrieb: > What if I work alone and use workspaces? Why can't I use the full cycle in such case? :) As Xavier is correct: I would like to have this as additional feature and not as required feature. So can you help? Georg From info at sk-typo3.de Thu Apr 16 09:23:00 2009 From: info at sk-typo3.de (Steffen Kamper) Date: Thu, 16 Apr 2009 09:23:00 +0200 Subject: [TYPO3-dev] svn help Message-ID: Hi, i want to synchronize another branch with core trunk. How can i make a diff with all changes since a certain revision? vg Steffen From typo3 at t3node.com Thu Apr 16 09:44:40 2009 From: typo3 at t3node.com (=?UTF-8?B?U3RlZmZlbiBNw7xsbGVy?=) Date: Thu, 16 Apr 2009 09:44:40 +0200 Subject: [TYPO3-dev] flexform removes '&' character In-Reply-To: References: Message-ID: Hi. On 15.04.2009 09:34 Steffen Kamper wrote: > Do you know a way to get debian (lenny) updated? > You could use new PHP package from dotdeb which might not to be affected of the libxml bug: http://www.dotdeb.org/ (There's also a php 5.3 RC package to easiliy test FLOW3) Unfortunately there is no backport for newer libxml or php versions at http://www.backports.org . That would be the smoothest way to get an updated package. -- cheers, Steffen http://www.t3node.com/ From typo3 at t3node.com Thu Apr 16 09:52:04 2009 From: typo3 at t3node.com (=?UTF-8?B?U3RlZmZlbiBNw7xsbGVy?=) Date: Thu, 16 Apr 2009 09:52:04 +0200 Subject: [TYPO3-dev] flexform removes '&' character In-Reply-To: References: Message-ID: Hi. On 15.04.2009 13:56 Steffen Kamper wrote: > exactly on Debian Lenny i had the problem (2.6.32) > You can test it with comments as there is the link wizard used in > flexform with "&" Works for me. Maybe I do something wrong. What steps do I have to do exactly to reproduce? Entering and saving a simple & in a field does work. Debian Lenny php5 5.2.6.dfsg.1-1+lenny2 libxml2 2.6.32.dfsg-5 TYPO3 trunk rev. 5320 -- cheers, Steffen http://www.t3node.com/ From typo3 at t3node.com Thu Apr 16 09:53:53 2009 From: typo3 at t3node.com (=?UTF-8?B?U3RlZmZlbiBNw7xsbGVy?=) Date: Thu, 16 Apr 2009 09:53:53 +0200 Subject: [TYPO3-dev] svn help In-Reply-To: References: Message-ID: Hi. On 16.04.2009 09:23 Steffen Kamper wrote: > i want to synchronize another branch with core trunk. > How can i make a diff with all changes since a certain revision? > svn diff -r REVISION_NUMBER svn diff --help -- cheers, Steffen http://www.t3node.com/ From info at sk-typo3.de Thu Apr 16 10:23:33 2009 From: info at sk-typo3.de (Steffen Kamper) Date: Thu, 16 Apr 2009 10:23:33 +0200 Subject: [TYPO3-dev] flexform removes '&' character In-Reply-To: References: Message-ID: Hi Steffen, Steffen M?ller schrieb: > Hi. > > On 15.04.2009 13:56 Steffen Kamper wrote: >> exactly on Debian Lenny i had the problem (2.6.32) >> You can test it with comments as there is the link wizard used in >> flexform with "&" > > Works for me. Maybe I do something wrong. What steps do I have to do > exactly to reproduce? > Entering and saving a simple & in a field does work. > > Debian Lenny > php5 5.2.6.dfsg.1-1+lenny2 > libxml2 2.6.32.dfsg-5 > > TYPO3 trunk rev. 5320 > to reproduce: insert comments plugin, click on icon to browse for template file. If it works you see url of browser contains browse_links.php?mode=wizard&act=file if not, url looks like browse_links.php?mode=wizardact=file vg Steffen From info at sk-typo3.de Thu Apr 16 10:24:47 2009 From: info at sk-typo3.de (Steffen Kamper) Date: Thu, 16 Apr 2009 10:24:47 +0200 Subject: [TYPO3-dev] svn help In-Reply-To: References: Message-ID: Hi, Steffen M?ller schrieb: > Hi. > > On 16.04.2009 09:23 Steffen Kamper wrote: >> i want to synchronize another branch with core trunk. >> How can i make a diff with all changes since a certain revision? >> > > svn diff -r REVISION_NUMBER > > svn diff --help > such easy? shame on me ... I tried to find such option in tortoise log browser (as i mostly work on windows without command line) thx vg Steffen From shadow333 at gmail.com Thu Apr 16 10:48:57 2009 From: shadow333 at gmail.com (Oliver Leitner) Date: Thu, 16 Apr 2009 10:48:57 +0200 Subject: [TYPO3-dev] migration 4.2.6 to 4.3.x loosing css_styled_content Message-ID: Dear Ladies and Gentlemen When migrating a typo3 4.2.6 to the current tree of 4.3.0 under linux, the site looses "css_styled_content" selection. Reselecting the "include static (from extension)" "css_styled_content" fixes the problem. -- Oliver Leitner http://www.neverslair-blog.net From typo3 at perseguers.ch Thu Apr 16 11:05:02 2009 From: typo3 at perseguers.ch (Xavier Perseguers) Date: Thu, 16 Apr 2009 11:05:02 +0200 Subject: [TYPO3-dev] migration 4.2.6 to 4.3.x loosing css_styled_content In-Reply-To: References: Message-ID: Hi, Oliver Leitner wrote: > Dear Ladies and Gentlemen > > When migrating a typo3 4.2.6 to the current tree of 4.3.0 under linux, > the site looses "css_styled_content" selection. > > Reselecting the "include static (from extension)" "css_styled_content" > fixes the problem. You have to go to Install Tool and perform an upgrade from 4.2 to 4.3 in Update Wizard. -- Xavier Perseguers http://xavier.perseguers.ch/en/tutorials/typo3.html From typo3 at perseguers.ch Thu Apr 16 11:07:50 2009 From: typo3 at perseguers.ch (Xavier Perseguers) Date: Thu, 16 Apr 2009 11:07:50 +0200 Subject: [TYPO3-dev] svn help In-Reply-To: References: Message-ID: Hi, >> On 16.04.2009 09:23 Steffen Kamper wrote: >>> i want to synchronize another branch with core trunk. >>> How can i make a diff with all changes since a certain revision? >>> >> >> svn diff -r REVISION_NUMBER >> >> svn diff --help >> > > such easy? shame on me ... > I tried to find such option in tortoise log browser (as i mostly work on > windows without command line) With Tortoise: - check-out branch, make sure you do not have local modifications - right click "SVN > Merge..." - choose to merge revisions - choose trunk as source - show log to select revisions you want to merge into branch - merge (with or without "dry-run") Your local copy of branch is now modified with the merged revisions. You may create/show/... the diff as usual when your local copy as modifications regarding the original state in SVN. Regards -- Xavier Perseguers http://xavier.perseguers.ch/en/tutorials/typo3.html From typo3 at t3node.com Thu Apr 16 11:12:44 2009 From: typo3 at t3node.com (=?UTF-8?B?U3RlZmZlbiBNw7xsbGVy?=) Date: Thu, 16 Apr 2009 11:12:44 +0200 Subject: [TYPO3-dev] flexform removes '&' character In-Reply-To: References: Message-ID: Hi. On 16.04.2009 10:23 Steffen Kamper wrote: > to reproduce: insert comments plugin, click on icon to browse for > template file. If it works you see url of browser contains > browse_links.php?mode=wizard&act=file I get this one, so it obviously works on my test system. So let's find out where the difference is between your and my system. Can you give the output of: dpkg -l '*php*' | grep '^ii' dpkg -l '*xml*' | grep '^ii' -- cheers, Steffen http://www.t3node.com/ From info at rs-websystems.de Thu Apr 16 11:12:56 2009 From: info at rs-websystems.de (Steffen Ritter) Date: Thu, 16 Apr 2009 11:12:56 +0200 Subject: [TYPO3-dev] migration 4.2.6 to 4.3.x loosing css_styled_content In-Reply-To: References: Message-ID: Oliver Leitner schrieb: > Dear Ladies and Gentlemen > > When migrating a typo3 4.2.6 to the current tree of 4.3.0 under linux, > the site looses "css_styled_content" selection. > > Reselecting the "include static (from extension)" "css_styled_content" > fixes the problem. > Which is indeed correct since the referenced record does not exists furthermore (was renamed) since TYPO3 4.3 is able to select different compatibility versions of CSC. regards Steffen From typo3 at t3node.com Thu Apr 16 11:15:05 2009 From: typo3 at t3node.com (=?UTF-8?B?U3RlZmZlbiBNw7xsbGVy?=) Date: Thu, 16 Apr 2009 11:15:05 +0200 Subject: [TYPO3-dev] flexform removes '&' character In-Reply-To: References: Message-ID: Hi. On 16.04.2009 11:12 Steffen M?ller wrote: > Can you give the output of: > dpkg -l '*php*' | grep '^ii' > dpkg -l '*xml*' | grep '^ii' > Sorry, forgot to append what I use: steffen at lenny:~$ dpkg -l '*php*' | grep '^ii' ii php-apc 3.0.19-2 APC (Alternative PHP Cache) module for PHP 5 ii php5-cgi 5.2.6.dfsg.1-1+lenny2 server-side, HTML-embedded scripting languag ii php5-cli 5.2.6.dfsg.1-1+lenny2 command-line interpreter for the php5 script ii php5-common 5.2.6.dfsg.1-1+lenny2 Common files for packages built from the php ii php5-curl 5.2.6.dfsg.1-1+lenny2 CURL module for php5 ii php5-gd 5.2.6.dfsg.1-1+lenny2 GD module for php5 ii php5-memcache 3.0.1-1 memcache extension module for PHP5 ii php5-mysql 5.2.6.dfsg.1-1+lenny2 MySQL module for php5 steffen at lenny:~$ dpkg -l '*xml*' Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ Name Version Description +++-=================================-=================================-================================================================================== ii libxml2 2.6.32.dfsg-5 GNOME XML library un python-xmlbase (no description available) un xml-core (no description available) -- cheers, Steffen http://www.t3node.com/ From dmitry.dulepov at gmail.com Thu Apr 16 11:31:06 2009 From: dmitry.dulepov at gmail.com (Dmitry Dulepov) Date: Thu, 16 Apr 2009 12:31:06 +0300 Subject: [TYPO3-dev] flexform removes '&' character In-Reply-To: References: Message-ID: Hi! Steffen M?ller wrote: > I get this one, so it obviously works on my test system. I encountered the same problem on one server, so I can confirm that the problem definitely exists. I do not know if Debian has any kind of online update. May be they already updated libxml? SuSE does such things via their online update for stable versions. -- Dmitry Dulepov In TYPO3 blog: http://dmitry-dulepov.com/article/was-your-e-mail-to-typo3org-rejected.html LinkedIn: http://www.linkedin.com/in/dmitrydulepov Twitter: http://twitter.com/dmitryd Skype: liels_bugs From dmitry.dulepov at gmail.com Thu Apr 16 11:32:29 2009 From: dmitry.dulepov at gmail.com (Dmitry Dulepov) Date: Thu, 16 Apr 2009 12:32:29 +0300 Subject: [TYPO3-dev] migration 4.2.6 to 4.3.x loosing css_styled_content In-Reply-To: References: Message-ID: Hi! Steffen Ritter wrote: > Which is indeed correct since the referenced record does not exists Not correct because it causes problems with upgrades. It can be easily avoided and as far as I know this will be fixed in 4.3. There is another thread about it. -- Dmitry Dulepov In TYPO3 blog: http://dmitry-dulepov.com/article/was-your-e-mail-to-typo3org-rejected.html LinkedIn: http://www.linkedin.com/in/dmitrydulepov Twitter: http://twitter.com/dmitryd Skype: liels_bugs From masi-no at spam-typo3.org Thu Apr 16 11:55:22 2009 From: masi-no at spam-typo3.org (Martin Kutschker) Date: Thu, 16 Apr 2009 11:55:22 +0200 Subject: [TYPO3-dev] svn help In-Reply-To: References: Message-ID: Steffen Kamper schrieb: > I tried to find such option in tortoise log browser (as i mostly work on > windows without command line) Tortoise is good but the CLI "svn help" and "svn help " will tell you much about the functionality that SVN offers. Masi From typo3 at perseguers.ch Thu Apr 16 12:00:58 2009 From: typo3 at perseguers.ch (Xavier Perseguers) Date: Thu, 16 Apr 2009 12:00:58 +0200 Subject: [TYPO3-dev] flexform removes '&' character In-Reply-To: References: Message-ID: Hi, >> to reproduce: insert comments plugin, click on icon to browse for >> template file. If it works you see url of browser contains >> browse_links.php?mode=wizard&act=file > > I get this one, so it obviously works on my test system. > > So let's find out where the difference is between your and my system. > > Can you give the output of: > dpkg -l '*php*' | grep '^ii' ii libapache2-mod-php5 5.2.6.dfsg.1-1+lenny2 server-side, HTML-embedded scripting languag ii php-pear 5.2.6.dfsg.1-1+lenny2 PEAR - PHP Extension and Application Reposit ii php5-cgi 5.2.6.dfsg.1-1+lenny2 server-side, HTML-embedded scripting languag ii php5-cli 5.2.6.dfsg.1-1+lenny2 command-line interpreter for the php5 script ii php5-common 5.2.6.dfsg.1-1+lenny2 Common files for packages built from the php ii php5-curl 5.2.6.dfsg.1-1+lenny2 CURL module for php5 ii php5-eaccelerator 0.9.5.3-3 eAccelerator module for PHP5 ii php5-gd 5.2.6.dfsg.1-1+lenny2 GD module for php5 ii php5-mcrypt 5.2.6.dfsg.1-1+lenny2 MCrypt module for php5 ii php5-mysql 5.2.6.dfsg.1-1+lenny2 MySQL module for php5 ii php5-suhosin 0.9.27-1 advanced protection module for php5 > dpkg -l '*xml*' | grep '^ii' ii libxml2 2.6.32.dfsg-5 GNOME XML library -- Xavier Perseguers http://xavier.perseguers.ch/en/tutorials/typo3.html From typo3 at perseguers.ch Thu Apr 16 12:07:21 2009 From: typo3 at perseguers.ch (Xavier Perseguers) Date: Thu, 16 Apr 2009 12:07:21 +0200 Subject: [TYPO3-dev] flexform removes '&' character In-Reply-To: References: Message-ID: >> dpkg -l '*xml*' | grep '^ii' > > ii libxml2 2.6.32.dfsg-5 GNOME XML library Perhaps more interesting, my libxml2 version was downloaded on February 15, meaning it's already quite a long time ago. -- Xavier Perseguers http://xavier.perseguers.ch/en/tutorials/typo3.html From shadow333 at gmail.com Thu Apr 16 12:44:08 2009 From: shadow333 at gmail.com (Oliver Leitner) Date: Thu, 16 Apr 2009 12:44:08 +0200 Subject: [TYPO3-dev] flexform removes '&' character In-Reply-To: References: Message-ID: Hi Dmitry For debian, its always apt-get update && apt-get upgrade that does the upgrading of current packages... for a correct look at the existing libxml in debian repository, you can use apt-cache search libxml, and then apt-cache show packagename. the apt-get and aptitude commands are a part of the goodies you get with debian. On Thu, Apr 16, 2009 at 11:31 AM, Dmitry Dulepov wrote: > Hi! > > Steffen M?ller wrote: >> I get this one, so it obviously works on my test system. > > I encountered the same problem on one server, so I can confirm that the problem definitely exists. I do not know if Debian has any kind of online update. May be they already updated libxml? SuSE does such things via their online update for stable versions. > > -- > Dmitry Dulepov > In TYPO3 blog: http://dmitry-dulepov.com/article/was-your-e-mail-to-typo3org-rejected.html > LinkedIn: http://www.linkedin.com/in/dmitrydulepov > Twitter: http://twitter.com/dmitryd > Skype: liels_bugs > _______________________________________________ > TYPO3-dev mailing list > TYPO3-dev at lists.netfielders.de > http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev -- Oliver Leitner http://www.neverslair-blog.net From info at sk-typo3.de Thu Apr 16 13:07:31 2009 From: info at sk-typo3.de (Steffen Kamper) Date: Thu, 16 Apr 2009 13:07:31 +0200 Subject: [TYPO3-dev] flexform removes '&' character In-Reply-To: References: Message-ID: Hi Steffen, Steffen M?ller schrieb: > Hi. > > On 16.04.2009 10:23 Steffen Kamper wrote: >> to reproduce: insert comments plugin, click on icon to browse for >> template file. If it works you see url of browser contains >> browse_links.php?mode=wizard&act=file > > I get this one, so it obviously works on my test system. > > So let's find out where the difference is between your and my system. > > Can you give the output of: > dpkg -l '*php*' | grep '^ii' > dpkg -l '*xml*' | grep '^ii' > > i can't as the admin installed gentoo today. But it didn't worked before, version was 2.6.32.dfsg-5. I have no idea why it works ion one system and not on another one. vg Steffen From info at sk-typo3.de Thu Apr 16 13:12:55 2009 From: info at sk-typo3.de (Steffen Kamper) Date: Thu, 16 Apr 2009 13:12:55 +0200 Subject: [TYPO3-dev] migration 4.2.6 to 4.3.x loosing css_styled_content In-Reply-To: References: Message-ID: Hi, Dmitry Dulepov schrieb: > Hi! > > Steffen Ritter wrote: >> Which is indeed correct since the referenced record does not exists > > Not correct because it causes problems with upgrades. It can be easily avoided and as far as I know this will be fixed in 4.3. There is another thread about it. > yes, Francois wants to take care if he's back, suggestions are already made. vg Steffen From waggershauser at airware.de Thu Apr 16 13:35:06 2009 From: waggershauser at airware.de (Thomas Waggershauser) Date: Thu, 16 Apr 2009 13:35:06 +0200 Subject: [TYPO3-dev] Air Filemanager with Indexed Search Engine? In-Reply-To: References: Message-ID: Hi Stephane, have you tried the frontend filelist extension (air_fefilelist). This one uses the filemanager to create a cached list of files, so indexing should be no problem.. Greetings, Thomas Am 14.04.2009 um 19:54 schrieb Stephane Baribeau: > Hi everyone, > > I need hint about my mistake. > I use Indexed Search Engine extension, with Air Filemanager. > The problem is Air filemanager don't use cache. > So ISE dont index the file are use with AFM! > > Does anyone of you know a soluce that i can use? I searched on google, > but all discussion dated from '06. So i think that someone can help if > the problem have been reported. > > I have found a soluce to make a patch of AFM to use cache typo3 system > but does we have another way to generate file structure from DAM > with ISE? > > Thanks for your help. > > Have a nice day! > > -- > *St?phane Baribeau* > Programmeur > > stephane.baribeau at sys-tech.net > 418 520-0739 poste 129 > 514 907-0036 / 1-877-969-8324 > > *SYS-TECH / Web, m?dias et technologies libres* > 6700 BOUL PIERRE-BERTRAND BUREAU 209 > QU?BEC QC G2J 0B4 > http://www.sys-tech.net > > /Membre supporteur de l'Association TYPO3 / > _______________________________________________ > TYPO3-dev mailing list > TYPO3-dev at lists.netfielders.de > http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev --------- Thomas Waggershauser http://www.airware.de From info at sk-typo3.de Thu Apr 16 16:23:41 2009 From: info at sk-typo3.de (Steffen Kamper) Date: Thu, 16 Apr 2009 16:23:41 +0200 Subject: [TYPO3-dev] svn help In-Reply-To: References: Message-ID: Hi Xavier, Xavier Perseguers schrieb: > Hi, > >>> On 16.04.2009 09:23 Steffen Kamper wrote: >>>> i want to synchronize another branch with core trunk. >>>> How can i make a diff with all changes since a certain revision? >>>> >>> >>> svn diff -r REVISION_NUMBER >>> >>> svn diff --help >>> >> >> such easy? shame on me ... >> I tried to find such option in tortoise log browser (as i mostly work >> on windows without command line) > > With Tortoise: > > - check-out branch, make sure you do not have local modifications > - right click "SVN > Merge..." > - choose to merge revisions > - choose trunk as source > - show log to select revisions you want to merge into branch > - merge (with or without "dry-run") > > Your local copy of branch is now modified with the merged revisions. You > may create/show/... the diff as usual when your local copy as > modifications regarding the original state in SVN. > > Regards > thx for this descriuption, it worked for me now. I never used merge before, so your description was very valuable. vg Steffen From rgn at windinternet.nl Fri Apr 17 10:37:00 2009 From: rgn at windinternet.nl (Rudy Gnodde) Date: Fri, 17 Apr 2009 10:37:00 +0200 Subject: [TYPO3-dev] $TCA field with type=user in list Message-ID: Hello, I have a table in the database which basicly has the following fields: uid pid ... num1 num2 num3 num4 num1/4 are int values. What I want to do now is show the total of these num fields per record in the TYPO3 backend. I used type=user in $TCA to call a PHP script which returns the sum of the num fields. This works fine for the form, but not for the list module. In the list module it doesn't seem to do anything with the PHP script, but tries to select the field (num_total) from the database, which doesn't exist. Is there any way to do this? Regards, Rudy Gnodde WIND Internet http://www.windinternet.nl From mathias.schreiber at wmdb.de Fri Apr 17 11:23:26 2009 From: mathias.schreiber at wmdb.de (Mathias Schreiber [wmdb >]) Date: Fri, 17 Apr 2009 11:23:26 +0200 Subject: [TYPO3-dev] $TCA field with type=user in list In-Reply-To: References: Message-ID: Rudy Gnodde schrieb: > Hello, > > I have a table in the database which basicly has the following fields: > > uid > pid > ... > num1 > num2 > num3 > num4 > > num1/4 are int values. What I want to do now is show the total of these > num fields per record in the TYPO3 backend. I used type=user in $TCA to > call a PHP script which returns the sum of the num fields. This works > fine for the form, but not for the list module. In the list module it > doesn't seem to do anything with the PHP script, but tries to select the > field (num_total) from the database, which doesn't exist. > > Is there any way to do this? You could calculate your values into a view and rewrite TCA to use this view. This way you don't need any userFunc or anything. Plus it will be faster :) cheers Mathias From rgn at windinternet.nl Fri Apr 17 11:43:33 2009 From: rgn at windinternet.nl (Rudy Gnodde) Date: Fri, 17 Apr 2009 11:43:33 +0200 Subject: [TYPO3-dev] $TCA field with type=user in list In-Reply-To: References: Message-ID: Hello Mathias, Mathias Schreiber [wmdb >] wrote: > You could calculate your values into a view and rewrite TCA to use this > view. > This way you don't need any userFunc or anything. > Plus it will be faster :) > > cheers > Mathias Thanks for your reply. I've thought about that, but all other fields have to be updatable and insertable. If I create a view which is the same as the original table except for the total field I can update the records, but I can't insert new records into it. Regards, Rudy Gnodde WIND Internet http://www.windinternet.nl From mathias.schreiber at wmdb.de Fri Apr 17 12:13:33 2009 From: mathias.schreiber at wmdb.de (Mathias Schreiber [wmdb >]) Date: Fri, 17 Apr 2009 12:13:33 +0200 Subject: [TYPO3-dev] $TCA field with type=user in list In-Reply-To: References: Message-ID: Rudy Gnodde schrieb: > Thanks for your reply. I've thought about that, but all other fields > have to be updatable and insertable. If I create a view which is the > same as the original table except for the total field I can update the > records, but I can't insert new records into it. As long as all fields are "directly relatable" from the view to its data structure I can insert on a view as well (mySQL 5.0 though). Did you give it a try on the mysql shell yet? cheers Mathias From rgn at windinternet.nl Fri Apr 17 12:44:04 2009 From: rgn at windinternet.nl (Rudy Gnodde) Date: Fri, 17 Apr 2009 12:44:04 +0200 Subject: [TYPO3-dev] $TCA field with type=user in list In-Reply-To: References: Message-ID: Hello Mathias, Mathias Schreiber [wmdb >] wrote: > As long as all fields are "directly relatable" from the view to its data > structure I can insert on a view as well (mySQL 5.0 though). > > Did you give it a try on the mysql shell yet? > > cheers > Mathias Yes, I did try it. Like I said, I can update records through the view, but can't insert new records. Regards, Rudy Gnodde WIND Internet http://www.windinternet.nl From info at sk-typo3.de Fri Apr 17 12:49:52 2009 From: info at sk-typo3.de (Steffen Kamper) Date: Fri, 17 Apr 2009 12:49:52 +0200 Subject: [TYPO3-dev] $TCA field with type=user in list In-Reply-To: References: Message-ID: Hi, Rudy Gnodde schrieb: > Hello, > > I have a table in the database which basicly has the following fields: > > uid > pid > ... > num1 > num2 > num3 > num4 > > num1/4 are int values. What I want to do now is show the total of these > num fields per record in the TYPO3 backend. I used type=user in $TCA to > call a PHP script which returns the sum of the num fields. This works > fine for the form, but not for the list module. In the list module it > doesn't seem to do anything with the PHP script, but tries to select the > field (num_total) from the database, which doesn't exist. > > Is there any way to do this? > > Regards, > > Rudy Gnodde > WIND Internet > http://www.windinternet.nl check the label_userFunc - this is imho only possibility to show it by default. otherwise you have to click on the table for singleTableView and add your userfield to the view. vg Steffen From rgn at windinternet.nl Fri Apr 17 14:04:03 2009 From: rgn at windinternet.nl (Rudy Gnodde) Date: Fri, 17 Apr 2009 14:04:03 +0200 Subject: [TYPO3-dev] $TCA field with type=user in list In-Reply-To: References: Message-ID: Hello Steffen, Steffen Kamper wrote: > Hi, > > check the label_userFunc - this is imho only possibility to show it by > default. otherwise you have to click on the table for singleTableView > and add your userfield to the view. > > vg Steffen This is about the singleTableView. When I add the total field to that it gives an error because the field doesn't exist in the database. If I add the field to the database table it's always empty it displays the value from the database, not the total of the num fields. Regards, Rudy Gnodde From andy_grunwald at arcor.de Fri Apr 17 19:55:02 2009 From: andy_grunwald at arcor.de (Andy Grunwald [wmdb]) Date: Fri, 17 Apr 2009 19:55:02 +0200 Subject: [TYPO3-dev] duplicated lines in TYPO3 detected by phpcpd Message-ID: Hey girls and guys, for some weeks i`ve read a german blog post [1] about outsourcing some features of PHPUnit to small own programms. One of this small own programms is "phpcpd" aka "PHP copy paste detector" [2] from Sebastian Bergmann (the author of PHPUnit [3]). This topic is very interisting for me. So i want to test it. But to test this tool i need a existing project. So i chose TYPO3 :) (i`ve export the subversion trunk (revision 5327)). I want to discuss the following results with you. I dont want to create more and more work for core devs. I want to discuss with you for the optimal solutions. If there are some good ideas to solve this i will try to create some patches to minimize the dublicate lines. And every developer knows: If you could erase dublicate lines, do this, because of the maintainance! My first run with this tool on TYPO3 ouputs the following results: -------------- Linux shell output start -------------- webdev:/home/andy# phpcpd /var/www/typo3_4.3_r5327/ phpcpd 1.1.1 by Sebastian Bergmann. Found 63 exact clones with 2907 duplicated lines in 56 files: - /var/www/typo3_4.3_r5327/t3lib/class.t3lib_querygenerator.php:1421-1436 /var/www/typo3_4.3_r5327/t3lib/class.t3lib_fullsearch.php:773-788 - /var/www/typo3_4.3_r5327/typo3/mod/tools/em/class.nusoap.php:3964-3973 /var/www/typo3_4.3_r5327/typo3/mod/tools/em/class.nusoap.php:4043-4052 - /var/www/typo3_4.3_r5327/typo3/mod/web/info/index.php:196-202 /var/www/typo3_4.3_r5327/typo3/mod/web/func/index.php:191-197 - /var/www/typo3_4.3_r5327/typo3/class.filelistfoldertree.php:235-258 /var/www/typo3_4.3_r5327/typo3/class.webpagetree.php:277-300 - /var/www/typo3_4.3_r5327/t3lib/class.t3lib_treeview.php:353-360 /var/www/typo3_4.3_r5327/typo3/class.webpagetree.php:331-338 - /var/www/typo3_4.3_r5327/typo3/file_edit.php:110-132 /var/www/typo3_4.3_r5327/typo3/file_rename.php:112-134 - /var/www/typo3_4.3_r5327/typo3/file_upload.php:129-137 /var/www/typo3_4.3_r5327/typo3/file_newfolder.php:129-137 - /var/www/typo3_4.3_r5327/typo3/file_edit.php:123-132 /var/www/typo3_4.3_r5327/typo3/file_newfolder.php:137-146 - /var/www/typo3_4.3_r5327/typo3/sysext/dbal/class.ux_t3lib_sqlparser.php:61-69 /var/www/typo3_4.3_r5327/typo3/sysext/dbal/class.ux_t3lib_sqlengine.php:61-69 - /var/www/typo3_4.3_r5327/typo3/sysext/dbal/class.ux_t3lib_sqlparser.php:97-122 /var/www/typo3_4.3_r5327/typo3/sysext/dbal/class.ux_t3lib_sqlengine.php:97-122 - /var/www/typo3_4.3_r5327/typo3/sysext/dbal/class.ux_t3lib_sqlparser.php:151-335 /var/www/typo3_4.3_r5327/typo3/sysext/dbal/class.ux_t3lib_sqlengine.php:151-335 - /var/www/typo3_4.3_r5327/typo3/sysext/dbal/class.ux_t3lib_sqlparser.php:351-363 /var/www/typo3_4.3_r5327/typo3/sysext/dbal/class.ux_t3lib_sqlengine.php:344-356 - /var/www/typo3_4.3_r5327/typo3/sysext/dbal/class.ux_t3lib_db.php:738-748 /var/www/typo3_4.3_r5327/typo3/sysext/dbal/class.ux_t3lib_db.php:809-819 - /var/www/typo3_4.3_r5327/typo3/sysext/cms/tslib/media/scripts/gmenu_layers.php:88-450 /var/www/typo3_4.3_r5327/typo3/sysext/cms/tslib/media/scripts/tmenu_layers.php:88-450 - /var/www/typo3_4.3_r5327/typo3/sysext/cms/tslib/class.tslib_menu.php:1881-1922 /var/www/typo3_4.3_r5327/typo3/sysext/cms/tslib/class.tslib_menu.php:2425-2466 - /var/www/typo3_4.3_r5327/typo3/sysext/install/mod/class.tx_install_ajax.php:33-42 /var/www/typo3_4.3_r5327/typo3/sysext/cms/tslib/showpic.php:57-66 - /var/www/typo3_4.3_r5327/typo3/sysext/adodb/adodb/datadict/datadict-mssql.inc.php:159-242 /var/www/typo3_4.3_r5327/typo3/sysext/adodb/adodb/datadict/datadict-sybase.inc.php:121-204 - /var/www/typo3_4.3_r5327/typo3/sysext/adodb/adodb/drivers/adodb-db2.inc.php:458-468 /var/www/typo3_4.3_r5327/typo3/sysext/adodb/adodb/drivers/adodb-odbc.inc.php:333-343 - /var/www/typo3_4.3_r5327/typo3/sysext/adodb/adodb/drivers/adodb-db2.inc.php:758-769 /var/www/typo3_4.3_r5327/typo3/sysext/adodb/adodb/drivers/adodb-odbc.inc.php:658-669 - /var/www/typo3_4.3_r5327/typo3/sysext/adodb/adodb/drivers/adodb-mysql.inc.php:391-444 /var/www/typo3_4.3_r5327/typo3/sysext/adodb/adodb/drivers/adodb-pdo_mysql.inc.php:75-128 - /var/www/typo3_4.3_r5327/typo3/sysext/adodb/adodb/drivers/adodb-mysql.inc.php:546-562 /var/www/typo3_4.3_r5327/typo3/sysext/adodb/adodb/drivers/adodb-mysqli.inc.php:476-492 - /var/www/typo3_4.3_r5327/typo3/sysext/adodb/adodb/drivers/adodb-mysql.inc.php:413-419 /var/www/typo3_4.3_r5327/typo3/sysext/adodb/adodb/drivers/adodb-mysqli.inc.php:532-538 - /var/www/typo3_4.3_r5327/typo3/sysext/adodb/adodb/drivers/adodb-mysql.inc.php:437-446 /var/www/typo3_4.3_r5327/typo3/sysext/adodb/adodb/drivers/adodb-mysqli.inc.php:553-562 - /var/www/typo3_4.3_r5327/typo3/sysext/adodb/adodb/drivers/adodb-mssql.inc.php:164-173 /var/www/typo3_4.3_r5327/typo3/sysext/adodb/adodb/drivers/adodb-ado_mssql.inc.php:105-114 - /var/www/typo3_4.3_r5327/typo3/sysext/adodb/adodb/drivers/adodb-mssql.inc.php:203-243 /var/www/typo3_4.3_r5327/typo3/sysext/adodb/adodb/drivers/adodb-odbc_mssql.inc.php:223-263 - /var/www/typo3_4.3_r5327/typo3/sysext/adodb/adodb/drivers/adodb-odbc.inc.php:143-152 /var/www/typo3_4.3_r5327/typo3/sysext/adodb/adodb/drivers/adodb-sqlite.inc.php:213-222 - /var/www/typo3_4.3_r5327/typo3/sysext/adodb/adodb/drivers/adodb-oci8.inc.php:466-505 /var/www/typo3_4.3_r5327/typo3/sysext/adodb/adodb/drivers/adodb-postgres64.inc.php:260-299 - /var/www/typo3_4.3_r5327/typo3/sysext/adodb/adodb/drivers/adodb-pdo_pgsql.inc.php:134-167 /var/www/typo3_4.3_r5327/typo3/sysext/adodb/adodb/drivers/adodb-postgres64.inc.php:486-519 - /var/www/typo3_4.3_r5327/typo3/sysext/adodb/adodb/drivers/adodb-ado.inc.php:15-32 /var/www/typo3_4.3_r5327/typo3/sysext/adodb/adodb/drivers/adodb-ado5.inc.php:15-32 - /var/www/typo3_4.3_r5327/typo3/sysext/adodb/adodb/drivers/adodb-ado.inc.php:103-173 /var/www/typo3_4.3_r5327/typo3/sysext/adodb/adodb/drivers/adodb-ado5.inc.php:126-196 - /var/www/typo3_4.3_r5327/typo3/sysext/adodb/adodb/drivers/adodb-ado.inc.php:210-230 /var/www/typo3_4.3_r5327/typo3/sysext/adodb/adodb/drivers/adodb-ado5.inc.php:231-251 - /var/www/typo3_4.3_r5327/typo3/sysext/adodb/adodb/drivers/adodb-ado.inc.php:251-264 /var/www/typo3_4.3_r5327/typo3/sysext/adodb/adodb/drivers/adodb-ado5.inc.php:279-292 - /var/www/typo3_4.3_r5327/typo3/sysext/adodb/adodb/drivers/adodb-ado.inc.php:295-606 /var/www/typo3_4.3_r5327/typo3/sysext/adodb/adodb/drivers/adodb-ado5.inc.php:328-639 - /var/www/typo3_4.3_r5327/typo3/sysext/adodb/adodb/adodb-xmlschema03.inc.php:105-172 /var/www/typo3_4.3_r5327/typo3/sysext/adodb/adodb/adodb-xmlschema.inc.php:87-154 - /var/www/typo3_4.3_r5327/typo3/sysext/adodb/adodb/adodb-xmlschema03.inc.php:276-289 /var/www/typo3_4.3_r5327/typo3/sysext/adodb/adodb/adodb-xmlschema.inc.php:251-264 - /var/www/typo3_4.3_r5327/typo3/sysext/adodb/adodb/adodb-xmlschema03.inc.php:508-525 /var/www/typo3_4.3_r5327/typo3/sysext/adodb/adodb/adodb-xmlschema.inc.php:466-483 - /var/www/typo3_4.3_r5327/typo3/sysext/adodb/adodb/adodb-xmlschema03.inc.php:550-843 /var/www/typo3_4.3_r5327/typo3/sysext/adodb/adodb/adodb-xmlschema.inc.php:508-801 - /var/www/typo3_4.3_r5327/typo3/sysext/adodb/adodb/adodb-xmlschema03.inc.php:1048-1282 /var/www/typo3_4.3_r5327/typo3/sysext/adodb/adodb/adodb-xmlschema.inc.php:948-1182 - /var/www/typo3_4.3_r5327/typo3/sysext/adodb/adodb/adodb-xmlschema03.inc.php:1650-1752 /var/www/typo3_4.3_r5327/typo3/sysext/adodb/adodb/adodb-xmlschema.inc.php:1491-1593 - /var/www/typo3_4.3_r5327/typo3/sysext/adodb/adodb/adodb-xmlschema03.inc.php:1809-1816 /var/www/typo3_4.3_r5327/typo3/sysext/adodb/adodb/adodb-xmlschema.inc.php:1650-1657 - /var/www/typo3_4.3_r5327/typo3/sysext/adodb/adodb/adodb-xmlschema03.inc.php:1908-2033 /var/www/typo3_4.3_r5327/typo3/sysext/adodb/adodb/adodb-xmlschema.inc.php:1747-1872 - /var/www/typo3_4.3_r5327/typo3/sysext/adodb/adodb/adodb-xmlschema03.inc.php:2200-2218 /var/www/typo3_4.3_r5327/typo3/sysext/adodb/adodb/adodb-xmlschema.inc.php:2027-2045 - /var/www/typo3_4.3_r5327/typo3/sysext/adodb/adodb/adodb-xmlschema03.inc.php:2295-2360 /var/www/typo3_4.3_r5327/typo3/sysext/adodb/adodb/adodb-xmlschema.inc.php:2113-2178 - /var/www/typo3_4.3_r5327/typo3/sysext/adodb/adodb/adodb-lib.inc.php:181-190 /var/www/typo3_4.3_r5327/typo3/sysext/adodb/adodb/adodb-lib.inc.php:267-276 - /var/www/typo3_4.3_r5327/typo3/class.browse_links.php:298-307 /var/www/typo3_4.3_r5327/typo3/sysext/rtehtmlarea/mod3/class.tx_rtehtmlarea_browse_links.php:60-69 - /var/www/typo3_4.3_r5327/typo3/class.browse_links.php:531-542 /var/www/typo3_4.3_r5327/typo3/sysext/rtehtmlarea/mod3/class.tx_rtehtmlarea_browse_links.php:137-148 - /var/www/typo3_4.3_r5327/typo3/sysext/rtehtmlarea/mod3/class.tx_rtehtmlarea_dam_browse_links.php:266-276 /var/www/typo3_4.3_r5327/typo3/sysext/rtehtmlarea/mod3/class.tx_rtehtmlarea_browse_links.php:421-431 - /var/www/typo3_4.3_r5327/typo3/sysext/rtehtmlarea/mod3/class.tx_rtehtmlarea_dam_browse_links.php:517-536 /var/www/typo3_4.3_r5327/typo3/sysext/rtehtmlarea/mod3/class.tx_rtehtmlarea_browse_links.php:611-630 - /var/www/typo3_4.3_r5327/typo3/sysext/rtehtmlarea/mod3/class.tx_rtehtmlarea_dam_browse_links.php:547-560 /var/www/typo3_4.3_r5327/typo3/sysext/rtehtmlarea/mod3/class.tx_rtehtmlarea_browse_links.php:641-654 - /var/www/typo3_4.3_r5327/typo3/class.browse_links.php:1361-1378 /var/www/typo3_4.3_r5327/typo3/sysext/rtehtmlarea/mod3/class.tx_rtehtmlarea_browse_links.php:755-772 - /var/www/typo3_4.3_r5327/typo3/sysext/rtehtmlarea/mod3/class.tx_rtehtmlarea_dam_browse_links.php:649-664 /var/www/typo3_4.3_r5327/typo3/sysext/rtehtmlarea/mod3/class.tx_rtehtmlarea_browse_links.php:782-797 - /var/www/typo3_4.3_r5327/typo3/sysext/rtehtmlarea/mod3/class.tx_rtehtmlarea_dam_browse_links.php:912-923 /var/www/typo3_4.3_r5327/typo3/sysext/rtehtmlarea/mod3/class.tx_rtehtmlarea_browse_links.php:1067-1078 - /var/www/typo3_4.3_r5327/typo3/sysext/rtehtmlarea/class.tx_rtehtmlarea_base.php:267-276 /var/www/typo3_4.3_r5327/typo3/sysext/rtehtmlarea/pi2/class.tx_rtehtmlarea_pi2.php:143-152 - /var/www/typo3_4.3_r5327/typo3/sysext/rtehtmlarea/mod3/class.tx_rtehtmlarea_dam_browse_links.php:459-479 /var/www/typo3_4.3_r5327/typo3/sysext/rtehtmlarea/mod4/class.tx_rtehtmlarea_dam_browse_media.php:650-670 - /var/www/typo3_4.3_r5327/typo3/sysext/rtehtmlarea/mod3/browse_links.php:75-82 /var/www/typo3_4.3_r5327/typo3/sysext/rtehtmlarea/mod4/select_image.php:66-73 - /var/www/typo3_4.3_r5327/typo3/class.browse_links.php:2355-2407 /var/www/typo3_4.3_r5327/typo3/sysext/rtehtmlarea/mod4/class.tx_rtehtmlarea_select_image.php:1006-1058 - /var/www/typo3_4.3_r5327/typo3/sysext/rtehtmlarea/extensions/TYPO3HtmlParser/class.tx_rtehtmlarea_typo3htmlparser.php:39-47 /var/www/typo3_4.3_r5327/typo3/sysext/rtehtmlarea/extensions/DefaultClean/class.tx_rtehtmlarea_defaultclean.php:39-47 - /var/www/typo3_4.3_r5327/typo3/sysext/belog/class.tx_belog_webinfo.php:181-191 /var/www/typo3_4.3_r5327/typo3/sysext/belog/mod/index.php:275-285 - /var/www/typo3_4.3_r5327/typo3/mod/user/ws/class.wslib_gui.php:973-1077 /var/www/typo3_4.3_r5327/typo3/sysext/version/cm1/index.php:1256-1360 - /var/www/typo3_4.3_r5327/typo3/mod/user/ws/class.wslib_gui.php:1120-1135 /var/www/typo3_4.3_r5327/typo3/sysext/version/cm1/index.php:1402-1417 - /var/www/typo3_4.3_r5327/typo3/mod/user/ws/class.wslib_gui.php:685-737 /var/www/typo3_4.3_r5327/typo3/sysext/version/cm1/index.php:1493-1545 - /var/www/typo3_4.3_r5327/typo3/mod/user/ws/class.wslib_gui.php:1266-1274 /var/www/typo3_4.3_r5327/typo3/sysext/version/cm1/index.php:1636-1644 - /var/www/typo3_4.3_r5327/tests/t3lib/cache/backend/t3lib_cache_backend_apcbackendtestcase.php:146-214 /var/www/typo3_4.3_r5327/tests/t3lib/cache/backend/t3lib_cache_backend_memcachedbackendtestcase.php:177-245 1.03% duplicated lines out of 282824 total lines of code. -------------- Linux shell output ends -------------- After this results i`ve spend some time on it to look in these files to find out what "phpcpd" has detected. Some lines are not exactly outputted by phpcpd but you could always see the dublicate lines. Some files which are in the list of phpcpd are external sources (for example nusoap or adodb). This code is not in our hand. So lets have a detailed look to the results: - t3lib/class.t3lib_querygenerator.php:1421-1436 - t3lib/class.t3lib_fullsearch.php:773-788 The lines are not exactly but you will see that the method "function getTreeList($id, $depth, $begin=0, $perms_clause)" is completly the same. And in this method there is no reference on "$this" (expect of the recursion of the method, this could be solved by self::getTreeList... for example). One solution is to delete the method body from one class and point to the other (making an object and execute the method from the other class). The disadvantage of this solution is the dependency of this two classes. Another solution is to export this method to a static class like t3lib_div. - typo3/mod/web/info/index.php:196-202 - typo3/mod/web/func/index.php:191-197 In this result, the method "getButtons()" is affected. The methods in this two classes are nearly the same. I think that could be optimized. But actually i dont know how. - typo3/class.filelistfoldertree.php:235-258 - typo3/class.webpagetree.php:277-300 In this two classes the following methods are nearly or exactly the same: - wrapTitle($title,$row,$bank=0) - printTree($treeArr = '') - PMicon($row,$a,$c,$nextCount,$exp) - PMiconATagWrap($icon, $cmd, $isExpand = true) A example solution is to write an base class for this which is extended by class.filelistfoldertree.php and class.webpagetree.php. - t3lib/class.t3lib_treeview.php:353-360 - typo3/class.webpagetree.php:331-338 The method "getBrowsableTree()" is nearly the same. For a solution see result one (query generator). - typo3/file_edit.php:110-132 - typo3/file_rename.php:112-134 The Method "init()" is exaclty the same. Solution: Create a base class or rewrite this files with very small methods to connect this with other classes - typo3/file_upload.php:129-137 - typo3/file_newfolder.php:129-137 The Method "init()" is nearly the same. Solution: Create a base class or rewrite this files with very small methods to connect this with other classes - typo3/file_edit.php:123-132 - typo3/file_newfolder.php:137-146 Some duplicate lines in the init() method. Solution: Create a base class or rewrite this files with very small methods to connect this with other classes To describe all dublicate linesmake this post veeeery long, because i know that small maillinglist posts are very welcome :D So whats your opinion? Is this important or is this "task" bullshit? My opinion is, that this is a very important point. 2907 duplicated lines are not few. I think thats more than 2907, because if you look at the source code, some lines are written in other coding style, so phpcpd cant detect them. Some modules are historicly grown so refactoring are a good idea i think. If i can, i want to help. Have a nice day, Andy [1] http://www.phphatesme.com/blog/softwaretechnik/copy-and-paste-detection/ [2] http://github.com/sebastianbergmann/phpcpd/tree/master [3] http://www.phpunit.de/ From andy_grunwald at arcor.de Fri Apr 17 20:06:32 2009 From: andy_grunwald at arcor.de (Andy Grunwald [wmdb]) Date: Fri, 17 Apr 2009 20:06:32 +0200 Subject: [TYPO3-dev] Official coding guidelines of TYPO3 Message-ID: Hey, when i looked at TYPO3 source code i see many different styles of source code. For example: $var=$value; vs. $var = $value; switch($var){ case 1: echo 'hello'; break; default: echo 'error'; } vs. switch($var){ case 1: echo 'hello'; break; default: echo 'error'; } and so on... In a big project, i think strict coding guidelines are a good thing. The source code have the same format so it is easy to read. Another advantage is the detection of duplicate lines by an automatic tool (for example "phpcgd"). In my search for the official coding guidelines i`ve found 3 versions: typo3.org: last update: 28.04.2007 11:36 http://typo3.org/documentation/document-library/core-documentation/doc_core_cgl/current/ wiki.typo3.org: draft version http://wiki.typo3.org/index.php/TYPO3_Coding_Guidelines_-_Notes Dmitry Dulepovs blog: result of discussion by TYPO3-(Core-)Team http://dmitry-dulepov.com/article/get-typo3-coding-guidelines-here.html So i dont know which coding guidelines are to use. Any idea? Another idea is to create a pre commit action to the svn to check of the rules for coding guidelines to defend wring formatted code in the svn (see PHP_CodeSniffer). Have a nice day, Andy From dmitry.dulepov at gmail.com Fri Apr 17 20:13:12 2009 From: dmitry.dulepov at gmail.com (Dmitry Dulepov) Date: Fri, 17 Apr 2009 21:13:12 +0300 Subject: [TYPO3-dev] Official coding guidelines of TYPO3 In-Reply-To: References: Message-ID: Hi! Andy Grunwald [wmdb] wrote: > In my search for the official coding guidelines i`ve found 3 versions: > typo3.org: last update: 28.04.2007 11:36 > http://typo3.org/documentation/document-library/core-documentation/doc_core_cgl/current/ > > wiki.typo3.org: draft version > http://wiki.typo3.org/index.php/TYPO3_Coding_Guidelines_-_Notes > > Dmitry Dulepovs blog: result of discussion by TYPO3-(Core-)Team > http://dmitry-dulepov.com/article/get-typo3-coding-guidelines-here.html > > So i dont know which coding guidelines are to use. Any idea? Here is the recent draft that core team uses de facto: http://forge.typo3.org/repositories/entry/typo3v4-core/Documentation/trunk/doc_core_cgl/doc/doc_core_cgl.sxw?format=raw It is awaiting approval from the TYPO3 core team leader. -- Dmitry Dulepov In TYPO3 blog: http://dmitry-dulepov.com/article/was-your-e-mail-to-typo3org-rejected.html LinkedIn: http://www.linkedin.com/in/dmitrydulepov Twitter: http://twitter.com/dmitryd Skype: liels_bugs From fsuter at cobweb.ch Sat Apr 18 20:10:47 2009 From: fsuter at cobweb.ch (Francois Suter) Date: Sat, 18 Apr 2009 20:10:47 +0200 Subject: [TYPO3-dev] migration 4.2.6 to 4.3.x loosing css_styled_content In-Reply-To: References: Message-ID: Hi, > yes, Francois wants to take care if he's back, suggestions are already > made. Not "if", "when" ;-) I'm back, I'll take care of that this coming week. -- Francois Suter Cobweb Development Sarl - http://www.cobweb.ch From christopher at loerken.net Sun Apr 19 15:24:50 2009 From: christopher at loerken.net (=?ISO-8859-15?Q?Christopher_L=F6rken?=) Date: Sun, 19 Apr 2009 15:24:50 +0200 Subject: [TYPO3-dev] Tangled-up user authentication Message-ID: Hello everybody, I've got some questions regarding the Typo3 4.2 code for authenticating FE sessions and logging in users. In short, the background is that we have experienced some performance issues on our site. We are running a browser-game which uses a Java backend application (same physical server) that causes quite some load on the database leaving us with a mere 20% of SELECT queries in total. I tried to profile our DB and why it was running slow using Jet Profiler (if anyone has tips for better programs, please tell me!!). To my surprise, Jet Profiler showed that roughly 60% of the time the database needed was spend in fe_users and especially in fe_sessions tables.... 60% of MySQL time spend in those two tables? That puzzled me so I XCLASSed t3lib_db to see what queries are executed and I found, that: - for not logged in users, each page hit causes (summed) - 2 SELECT call on fe_session_data - 1 SELECT call on fe_sessions - 2 SELECT calls on fe_sessions joined with fe_users - 2 DELETE calls on fe_sessions - for a logged in user with a valid cookie: - 1 SELECT call on fe_sessions - 1 SELECT call on fe_session_data - 1 DELETE call on fe_session_data (every 100th call) - 2 SELECT calls on fe_sessions joined with fe_users - 2 UPDATE calls on fe_sessions - 1 Update on fe_users if "is_online" it at least 60 seconds old. So in total there are 7 DB calls for not logged in users with every page hit and 6-8 DB calls for logged in users with every page hit. This seems to me like an unnecessarily high number... Wouldn't the following steps suffice: 1) SELECT from fe_sessions the row with the set ses_id a) if IPlock, ses_tstamp, and so on are correct: Proceed with 2 b) if they are not correct, DELETE the row from fe_sessions (maybe fe_session_data?), keep the session ID (or assign new?) and assume this is a guest user. Done. c) if there is no such record, check the session_data table if there are extensions using that table (would be a nice config flag I guess...). Keep the session ID. Done. 2) Session data is valid, so select the fe_user and (if necessary) the corresponding session_data. a) If the user is invalid (deleted, etc.) void the session, assume Guest user, done. 3) Every 60 seconds, update fe_sessions.tstamp 4) Every 60 seconds, update fe_user.is_online In other words, what I see necessary are 1-2 calls for not logged in users and 2-5 calls for logged in users... That is a difference (current worst case against possible best case) of 12 database queries... Please, do tell me if I miss something here... Some words about the actual implementation: **1. Calls to fetchUserSession** The really redundant calls that are simply executed twice in a row are caused by fetchUserSession(). fetchUserSession tries to get the session and the corresponding user with a joined SELECT over fe_sessions and fe_user. If it has found the row, it will (always) update the tstamp in fe_sessions. (There is actually a comment in the 4.2 source that it is probably not necessary to _always_ do that.) That method is first called in authenticateUser() which simply does not use the result but merely sets $this->loginFailure to false... And what we find as code in t3lib_userauth is: $this->checkAuthentication(); unset($this->user); $this->user = $this->fetchUserSession(); So as just said: checkAuthentication calls fetchUserSession and afterwards it is fetched right again, duplicating the JOIN SELECT and the fe_sessions tstamp UPDATE. While the SELECT is probably still in the MySQL query cache, the UPDATE will probably at least cause some load (although the second time at least nothing needs to be physically written). **2. isExistingSessionRecord** As I understand the Hotfix against session fixation... It is responsible for one of the SELECTs on fe_sessions in both, logged in and logged out cases and, when logged out, as well for 1 SELECT on session_data. The result of that call is again only true or false. The call only selects a count(*) instead of reading that row for later usage. **3. isExistingSessionRecords influence on the session ID and the MySQL query cache** When a user is not logged in, the Method results in a change of the fe_typo_user session ID with every page a user loads. This effectively voids any possible positive effect of MySQL query cache since the looked for key is never the same. Remember here that there are two selects, one on fe_sessions, one on fe_session_data wich use that key. Changing the sessionID every time does not only make no use of the MySQL query cache, it also spams it with queries which are never again to be experienced... **4. fe_session_data** We are not using that many extensions, but I did not yet come along one which actually uses the fe_session_data table. I know there are some basket case implementations and such, but I'd guess that there are many Typo3 installations who do not actually need that table. Here it would be nice to get rid of the overload of checking that table with every pagevisit (up to 2 times!) and from time to time issueing DELETE queries on an anyway emtpy table. I'd suggest a config flag which disables that table and skips those unnecessary database calls. **5. JOINED select on fe_sessions and fe_users** I'm very unsure about this last point, as I'm not an expert when it comes to databases, but I kind of wonder, if there may be performance problems and slow queries by having fe_users a MyISAM table... The table is read heavily but is also frequently updated by changing is_online tstamps... Since those updates lock the whole table they probably would block reads and joined reads even back in the fe_sessions table... My proposal above would split the calls to fe_sessions and fe_users, mainly to be able to know that there is a session record for an ID even by ignoring an IP lock or ses_id of a disabled user. Well... I Don't really know where I'm aiming at here but I've got an unsure feeling ;) So... I'm about to XCLASS tslib_feuserauth to rewrite necessary parts for a "slim" authentication. What I would really like to know is if I have overlooked some crucial part in my simple setup... I especially do not understand the famous session fixation problem and why the ID always changes... All comments on any of this are highly appreciated. Have a nice Sunday, Christopher From masi-no at spam-typo3.org Sun Apr 19 18:35:34 2009 From: masi-no at spam-typo3.org (Martin Kutschker) Date: Sun, 19 Apr 2009 18:35:34 +0200 Subject: [TYPO3-dev] Tangled-up user authentication In-Reply-To: References: Message-ID: Christopher L?rken schrieb: > Hello everybody, > > I've got some questions regarding the Typo3 4.2 code for authenticating > FE sessions and logging in users. To be honest, I've read the user/authentication classes several times, but I never understood this multiple reading from the same tables. OTOH, I never dared to touch the code ;) Masi From info at sk-typo3.de Sun Apr 19 23:00:43 2009 From: info at sk-typo3.de (Steffen Kamper) Date: Sun, 19 Apr 2009 23:00:43 +0200 Subject: [TYPO3-dev] Tangled-up user authentication In-Reply-To: References: Message-ID: Hi, Martin Kutschker schrieb: > Christopher L?rken schrieb: >> Hello everybody, >> >> I've got some questions regarding the Typo3 4.2 code for authenticating >> FE sessions and logging in users. > > To be honest, I've read the user/authentication classes several times, > but I never understood this multiple reading from the same tables. OTOH, > I never dared to touch the code ;) > > Masi same feeling here. I also was astonished while using the logoff-hook, that logoff is called on each page rendering 2 times. This is the mistake phpmyadmin extension does and what cause the cookie-problems. vg Steffen From fudriot at omic.ch Mon Apr 20 10:28:57 2009 From: fudriot at omic.ch (Fabien Udriot) Date: Mon, 20 Apr 2009 10:28:57 +0200 Subject: [TYPO3-dev] Switching between PHP 5.3 and 5.2.9 for Mac OS Message-ID: Hi, I would like to point out that it exists now a package for Mac OS X that install PHP 5.3 RC1 very easyily. In fact the development of the entropy package seems to be relaunched. http://www.entropy.ch/blog/Software/2009/03/27/PHP-5-2-9-and-5-3-0RC1-Packages-for-Mac-OS-X-10-5.html In addition, I set up a basic bash that enables me to switch quickly between the 5.2.9 and 5.3. This is very convenient to test the branch v.5 / FLOW3 and swap back to the v.4 branch. Here are my steps: 1. download and install 5.2.9: http://www2.entropy.ch/download/Entropy%20PHP%205.2.9-7.pkg 2. sudo mv /usr/local/php5 /usr/local/php5.2.9 3. download and install 5.3: http://www2.entropy.ch/download/Entropy%20PHP%205.3.0RC1-1.pkg 4. sudo mv /usr/local/php5 /usr/local/php5.3.0-RC1 5. create a symbolic link to which distribution you wish sudo ln -s /usr/local/php5.3.0-RC1 /usr/local/php5 6. Restart apache: sudo apachectl restart Now you can copy / paste the lines bellow to a file called switchPHP.sh and execute it in command line: sudo sh switchPHP.sh 3 -> switch to 5.3.0-RC1 sudo sh switchPHP.sh 2 -> switch to 5.2.9 Notice: this script is very basic, you may need to adapt it. ############################################################## #!/bin/sh if [ "$#" -eq 0 ] then # Script needs at least one command-line argument. echo "Usage $0 [3 or 2]" exit fi PATH='/usr/local/' if [ $1 = 3 ]; then /bin/rm php5 /bin/ln -s ${PATH}php5.3.0-RC1 ${PATH}php5 /usr/sbin/apachectl restart fi if [ $1 = 2 ]; then /bin/rm php5 /bin/ln -s ${PATH}php5.2.9 ${PATH}php5 /usr/sbin/apachectl restart fi From t33k.RE.MO.VE at RE.MO.VE.prolabium.com Mon Apr 20 10:36:29 2009 From: t33k.RE.MO.VE at RE.MO.VE.prolabium.com (Krystian Szymukowicz) Date: Mon, 20 Apr 2009 10:36:29 +0200 Subject: [TYPO3-dev] Tangled-up user authentication In-Reply-To: References: Message-ID: Christopher L?rken wrote: > > So in total there are 7 DB calls for not logged in users with every page > hit hi I am not familiar with this aspect of TYPO3 so I would ask you because as I see you've spent some time digging into this matter. So the question is: is those 7 DB calls started with every page hit even if I have no fe_user at all? Thanks if you could clarify this. -- grtz Krystian Szymukowicz From mathias.schreiber at wmdb.de Mon Apr 20 11:36:56 2009 From: mathias.schreiber at wmdb.de (Mathias Schreiber [wmdb >]) Date: Mon, 20 Apr 2009 11:36:56 +0200 Subject: [TYPO3-dev] Tangled-up user authentication In-Reply-To: References: Message-ID: Krystian Szymukowicz schrieb: > Christopher L?rken wrote: >> >> So in total there are 7 DB calls for not logged in users with every >> page hit > > hi > > I am not familiar with this aspect of TYPO3 so I would ask you because > as I see you've spent some time digging into this matter. So the > question is: > is those 7 DB calls started with every page hit even if I have no > fe_user at all? > > Thanks if you could clarify this. Yes, this is correct. Background is that you can save session based information for a user even if he/she isn't logged in at all. If someone should log in at a later time (with the same session) his/her session data is being "transfered" to the user data. All in all pretty smart, although I dislike the select, delete, select again, insert, select approach of TYPO3. If I got some spare time I will dig through those classes (3 or 4 if I remember correctly). Oli, this might be another use-case for my "competence-center" idea we talked about in Laax. cheers Mathias From christopher at loerken.net Mon Apr 20 11:38:27 2009 From: christopher at loerken.net (=?ISO-8859-15?Q?Christopher_L=F6rken?=) Date: Mon, 20 Apr 2009 11:38:27 +0200 Subject: [TYPO3-dev] Tangled-up user authentication In-Reply-To: References: Message-ID: Krystian Szymukowicz schrieb: > Christopher L?rken wrote: >> >> So in total there are 7 DB calls for not logged in users with every >> page hit > > hi > > I am not familiar with this aspect of TYPO3 so I would ask you because > as I see you've spent some time digging into this matter. So the > question is: > is those 7 DB calls started with every page hit even if I have no > fe_user at all? > > Thanks if you could clarify this. > > > -- > grtz > Krystian Szymukowicz Hi Krystian, as far as I see it: yes. The system wouldn't know that you do not have any fe_users and FE user authentication is directly called from index_ts and tslib_fe respectively. I don't see any conditionals which would avoid those calls. Cheers, Christopher From mathias.schreiber at wmdb.de Mon Apr 20 12:13:33 2009 From: mathias.schreiber at wmdb.de (Mathias Schreiber [wmdb >]) Date: Mon, 20 Apr 2009 12:13:33 +0200 Subject: [TYPO3-dev] Tangled-up user authentication In-Reply-To: References: Message-ID: Christopher L?rken schrieb: > So... I'm about to XCLASS tslib_feuserauth to rewrite necessary parts > for a "slim" authentication. What I would really like to know is if I > have overlooked some crucial part in my simple setup... I > > especially do not understand the famous session fixation problem and why > the ID always changes... > > All comments on any of this are highly appreciated. ok, here we go... First off, I am a bit biased about the session_data thing. Making it configurable is not bad, but in order to keep the "hey, my ext doesn't work anymore" postings low I suggest that you have to ENABLE slim auth instead of by default disabling the session data feature. Just the other way around. Then I would move the is_online thingy to the session table, since it is more likely that there are less sessions than users (unless there are a lot of guests (I think this term is best for "not-logged-in-users"). This way we get less updates on the fe_users table, while the session table should be used for "moving data" anyways. cheers Mathias From t33k.RE.MO.VE at RE.MO.VE.prolabium.com Mon Apr 20 13:30:29 2009 From: t33k.RE.MO.VE at RE.MO.VE.prolabium.com (Krystian Szymukowicz) Date: Mon, 20 Apr 2009 13:30:29 +0200 Subject: [TYPO3-dev] Tangled-up user authentication In-Reply-To: References: Message-ID: Mathias Schreiber [wmdb >] wrote: > Krystian Szymukowicz schrieb: >> Christopher L?rken wrote: >>> >>> So in total there are 7 DB calls for not logged in users with every >>> page hit >> >> hi >> >> I am not familiar with this aspect of TYPO3 so I would ask you because >> as I see you've spent some time digging into this matter. So the >> question is: >> is those 7 DB calls started with every page hit even if I have no >> fe_user at all? >> >> Thanks if you could clarify this. > > Yes, this is correct. > Background is that you can save session based information for a user > even if he/she isn't logged in at all. > If someone should log in at a later time (with the same session) his/her > session data is being "transfered" to the user data. > Most of my TYPO3 sites have no fe_users and do not use session info so if I understand correctly this 7 queries are not needed at all. So the next question is obvious in this situation: can I turn off all the authentication/session queries without changing the TYPO3 source code? I suppose this queries could be responsible for half of the time needed to accomplish simple task of getting the page from db cache. -- grtz Krystian Szymukowicz From t33k.RE.MO.VE at RE.MO.VE.prolabium.com Mon Apr 20 13:40:32 2009 From: t33k.RE.MO.VE at RE.MO.VE.prolabium.com (Krystian Szymukowicz) Date: Mon, 20 Apr 2009 13:40:32 +0200 Subject: [TYPO3-dev] Tangled-up user authentication In-Reply-To: References: Message-ID: Christopher L?rken wrote: > Krystian Szymukowicz schrieb: >> Christopher L?rken wrote: >>> >>> So in total there are 7 DB calls for not logged in users with every >>> page hit >> >> hi >> >> I am not familiar with this aspect of TYPO3 so I would ask you because >> as I see you've spent some time digging into this matter. So the >> question is: >> is those 7 DB calls started with every page hit even if I have no >> fe_user at all? >> >> Thanks if you could clarify this. >> > > as far as I see it: yes. The system wouldn't know that you do not have > any fe_users and FE user authentication is directly called from index_ts > and tslib_fe respectively. I don't see any conditionals which would > avoid those calls. > Thanks for this clarification Christopher. I answered with question to Mathias post and the same question could go here. But you wrote "I don't see any conditionals which would avoid those calls" so I suppose this will not be possible to increase performance by turning off the fe_user auth/session staff, will it? Now I see why on some cheap hosting taking page from cache can take 100-200ms. -- grtz Krystian Szymukowicz From mathias.schreiber at wmdb.de Mon Apr 20 13:44:06 2009 From: mathias.schreiber at wmdb.de (Mathias Schreiber [wmdb >]) Date: Mon, 20 Apr 2009 13:44:06 +0200 Subject: [TYPO3-dev] Tangled-up user authentication In-Reply-To: References: Message-ID: Krystian Szymukowicz schrieb: > Most of my TYPO3 sites have no fe_users and do not use session info so > if I understand correctly this 7 queries are not needed at all. Depends. These queries aren't needed in your special case. Making the complete user-session handling switchable might rise a whole lot of other problems. So investigation is needed. > So the next question is obvious in this situation: can I turn off all > the authentication/session queries without changing the TYPO3 source code? s.a. > I suppose this queries could be responsible for half of the time needed > to accomplish simple task of getting the page from db cache. In this case (cachable content, no users, no sessions) I would go for static filecaching anyways (made VERY good experiences with nc_staticfilecache). This way you get much better results than even with all TYPO3 overhead turned off. cheers Mathias From t33k.RE.MO.VE at RE.MO.VE.prolabium.com Mon Apr 20 14:09:54 2009 From: t33k.RE.MO.VE at RE.MO.VE.prolabium.com (Krystian Szymukowicz) Date: Mon, 20 Apr 2009 14:09:54 +0200 Subject: [TYPO3-dev] Tangled-up user authentication In-Reply-To: References: Message-ID: Mathias Schreiber [wmdb >] wrote: > Krystian Szymukowicz schrieb: >> Most of my TYPO3 sites have no fe_users and do not use session info so >> if I understand correctly this 7 queries are not needed at all. > > Depends. > These queries aren't needed in your special case. > Making the complete user-session handling switchable might rise a whole > lot of other problems. > So investigation is needed. If you or Christopher will provide such switch I will be glad to test it. > >> I suppose this queries could be responsible for half of the time >> needed to accomplish simple task of getting the page from db cache. > > In this case (cachable content, no users, no sessions) I would go for > static filecaching anyways (made VERY good experiences with > nc_staticfilecache). > > This way you get much better results than even with all TYPO3 overhead > turned off. I know nc_staticfilecache but last time I was using this (2 years ago?) I've experienced some problems with proper cache file deleting. I mean the page X was changed in backend but the file with page X wasn't deleted in filesystem. Maybe I should give it a second try. Anyway - even on firts hit those queries will be a balast so the switch could be a good thing : ) -- grtz Krystian Szymukowicz From christopher at loerken.net Mon Apr 20 14:22:12 2009 From: christopher at loerken.net (=?ISO-8859-15?Q?Christopher_L=F6rken?=) Date: Mon, 20 Apr 2009 14:22:12 +0200 Subject: [TYPO3-dev] Tangled-up user authentication -> Fixing extension attached In-Reply-To: References: Message-ID: Dear all, I've written a fairly simple extension which extends tslib_feUserAuth and replaces part of the code which causes the described behavior (mainly the subsequent calls to fetchUserSession which I have replaced with a method that has a "memory"). We are currently testing the extension and ... so far ... noone made it to the forum to complain ;) The effective reduced workload is: Guest users: 1 DB call instead of 7 Authenticated users: 2-3 calls instead of 6-8 (depending on timestamp updates) I've added config flags for disabling fe_session_data and (@Krystian) even the whole authentication procedure. Of course, both authentication and access on fe_session_data are enabled by default. I'd highly appreciate if someone who knows this stuff could review this code, otherwise I would not load it to the TER. I've especially got the following questions: 1: I never understood this session fixation thing. AFAIK, the code below is allright, but since I didn't get the actual problem it might as well be in there. 2: I've tried to make my changes minimally invasive so I don't think that it will break anything. I am not aware of any reason why extensions (or the core) would call one of the overwritten methods themselves and / or if this might break anything. 3: If I shall go on and upload this extension to TER, I wondered how to move those config flags that currently have to be set to TYPO3_CONF_VARS by hand to be configurable in TS? Did only find that for plugins... I hope the pasted source gets out formatted ok... Any comments are highly appreciated. Cheers, Christopher -------------------------------- * @copyright 2009 Bytro Labs * @version 2009-04-20 */ class ux_tslib_feUserAuth extends tslib_feUserAuth { /** * If set to 1 via $TYPO3_CONF_VARS['FE']['fastauth']['disableSessionData'] = 1; in localconf.php, * the fe_session_data table will be ignored. * WARNING: This can result in extensions not working properly if they use that table. If you don't use it, this will save you * a couple of database requests. * @var integer */ protected $_disableSessionData = 0; /** * Specifies the time in seconds that has to pass between updating the timestamps in fe_sessions and fe_users. * The default value is an update every 60 seconds. * You can adjust the value in your localconf.php. E.g.: * $TYPO3_CONF_VARS['FE']['fastauth']['sessionUpdateTime'] = 60; * @var integer */ protected $_sessionUpdateTime = 60; /** * Flag that can be set as * $TYPO3_CONF_VARS['FE']['fastauth']['disableFrontendAuthentification'] = 1; * * WARNING: This flag completly skips _all_ calls to fe_sessions and fe_session_data so no page which * uses either of those tables will work!!!. * @var integer */ protected $_disableFrontendAuthentification = 0; /** * This variable is used to buffer multiple calls to fetchUserSession. Subsequent calls return the first result. * @var array assoc containing the entries of fe_users and fe_sessions */ protected $_singletonSession; /** * CHANGES: * - The fastauth config settings are read from TYPO3_CONF_VARS. * - The minimally altered userauth->start is called. * * (non-PHPdoc) * @see typo3/sysext/cms/tslib/tslib_feUserAuth#start() */ public function start() { global $TYPO3_CONF_VARS; /////////////////////////////////////////////// // these are fastauth configuration options if (isset($TYPO3_CONF_VARS['FE']['fastauth']['disableSessionData'])) { $this->_disableSessionData = $TYPO3_CONF_VARS['FE']['fastauth']['disableSessionData']; } if (isset($TYPO3_CONF_VARS['FE']['fastauth']['sessionUpdateTime'])) { $this->_sessionUpdateTime = intval($TYPO3_CONF_VARS['FE']['fastauth']['sessionUpdateTime']); } if (isset($TYPO3_CONF_VARS['FE']['fastauth']['disableFrontendAuthentification'])) { $this->_disableFrontendAuthentification = intval($TYPO3_CONF_VARS['FE']['fastauth']['disableFrontendAuthentification']); } // these are fastauth configuration options /////////////////////////////////////////////// /////////////////////////////////////////////// // content of feuserauth->start() if (intval($this->auth_timeout_field)>0 && intval($this->auth_timeout_field) < $this->lifetime) { // If server session timeout is non-zero but less than client session timeout: Copy this value instead. $this->auth_timeout_field = $this->lifetime; } // content of feuserauth->start() /////////////////////////////////////////////// /////////////////////////////////////////////// // calling minimally adjusted userauth->start() $this->userauth_start(); // calling minimally adjusted userauth->start() /////////////////////////////////////////////// } /** * CHANGES: This method is completly rewritten. * * Modified method for avoiding multiple calls to fe_sessions and fe_users. * This method: * - Reads fe_sessions and fe_users only _once_ per page hit. * - Updates them only if they need to be updated. * - Validates the session against timeout, IPlock and so on. * * Subsequent calls to this method will return the same value as the first call. See $this->_singletonSession. * * NOTE: When a user logs in, this method will identify him as guest. Afterwards, createUserSession will be called by t3lib_userauth, * which overwrites the value of $this->_singletonSession making this method to return the newly created session without * having to read what has just been written. * * @return array user session data */ function fetchUserSession() { $user = ''; if ($this->_disableFrontendAuthentification) return $user; $session = ''; $sessionID = $this->id; //early return if we have already read the users session if (isset($this->_singletonSession) && $this->_singletonSession['ses_id'] == $this->id && $this->_singletonSession['ses_name'] == $this->name) { //if a the singletonSession from a previous call contains a valid user, reutrn it. if (isset($this->_singletonSession[$this->userid_column])) { return $this->_singletonSession; } else { //else return the empty user string. return $user; } } else { if ($this->writeDevLog) t3lib_div::devLog('Fetch session ses_id = '.$this->id, 't3lib_userAuth'); $whereClause= 'ses_id = '.$GLOBALS['TYPO3_DB']->fullQuoteStr($this->id, $this->session_table).' AND ses_name = '.$GLOBALS['TYPO3_DB']->fullQuoteStr($this->name, $this->session_table); //1st: read row from fe_sessions $dbres = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', $this->session_table, $whereClause); if ($dbres !== false) { $session = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($dbres); if (isset($session['ses_id'])) { //check IP Lock, HashLock, user where clause and session timestamp $sessionAuthenticated = true; $isExistingSession = true; if ($this->lockIP) { $checkIP = $this->ipLockClause_remoteIPNumber($this->lockIP); if ($session['ses_iplock'] != $checkIP && $session['ses_iplock'] != '[DISABLED]') { $sessionAuthenticated = false; } } if ($sessionAuthenticated && $session['ses_hashlock'] != $this->hashLockClause_getHashInt()) { $sessionAuthenticated = false; } } else { $isExistingSession = false; $sessionAuthenticated = false; } } else { $isExistingSession = false; $sessionAuthenticated = false; } //2nd: get the user record from user_table if ($sessionAuthenticated) { $userID = $session['ses_userid']; $dbres = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', $this->user_table, $this->userid_column.'='.intval($userID)); if ($dbres !== false) { $user = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($dbres); // A user was found, check if the session is still valid and if the user is allowed to log in (e.g. not disabled...) if (is_string($this->auth_timeout_field)) { $timeout = intval($user[$this->auth_timeout_field]); // Get timeout-time from usertable } else { $timeout = intval($this->auth_timeout_field); // Get timeout from object } if ($timeout>0 && ($GLOBALS['EXEC_TIME'] > ($session['ses_tstamp']+$timeout))) { //the session has expired $sessionAuthenticated = false; } //The following are the checks that were formerly performed by selecting only those useres who meet the //user_where_clause() condition: // (($this->enablecolumns['rootLevel']) ? 'AND '.$this->user_table.'.pid=0 ' : ''). // (($this->enablecolumns['disabled']) ? ' AND '.$this->user_table.'.'.$this->enablecolumns['disabled'].'=0' : ''). // (($this->enablecolumns['deleted']) ? ' AND '.$this->user_table.'.'.$this->enablecolumns['deleted'].'=0' : ''). // (($this->enablecolumns['starttime']) ? ' AND ('.$this->user_table.'.'.$this->enablecolumns['starttime'].'<='.time().')' : ''). // (($this->enablecolumns['endtime']) ? ' AND ('.$this->user_table.'.'.$this->enablecolumns['endtime'].'=0 OR '.$this->user_table.'.'.$this->enablecolumns['endtime'].'>'.time().')' : ''); if ($sessionAuthenticated && $this->enablecolumns['rootLevel'] && $user['pid'] != 0) { $sessionAuthenticated = false; } if ($sessionAuthenticated && $this->enablecolumns['disabled'] && $user['disabled'] != 0) { $sessionAuthenticated = false; } if ($sessionAuthenticated && $this->enablecolumns['deleted'] && $user['deleted'] != 0) { $sessionAuthenticated = false; } if ($sessionAuthenticated && $this->enablecolumns['starttime'] && $user[$this->enablecolumns['starttime']] > time()) { $sessionAuthenticated = false; } if ($sessionAuthenticated && $this->enablecolumns['endtime'] && $user[$this->enablecolumns['endtime']] != 0 && $user[$this->enablecolumns['endtime']] < time()) { $sessionAuthenticated = false; } } } //3rd: remember the singleton variable for future reference if ($sessionAuthenticated) { //valid fe_session and valid fe_user $user = array_merge($session, $user); $this->updateTimestamps($user); $this->_singletonSession = $user; } else if ($isExistingSession) { //existing fe_session that has expired or otherwise been invalideted. Remove it and change session id. Return value will be empty string. $this->logoff(); $this->_singletonSession = array ( 'ses_id' => $this->id, 'ses_name' => $this->name ); } else { //this is a fresh guest user who did not have a session. No need to update any tables. Return value will be empty string. $this->_singletonSession = array ( 'ses_id' => $this->id, 'ses_name' => $this->name ); } } return $user; } /** * Method gets called for a user who has just entered his / her password. * * CHANGES: Additional to the original method is, that the values that are written to the DB are * immediately remembered in RAM so they do not have to be reread in fetchUserSession. */ function createUserSession ($tempuser) { parent::createUserSession($tempuser); //////////////////////////////////////////////// // fastauth Modification for remembering this user: //this only builds an array $insertFields = $this->getNewSessionRecord($tempuser); $tempuser[$this->lastLogin_column] = $GLOBALS['EXEC_TIME']; $this->_singletonSession = array_merge($insertFields, $tempuser); // fastauth Modification for remembering this user: //////////////////////////////////////////////// } /** * Updates the fe_sessions ses_tstamp when the last update was more than * $this->_sessionUpdateTime seconds ago (DEFAULT: 60 seconds). * @param $user - pointer to assoc user array, the function sets the lastlogin and ses_tstamp in the user array when they are updated * @return void */ public function updateTimestamps(&$user) { if ($GLOBALS['EXEC_TIME'] > $user['ses_tstamp'] + $this->_sessionUpdateTime) { //update session table $GLOBALS['TYPO3_DB']->exec_UPDATEquery( $this->session_table, 'ses_id='.$GLOBALS['TYPO3_DB']->fullQuoteStr($this->id, $this->session_table).' AND ses_name='.$GLOBALS['TYPO3_DB']->fullQuoteStr($this->name, $this->session_table), array('ses_tstamp' => $GLOBALS['EXEC_TIME']) ); $user['ses_tstamp'] = $GLOBALS['EXEC_TIME']; // Make sure that the timestamp is also updated in the array } } /** * CHANGES: always returns true: * * This function is overwritten to actually disable the call to isExistingSessionRecord. This matter is now handled * in fetchUserSession resulting in two things: * - No unnecessary additional calls to the database. * - No changing of the ses_id of guest users with every page hit and thus no spamming of MySQL query cache. * * (non-PHPdoc) * @see typo3/sysext/cms/tslib/tslib_feUserAuth#isExistingSessionRecord($id) */ public function isExistingSessionRecord($id) { return true; } /** * CHANGES: Fetches the session data from fe_session_data _if and only if_ flag $this->_disableSessionData has not been set. * (non-PHPdoc) * @see typo3/sysext/cms/tslib/tslib_feUserAuth#fetchSessionData() */ public function fetchSessionData() { if (!$this->_disableSessionData) { parent::fetchSessionData(); } } /** * CHANGES: Since we have removed isExistingSessionRecord, we'll change the ses_id whenever a session is invalidated. * @see #getNewSessionID() */ public function logoff() { parent::logoff(); $this->getNewSessionID(); } /** * Mere Helper method. * Generates a new session ID. Code taken from t3lib_userauth. * @return void */ public function getNewSessionID() { $this->id = substr(md5(uniqid('').getmypid()),0,$this->hash_length); $this->newSessionID = TRUE; } /** * This is the method of t3lib_userauth. * * CHANGES: The only change is, that all references to the local field $id have * been exchanged with access to $this->id. * This is necessary to be able to change the session ID when the user logs out or the session * otherwise became invalid (e.g. timed out). * Without this adjustment, the user would always keep the same ses_id. * * (non-PHPdoc) * @see typo3/sysext/cms/tslib/tslib_feUserAuth#start() */ function userauth_start() { global $TYPO3_CONF_VARS; // backend or frontend login - used for auth services $this->loginType = ($this->name=='fe_typo_user') ? 'FE' : 'BE'; // set level to normal if not already set $this->security_level = $this->security_level ? $this->security_level : 'normal'; // enable dev logging if set if ($TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['writeDevLog']) $this->writeDevLog = TRUE; if ($TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['writeDevLog'.$this->loginType]) $this->writeDevLog = TRUE; if (TYPO3_DLOG) $this->writeDevLog = TRUE; if ($this->writeDevLog) t3lib_div::devLog('## Beginning of auth logging.', 't3lib_userAuth'); // Init vars. $mode = ''; $this->newSessionID = FALSE; // $this->id is set to ses_id if cookie is present. Else set to false, which will start a new session $this->id = isset($_COOKIE[$this->name]) ? stripslashes($_COOKIE[$this->name]) : ''; $this->hash_length = t3lib_div::intInRange($this->hash_length,6,32); $this->svConfig = $TYPO3_CONF_VARS['SVCONF']['auth']; // If fallback to get mode.... if (!$this->id && $this->getFallBack && $this->get_name) { $this->id = isset($_GET[$this->get_name]) ? t3lib_div::_GET($this->get_name) : ''; if (strlen($this->id)!=$this->hash_length) $this->id=''; $mode='get'; } $this->cookieId = $this->id; // If new session or client tries to fix session... if (!$this->id || !$this->isExistingSessionRecord($this->id)) { // New random session-$this->id is made $this->id = substr(md5(uniqid('').getmypid()),0,$this->hash_length); // New session $this->newSessionID = TRUE; } // Internal var 'id' is set //$this->id = $this->id; // If fallback to get mode.... if ($mode=='get' && $this->getFallBack && $this->get_name) { $this->get_URL_ID = '&'.$this->get_name.'='.$this->id; } // Make certain that NO user is set initially $this->user = ''; // Check to see if anyone has submitted login-information and if so register the user with the session. $this->user[uid] may be used to write log... $this->checkAuthentication(); // Make certain that NO user is set initially. ->check_authentication may have set a session-record which will provide us with a user record in the next section: unset($this->user); // re-read user session $this->user = $this->fetchUserSession(); if ($this->writeDevLog && is_array($this->user)) t3lib_div::devLog('User session finally read: '.t3lib_div::arrayToLogString($this->user, array($this->userid_column,$this->username_column)), 't3lib_userAuth', -1); if ($this->writeDevLog && !is_array($this->user)) t3lib_div::devLog('No user session found.', 't3lib_userAuth', 2); // Setting cookies if ($TYPO3_CONF_VARS['SYS']['cookieDomain']) { if ($TYPO3_CONF_VARS['SYS']['cookieDomain']{0} == '/') { $matchCnt = @preg_match($TYPO3_CONF_VARS['SYS']['cookieDomain'], t3lib_div::getIndpEnv('TYPO3_HOST_ONLY'), $match); if ($matchCnt === FALSE) { t3lib_div::sysLog('The regular expression of $TYPO3_CONF_VARS[SYS][cookieDomain] contains errors. The session is not shared across sub-domains.', 'Core', 3); } elseif ($matchCnt) { $cookieDomain = $match[0]; } } else { $cookieDomain = $TYPO3_CONF_VARS['SYS']['cookieDomain']; } } // If new session and the cookie is a sessioncookie, we need to set it only once! if ($this->isSetSessionCookie()) { if (!$this->dontSetCookie) { if ($cookieDomain) { SetCookie($this->name, $this->id, 0, '/', $cookieDomain); } else { SetCookie($this->name, $this->id, 0, '/'); } if ($this->writeDevLog) t3lib_div::devLog('Set new Cookie: '.$this->id.($cookieDomain ? ', '.$cookieDomain : ''), 't3lib_userAuth'); } } // If it is NOT a session-cookie, we need to refresh it. if ($this->isRefreshTimeBasedCookie()) { if (!$this->dontSetCookie) { if ($cookieDomain) { SetCookie($this->name, $this->id, time()+$this->lifetime, '/', $cookieDomain); } else { SetCookie($this->name, $this->id, time()+$this->lifetime, '/'); } if ($this->writeDevLog) t3lib_div::devLog('Update Cookie: '.$this->id.($cookieDomain ? ', '.$cookieDomain : ''), 't3lib_userAuth'); } } // Hook for alternative ways of filling the $this->user array (is used by the "timtaw" extension) if (is_array($TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['postUserLookUp'])) { foreach ($TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['postUserLookUp'] as $funcName) { $_params = array( 'pObj' => &$this, ); t3lib_div::callUserFunction($funcName,$_params,$this); } } // If any redirection (inclusion of file) then it will happen in this function $this->redirect(); // Set all posible headers that could ensure that the script is not cached on the client-side if ($this->sendNoCacheHeaders) { header('Expires: 0'); header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); header('Cache-Control: no-cache, must-revalidate'); header('Pragma: no-cache'); } // Set $this->gc_time if not explicitely specified if ($this->gc_time==0) { $this->gc_time = ($this->auth_timeout_field==0 ? 86400 : $this->auth_timeout_field); // Default to 1 day if $this->auth_timeout_field is 0 } // If we're lucky we'll get to clean up old sessions.... if ((rand()%100) <= $this->gc_probability) { $this->gc(); } } } //if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['tslib/class.tslib_feuserauth.php']) { // include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['tslib/class.tslib_feuserauth.php']); //} ?> From hagelstein at shr.cc Mon Apr 20 14:29:32 2009 From: hagelstein at shr.cc (Nikolas Hagelstein) Date: Mon, 20 Apr 2009 14:29:32 +0200 Subject: [TYPO3-dev] Tangled-up user authentication -> Fixing extension attached References: Message-ID: Christopher, did you perform any before/after benchmark comparison?. If so could you share your results? Regards, Nikolas From dmitry.dulepov at gmail.com Mon Apr 20 14:34:16 2009 From: dmitry.dulepov at gmail.com (Dmitry Dulepov) Date: Mon, 20 Apr 2009 15:34:16 +0300 Subject: [TYPO3-dev] Tangled-up user authentication In-Reply-To: References: Message-ID: Hi! Krystian Szymukowicz wrote: > But you wrote "I don't see any conditionals which would avoid those > calls" so I suppose this will not be possible to increase performance by > turning off the fe_user auth/session staff, will it? That stuff should be done differently. It is historical code and it was written when no one really cared about things like performance, usability or security. Features had priority. This code can be rewritten but it will take 16-24h for an experienced core developer to rewrite it. -- Dmitry Dulepov In TYPO3 blog: http://dmitry-dulepov.com/article/was-your-e-mail-to-typo3org-rejected.html LinkedIn: http://www.linkedin.com/in/dmitrydulepov Twitter: http://twitter.com/dmitryd Skype: liels_bugs From typo3 at perseguers.ch Mon Apr 20 14:50:21 2009 From: typo3 at perseguers.ch (Xavier Perseguers) Date: Mon, 20 Apr 2009 14:50:21 +0200 Subject: [TYPO3-dev] Tangled-up user authentication In-Reply-To: References: Message-ID: Hi, >> But you wrote "I don't see any conditionals which would avoid those >> calls" so I suppose this will not be possible to increase performance by >> turning off the fe_user auth/session staff, will it? > > That stuff should be done differently. It is historical code and it was written when no one really cared about things like performance, usability or security. Features had priority. > > This code can be rewritten but it will take 16-24h for an experienced core developer to rewrite it. If you feel it good, you may try to patch the original class and post it to core. Testing should be done carefully with all extensions that extend the authentication process to be sure it works as expected but personnally I could test the updated version against my own authentication extension. -- Xavier Perseguers http://xavier.perseguers.ch/en/tutorials/typo3.html From christopher at loerken.net Mon Apr 20 15:22:27 2009 From: christopher at loerken.net (=?ISO-8859-1?Q?Christopher_L=F6rken?=) Date: Mon, 20 Apr 2009 15:22:27 +0200 Subject: [TYPO3-dev] Tangled-up user authentication -> Fixing extension attached In-Reply-To: References: Message-ID: Nikolas Hagelstein schrieb: > Christopher, > > did you perform any before/after benchmark comparison?. > If so could you share your results? > > > Regards, > Nikolas Hi Nikolas, not really I'm afraid, mainly since I don't know how to properly do it. I've just run an ab apache benchmark on an indling development server which doesn't show any real difference, 9.48 requests per second for the original authentication, 9.67 for my extension (one thread, 1000 requests, simple page). I don't know how "ab" handles cookies and if it is a suitable tool for testing something like this. I'll switch on that "Jet Profiler" later when there is more traffic on our server to check if the slow hanging queries in fe_sessions and fe_users have dropped. But that result will be a subjective reading and no real benchmark. Still. I very much believe that performing 1 request for a guest user instead of 7 will make some difference. Regards, Christopher From rik at actiview.nl Mon Apr 20 15:25:18 2009 From: rik at actiview.nl (Rik Willems) Date: Mon, 20 Apr 2009 15:25:18 +0200 Subject: [TYPO3-dev] Official coding guidelines of TYPO3 In-Reply-To: References: Message-ID: Hi, Good to see these guidelines in place. Will use them starting now. One question from my side. It is unclear to me what is meant. On page 5 of the document this can be read: piX/ These directories contain Frontend plugins. If extension is generated by the Kickstarter, X will be a number. It is recommended to give more meaningful names to Frontend plugin directories. svX/ These directories contain TYPO3 services. If extension is generated by the Kickstarter, X will be a number. It is recommended to give more meaningful names to service directories. modX/ These directories commonly contain Backend modules. If extension is generated by the Kickstarter, X will be substituted with a number. It is recommended to give more meaningful names to Backend module directories. All extensions in TER leave the X=1 or X=2 in place. Is it actually meant that these directories should be rename to for instance piNewsArchive? Regards, Rik Dmitry Dulepov schreef: > Hi! > > Andy Grunwald [wmdb] wrote: >> In my search for the official coding guidelines i`ve found 3 versions: >> typo3.org: last update: 28.04.2007 11:36 >> http://typo3.org/documentation/document-library/core-documentation/doc_core_cgl/current/ >> >> wiki.typo3.org: draft version >> http://wiki.typo3.org/index.php/TYPO3_Coding_Guidelines_-_Notes >> >> Dmitry Dulepovs blog: result of discussion by TYPO3-(Core-)Team >> http://dmitry-dulepov.com/article/get-typo3-coding-guidelines-here.html >> >> So i dont know which coding guidelines are to use. Any idea? > > Here is the recent draft that core team uses de facto: > http://forge.typo3.org/repositories/entry/typo3v4-core/Documentation/trunk/doc_core_cgl/doc/doc_core_cgl.sxw?format=raw > > It is awaiting approval from the TYPO3 core team leader. > From dosipov at phillyburbs.com Mon Apr 20 15:37:13 2009 From: dosipov at phillyburbs.com (Dan Osipov) Date: Mon, 20 Apr 2009 09:37:13 -0400 Subject: [TYPO3-dev] Official coding guidelines of TYPO3 In-Reply-To: References: Message-ID: "X will be a number" So it should be pi1, pi2, mod1, etc... Dan Osipov Calkins Media http://danosipov.com/blog/ Rik Willems wrote: > Hi, > > Good to see these guidelines in place. Will use them starting now. > > One question from my side. It is unclear to me what is meant. > On page 5 of the document this can be read: > > piX/ > These directories contain Frontend plugins. If extension is generated by > the Kickstarter, X will be a number. It is recommended to give more > meaningful names to Frontend plugin directories. > svX/ > These directories contain TYPO3 services. If extension is generated by > the Kickstarter, X will be a number. It is recommended to give more > meaningful names to service directories. > modX/ > These directories commonly contain Backend modules. If extension is > generated by the Kickstarter, X will be substituted with a number. It is > recommended to give more meaningful names to Backend module directories. > > All extensions in TER leave the X=1 or X=2 in place. Is it actually > meant that these directories should be rename to for instance > piNewsArchive? > > Regards, > Rik > > Dmitry Dulepov schreef: >> Hi! >> >> Andy Grunwald [wmdb] wrote: >>> In my search for the official coding guidelines i`ve found 3 versions: >>> typo3.org: last update: 28.04.2007 11:36 >>> http://typo3.org/documentation/document-library/core-documentation/doc_core_cgl/current/ >>> >>> >>> wiki.typo3.org: draft version >>> http://wiki.typo3.org/index.php/TYPO3_Coding_Guidelines_-_Notes >>> >>> Dmitry Dulepovs blog: result of discussion by TYPO3-(Core-)Team >>> http://dmitry-dulepov.com/article/get-typo3-coding-guidelines-here.html >>> >>> So i dont know which coding guidelines are to use. Any idea? >> >> Here is the recent draft that core team uses de facto: >> http://forge.typo3.org/repositories/entry/typo3v4-core/Documentation/trunk/doc_core_cgl/doc/doc_core_cgl.sxw?format=raw >> >> >> It is awaiting approval from the TYPO3 core team leader. >> From rik at actiview.nl Mon Apr 20 15:39:03 2009 From: rik at actiview.nl (Rik Willems) Date: Mon, 20 Apr 2009 15:39:03 +0200 Subject: [TYPO3-dev] Official coding guidelines of TYPO3 In-Reply-To: References: Message-ID: Yes, and "It is recommended to give more meaningful names to Frontend plugin directories." So it should be piPluginName and piPluginOtherName... Or am I wrong now... Rik Dan Osipov schreef: > "X will be a number" > > So it should be pi1, pi2, mod1, etc... > > Dan Osipov > Calkins Media > http://danosipov.com/blog/ > > Rik Willems wrote: >> Hi, >> >> Good to see these guidelines in place. Will use them starting now. >> >> One question from my side. It is unclear to me what is meant. >> On page 5 of the document this can be read: >> >> piX/ >> These directories contain Frontend plugins. If extension is generated >> by the Kickstarter, X will be a number. It is recommended to give more >> meaningful names to Frontend plugin directories. >> svX/ >> These directories contain TYPO3 services. If extension is generated by >> the Kickstarter, X will be a number. It is recommended to give more >> meaningful names to service directories. >> modX/ >> These directories commonly contain Backend modules. If extension is >> generated by the Kickstarter, X will be substituted with a number. It >> is recommended to give more meaningful names to Backend module >> directories. >> >> All extensions in TER leave the X=1 or X=2 in place. Is it actually >> meant that these directories should be rename to for instance >> piNewsArchive? >> >> Regards, >> Rik >> >> Dmitry Dulepov schreef: >>> Hi! >>> >>> Andy Grunwald [wmdb] wrote: >>>> In my search for the official coding guidelines i`ve found 3 versions: >>>> typo3.org: last update: 28.04.2007 11:36 >>>> http://typo3.org/documentation/document-library/core-documentation/doc_core_cgl/current/ >>>> >>>> >>>> wiki.typo3.org: draft version >>>> http://wiki.typo3.org/index.php/TYPO3_Coding_Guidelines_-_Notes >>>> >>>> Dmitry Dulepovs blog: result of discussion by TYPO3-(Core-)Team >>>> http://dmitry-dulepov.com/article/get-typo3-coding-guidelines-here.html >>>> >>>> So i dont know which coding guidelines are to use. Any idea? >>> >>> Here is the recent draft that core team uses de facto: >>> http://forge.typo3.org/repositories/entry/typo3v4-core/Documentation/trunk/doc_core_cgl/doc/doc_core_cgl.sxw?format=raw >>> >>> >>> It is awaiting approval from the TYPO3 core team leader. >>> From typo3 at perseguers.ch Mon Apr 20 15:42:55 2009 From: typo3 at perseguers.ch (Xavier Perseguers) Date: Mon, 20 Apr 2009 15:42:55 +0200 Subject: [TYPO3-dev] Official coding guidelines of TYPO3 In-Reply-To: References: Message-ID: Hi, > Yes, and "It is recommended to give more meaningful names to Frontend > plugin directories." > > So it should be piPluginName and piPluginOtherName... You may leave it as this. Personnally, I renamed those to pimembers, pievents, ... as quickly I was not able anymore to know what pi1 and pi4 were for... However all these conventions will be lost once you move to extbase MVC coming with 4.3. As such, I would not loose time with this and either leave it as this (it's OK) or give it a meaningful name if you think it will be easier to work with. -- Xavier Perseguers http://xavier.perseguers.ch/en/tutorials/typo3.html From typo3 at perseguers.ch Mon Apr 20 15:43:29 2009 From: typo3 at perseguers.ch (Xavier Perseguers) Date: Mon, 20 Apr 2009 15:43:29 +0200 Subject: [TYPO3-dev] Official coding guidelines of TYPO3 In-Reply-To: References: Message-ID: > However all these conventions will be lost once you move to extbase MVC > coming with 4.3. I mean "piX" and "modX", not the rest of course :-) -- Xavier Perseguers http://xavier.perseguers.ch/en/tutorials/typo3.html From dosipov at phillyburbs.com Mon Apr 20 15:46:16 2009 From: dosipov at phillyburbs.com (Dan Osipov) Date: Mon, 20 Apr 2009 09:46:16 -0400 Subject: [TYPO3-dev] Official coding guidelines of TYPO3 In-Reply-To: References: Message-ID: Oh, I see what you mean. I prefer to give more meaningful names to the PHP classes, and leave the directories as kickstarter created them. Dan Osipov Calkins Media http://danosipov.com/blog/ Rik Willems wrote: > Yes, and "It is recommended to give more meaningful names to Frontend > plugin directories." > > So it should be piPluginName and piPluginOtherName... > > Or am I wrong now... > > Rik > > Dan Osipov schreef: >> "X will be a number" >> >> So it should be pi1, pi2, mod1, etc... >> >> Dan Osipov >> Calkins Media >> http://danosipov.com/blog/ >> >> Rik Willems wrote: >>> Hi, >>> >>> Good to see these guidelines in place. Will use them starting now. >>> >>> One question from my side. It is unclear to me what is meant. >>> On page 5 of the document this can be read: >>> >>> piX/ >>> These directories contain Frontend plugins. If extension is generated >>> by the Kickstarter, X will be a number. It is recommended to give >>> more meaningful names to Frontend plugin directories. >>> svX/ >>> These directories contain TYPO3 services. If extension is generated >>> by the Kickstarter, X will be a number. It is recommended to give >>> more meaningful names to service directories. >>> modX/ >>> These directories commonly contain Backend modules. If extension is >>> generated by the Kickstarter, X will be substituted with a number. It >>> is recommended to give more meaningful names to Backend module >>> directories. >>> >>> All extensions in TER leave the X=1 or X=2 in place. Is it actually >>> meant that these directories should be rename to for instance >>> piNewsArchive? >>> >>> Regards, >>> Rik >>> >>> Dmitry Dulepov schreef: >>>> Hi! >>>> >>>> Andy Grunwald [wmdb] wrote: >>>>> In my search for the official coding guidelines i`ve found 3 versions: >>>>> typo3.org: last update: 28.04.2007 11:36 >>>>> http://typo3.org/documentation/document-library/core-documentation/doc_core_cgl/current/ >>>>> >>>>> >>>>> wiki.typo3.org: draft version >>>>> http://wiki.typo3.org/index.php/TYPO3_Coding_Guidelines_-_Notes >>>>> >>>>> Dmitry Dulepovs blog: result of discussion by TYPO3-(Core-)Team >>>>> http://dmitry-dulepov.com/article/get-typo3-coding-guidelines-here.html >>>>> >>>>> >>>>> So i dont know which coding guidelines are to use. Any idea? >>>> >>>> Here is the recent draft that core team uses de facto: >>>> http://forge.typo3.org/repositories/entry/typo3v4-core/Documentation/trunk/doc_core_cgl/doc/doc_core_cgl.sxw?format=raw >>>> >>>> >>>> It is awaiting approval from the TYPO3 core team leader. >>>> From dmitry.dulepov at gmail.com Mon Apr 20 16:04:57 2009 From: dmitry.dulepov at gmail.com (Dmitry Dulepov) Date: Mon, 20 Apr 2009 17:04:57 +0300 Subject: [TYPO3-dev] Official coding guidelines of TYPO3 In-Reply-To: References: Message-ID: Hi! Xavier Perseguers wrote: > However all these conventions will be lost once you move to extbase MVC > coming with 4.3. ...*if* you move. But we still have this in CGL for those who want to use the old way (for older TYPO3 versions). -- Dmitry Dulepov In TYPO3 blog: http://dmitry-dulepov.com/article/was-your-e-mail-to-typo3org-rejected.html LinkedIn: http://www.linkedin.com/in/dmitrydulepov Twitter: http://twitter.com/dmitryd Skype: liels_bugs From typo3 at perseguers.ch Mon Apr 20 16:12:14 2009 From: typo3 at perseguers.ch (Xavier Perseguers) Date: Mon, 20 Apr 2009 16:12:14 +0200 Subject: [TYPO3-dev] Official coding guidelines of TYPO3 In-Reply-To: References: Message-ID: Hi Dmitry, > Xavier Perseguers wrote: >> However all these conventions will be lost once you move to extbase MVC >> coming with 4.3. > > ...*if* you move. But we still have this in CGL for those who want to use the old way (for older TYPO3 versions). Of course. I just hope I won't be the only one to try (at least) to use this backport ;-) For older TYPO3 versions, It makes sense! -- Xavier Perseguers http://xavier.perseguers.ch/en/tutorials/typo3.html From mathias.schreiber at wmdb.de Mon Apr 20 17:24:35 2009 From: mathias.schreiber at wmdb.de (Mathias Schreiber [wmdb >]) Date: Mon, 20 Apr 2009 17:24:35 +0200 Subject: [TYPO3-dev] Tangled-up user authentication -> Fixing extension attached In-Reply-To: References: Message-ID: Christopher L?rken schrieb: > not really I'm afraid, mainly since I don't know how to properly do it. > I've just run an ab apache benchmark on an indling development server > which doesn't show any real difference, 9.48 requests per second for the > original authentication, 9.67 for my extension (one thread, 1000 > requests, simple page). ab is the no.1 NOT tool for benchmarking TYPO3 (sorry pal :)). Problem is that you need to get different queries in order to get a good overview over the query caches (Dimitry, you can take it from here if you like). One thing you could do is set up different browsers to reload the page every x seconds and compare the TYPO3 parsetimes (sys_stat saves those IIRC). All in all, as long as you don't do massive changes with joins and stuff like that performance should be better, though i'm not sure if it can be measured in a pratical way. Generally speaking: Less queries are a good thing and from my perspecitive THE major point of tuning TYPO3 performance (check out all queries that run when requesting a page from cache ;-)) cheers Mathias From fsuter at cobweb.ch Mon Apr 20 17:27:17 2009 From: fsuter at cobweb.ch (Francois Suter) Date: Mon, 20 Apr 2009 17:27:17 +0200 Subject: [TYPO3-dev] date2cal 7.2.0 + IRRE + 4.2.4-dev => JS Error In-Reply-To: References: Message-ID: Hi, > Please deactivate the natural language parser (see extension manager) if you > want to use date2cal with IRRE. This issue is targeted for version 8.x. Any news on a 8.x release? Cheers -- Francois Suter Cobweb Development Sarl - http://www.cobweb.ch From sgalinski at df.eu Mon Apr 20 17:53:07 2009 From: sgalinski at df.eu (Stefan Galinski) Date: Mon, 20 Apr 2009 17:53:07 +0200 Subject: [TYPO3-dev] date2cal 7.2.0 + IRRE + 4.2.4-dev => JS Error References: Message-ID: Francois Suter wrote: > Hi, > >> Please deactivate the natural language parser (see extension manager) if >> you want to use date2cal with IRRE. This issue is targeted for version >> 8.x. > > Any news on a 8.x release? > > Cheers > Hi Francois, I haven't started the work yet, but there should be a new release at the end of this summer. I planned already some really nice improvements, but they require some days/weeks of spare time. -- Stefan From typo.removeformessage at fx-graefix.de Mon Apr 20 17:55:26 2009 From: typo.removeformessage at fx-graefix.de (Franz Koch) Date: Mon, 20 Apr 2009 17:55:26 +0200 Subject: [TYPO3-dev] getting rid of adminpanelwrap? Message-ID: Hi, I'm using current SVN version and like to get rid of the adminpanel wrap, or let's better say the drag'n'drop "feature". Everytime I click anywhere in the adminpanel it's being moved and it's position get's stored absolutely to the window. Now if I switch to a different page of the website that is longer than the other page, the adminpanel is somewhere in the middle of the page, and this really sucks. Is there a way to get rid of that wrap/dragging stuff? I had a look at pending documentation, but found nothing related. Thanks. -- kind regards, Franz Koch --------------------------------------------------- PayPal-Account: 'paypal _at_ elements-net _dot_ de' --------------------------------------------------- From typo.removeformessage at fx-graefix.de Mon Apr 20 18:05:35 2009 From: typo.removeformessage at fx-graefix.de (Franz Koch) Date: Mon, 20 Apr 2009 18:05:35 +0200 Subject: [TYPO3-dev] getting rid of adminpanelwrap? In-Reply-To: References: Message-ID: > I'm using current SVN version and like to get rid of the adminpanel > wrap, or let's better say the drag'n'drop "feature". Everytime I click > anywhere in the adminpanel it's being moved and it's position get's > stored absolutely to the window. Now if I switch to a different page of > the website that is longer than the other page, the adminpanel is > somewhere in the middle of the page, and this really sucks. > > Is there a way to get rid of that wrap/dragging stuff? I had a look at > pending documentation, but found nothing related. Thanks. Just digged the source and it doesn't seem like it's configurable, so I'd vote to make the drag'n'drop or the wrap itself configurable. If this is no option I'd suggest the following: a) only drag the adminpanel on rightclick b) define a drag-area in the topbar of the admin panel, so that only this area allows for dragging c) relax and drink a beer How do you guys see this? -- kind regards, Franz Koch --------------------------------------------------- PayPal-Account: 'paypal _at_ elements-net _dot_ de' --------------------------------------------------- From bedlamhotel at gmail.com Mon Apr 20 19:59:00 2009 From: bedlamhotel at gmail.com (Christopher Torgalson) Date: Mon, 20 Apr 2009 10:59:00 -0700 Subject: [TYPO3-dev] getting rid of adminpanelwrap? In-Reply-To: References: Message-ID: On Mon, Apr 20, 2009 at 9:05 AM, Franz Koch wrote: > >> I'm using current SVN version and like to get rid of the adminpanel >> wrap, or let's better say the drag'n'drop "feature". Everytime I click >> anywhere in the adminpanel it's being moved and it's position get's >> stored absolutely to the window. Now if I switch to a different page of >> the website that is longer than the other page, the adminpanel is >> somewhere in the middle of the page, and this really sucks. >> >> Is there a way to get rid of that wrap/dragging stuff? I had a look at >> pending documentation, but found nothing related. Thanks. > > Just digged the source and it doesn't seem like it's configurable, so > I'd vote to make the drag'n'drop or the wrap itself configurable. If > this is no option I'd suggest the following: > a) only drag the adminpanel on rightclick > b) define a drag-area in the topbar of the admin panel, so that only > this area allows for dragging > c) relax and drink a beer +1 for (b) + (c), plus maybe a config option for the initial position of the adminpanel. -- Christopher Torgalson http://www.typo3apprentice.com/ From fsuter at cobweb.ch Mon Apr 20 20:18:33 2009 From: fsuter at cobweb.ch (Francois Suter) Date: Mon, 20 Apr 2009 20:18:33 +0200 Subject: [TYPO3-dev] date2cal 7.2.0 + IRRE + 4.2.4-dev => JS Error In-Reply-To: References: Message-ID: Hi Stefan, > I haven't started the work yet, but there should be a new release at the end > of this summer. I planned already some really nice improvements, but they > require some days/weeks of spare time. Thanks for the news. I guess we all know how hard it is to find some spare time... Cheers -- Francois Suter Cobweb Development Sarl - http://www.cobweb.ch From marcus#exp2009 at t3sec.info Mon Apr 20 21:17:47 2009 From: marcus#exp2009 at t3sec.info (Marcus Krause) Date: Mon, 20 Apr 2009 21:17:47 +0200 Subject: [TYPO3-dev] Tangled-up user authentication In-Reply-To: References: Message-ID: Christopher L?rken schrieb am 04/20/2009 11:38 AM Uhr: > Krystian Szymukowicz schrieb: >> Christopher L?rken wrote: >>> >>> So in total there are 7 DB calls for not logged in users with every >>> page hit >> >> I am not familiar with this aspect of TYPO3 so I would ask you because >> as I see you've spent some time digging into this matter. So the >> question is: >> is those 7 DB calls started with every page hit even if I have no >> fe_user at all? >> >> Thanks if you could clarify this. > > as far as I see it: yes. The system wouldn't know that you do not have > any fe_users and FE user authentication is directly called from index_ts > and tslib_fe respectively. I don't see any conditionals which would > avoid those calls. Simply do not create FE user sessions! $TYPO3_CONF_VARS['FE']['dontSetCookie'] = 1 Marcus. PS: Of course, the code still needs a rewrite. From gaumondpatrick-s-p-a-m at hotmail-sp-a-m.com Mon Apr 20 22:08:50 2009 From: gaumondpatrick-s-p-a-m at hotmail-sp-a-m.com (Patrick Gaumond) Date: Mon, 20 Apr 2009 16:08:50 -0400 Subject: [TYPO3-dev] Official coding guidelines of TYPO3 In-Reply-To: References: Message-ID: Dan Osipov wrote: > "X will be a number" > > So it should be pi1, pi2, mod1, etc... It's one area that could be slightly enhanced: Show some more examples. Dmitry, do you want me to provide some and send you the sxw file? How can someone help for such a document ? Patrick From steffen at steffen-gebert.de Mon Apr 20 22:52:09 2009 From: steffen at steffen-gebert.de (Steffen Gebert) Date: Mon, 20 Apr 2009 22:52:09 +0200 Subject: [TYPO3-dev] cache_hash flooded by MENUDATA Message-ID: Hi list, I already found some threads about huge cache_hash tables, but mostly related to cal In our installation most of the entries are of ident MENUDATA (184.000 of of 185.000). The size of the table is 2.2 gig and our installation has ~16.000 pages (spread over ~450 websites). Looking at the entries, I have no clue. We use hierarchical TMENUs with a max. depth of 3. (main site is: www.fw-REMOVE_MEbayern.de) I wonder, how so many items are generated and what could be done. I found the hint to use clearCacheAtMidnight. But as clearing the cache takes some minutes (we also use nc_staticfilecache), I think it's not a good idea (the cache is then cleared by the first request after midnight, isn't it?). Hope you have some ideas.. :) Regards Steffen From gaumondpatrick-s-p-a-m at hotmail-sp-a-m.com Tue Apr 21 04:28:05 2009 From: gaumondpatrick-s-p-a-m at hotmail-sp-a-m.com (Patrick Gaumond) Date: Mon, 20 Apr 2009 22:28:05 -0400 Subject: [TYPO3-dev] cache_hash flooded by MENUDATA In-Reply-To: References: Message-ID: Steffen Gebert wrote: > I found the hint to use clearCacheAtMidnight. But as clearing the cache > takes some minutes (we also use nc_staticfilecache), I think it's not a good > idea (the cache is then cleared by the first request after midnight, isn't > it?). > > Hope you have some ideas.. :) Get inspiration from this extension that use TRUNCATE instead of DELETE: http://typo3.org/documentation/document-library/extension-manuals/truncate_cache/2.0.0/view/1/1/#id4213529 See if you can adapt it for clearCacheAtMidnight instead of the BE menu... Patrick From johnange at gmail.com Tue Apr 21 08:09:39 2009 From: johnange at gmail.com (John Angel) Date: Tue, 21 Apr 2009 08:09:39 +0200 Subject: [TYPO3-dev] cache_hash flooded by MENUDATA In-Reply-To: References: Message-ID: > I already found some threads about huge cache_hash tables, but mostly > related to cal > In our installation most of the entries are of ident MENUDATA (184.000 of of > 185.000). The size of the table is 2.2 gig and our installation has ~16.000 > pages (spread over ~450 websites). You can check: http://bugs.typo3.org/view.php?id=5425 Regards, John From mathias.schreiber at wmdb.de Tue Apr 21 08:15:02 2009 From: mathias.schreiber at wmdb.de (Mathias Schreiber [wmdb >]) Date: Tue, 21 Apr 2009 08:15:02 +0200 Subject: [TYPO3-dev] cache_hash flooded by MENUDATA In-Reply-To: References: Message-ID: Patrick Gaumond schrieb: > Steffen Gebert wrote: > >> I found the hint to use clearCacheAtMidnight. But as clearing the >> cache takes some minutes (we also use nc_staticfilecache), I think >> it's not a good idea (the cache is then cleared by the first request >> after midnight, isn't it?). First off, IIRC this sets the TTL of the cache to 0001hrs of the next day. Thus the first hit after mightnight on page X will trigger the new generation of page X - not all pages in the installation. > Get inspiration from this extension that use TRUNCATE instead of DELETE: should be core anyways, but thats another story :) > http://typo3.org/documentation/document-library/extension-manuals/truncate_cache/2.0.0/view/1/1/#id4213529 > > > See if you can adapt it for clearCacheAtMidnight instead of the BE menu... Generally a good idea, but I think the main problem is that deleting the cache takes a lot of time (which might be caused by the rather big cache tables AND a lot of static pages being generated). Practically, there is no solution right now, since truncate cannot be used because AFAIK nc_staticfilecache needs the "row-by-row" type of cache deletion to delete its rendered files. But what you could do is to "truncate" nc_staticfilecache as well. So if the command gets called, first truncate the cache tables and then issue an rm -rf [your_static_filecache_directory] and see, if it's faster. hope this helps cheers Mathias From mathias.schreiber at wmdb.de Tue Apr 21 08:19:54 2009 From: mathias.schreiber at wmdb.de (Mathias Schreiber [wmdb >]) Date: Tue, 21 Apr 2009 08:19:54 +0200 Subject: [TYPO3-dev] cache_hash flooded by MENUDATA In-Reply-To: References: Message-ID: John Angel schrieb: >> I already found some threads about huge cache_hash tables, but mostly >> related to cal >> In our installation most of the entries are of ident MENUDATA (184.000 of of >> 185.000). The size of the table is 2.2 gig and our installation has ~16.000 >> pages (spread over ~450 websites). > > > You can check: > http://bugs.typo3.org/view.php?id=5425 Hi John, i took a quick look at your patch but my tummy tells me that we run into some problems. Storing "pages" and "id" should not be sufficent, since the menu could be rendered differently based on other conditions, this "pages" and "id" remain the same. Imagine logged in users or TS conditions. cheers Mathias From dmitry.dulepov at gmail.com Tue Apr 21 08:49:11 2009 From: dmitry.dulepov at gmail.com (Dmitry Dulepov) Date: Tue, 21 Apr 2009 09:49:11 +0300 Subject: [TYPO3-dev] Official coding guidelines of TYPO3 In-Reply-To: References: Message-ID: Hi! Patrick Gaumond wrote: > Dmitry, do you want me to provide some and send you the sxw file? Only examples, please! You can desribe it in the e-mail like: ============= Add to section named "Comments": -------- Lorem ipsum.... -------- ============= > How can someone help for such a document ? We can discuss it here :) It is best if it is public :) -- Dmitry Dulepov In TYPO3 blog: http://dmitry-dulepov.com/article/was-your-e-mail-to-typo3org-rejected.html LinkedIn: http://www.linkedin.com/in/dmitrydulepov Twitter: http://twitter.com/dmitryd Skype: liels_bugs From dmitry.dulepov at gmail.com Tue Apr 21 08:51:08 2009 From: dmitry.dulepov at gmail.com (Dmitry Dulepov) Date: Tue, 21 Apr 2009 09:51:08 +0300 Subject: [TYPO3-dev] cache_hash flooded by MENUDATA In-Reply-To: References: Message-ID: Hi! Steffen Gebert wrote: > In our installation most of the entries are of ident MENUDATA (184.000 of of > 185.000). The size of the table is 2.2 gig and our installation has ~16.000 > pages (spread over ~450 websites). > Looking at the entries, I have no clue. We use hierarchical TMENUs with a > max. depth of 3. (main site is: www.fw-REMOVE_MEbayern.de) > > I wonder, how so many items are generated and what could be done. I think it is a bug and it should be fixed. Please, open a bug report. Meanwhile we can discuss it here. For example, I do not see any need to put this data to cache_hash. Normally pages are cached, so it does not make sense to cache also menus. -- Dmitry Dulepov In TYPO3 blog: http://dmitry-dulepov.com/article/was-your-e-mail-to-typo3org-rejected.html LinkedIn: http://www.linkedin.com/in/dmitrydulepov Twitter: http://twitter.com/dmitryd Skype: liels_bugs From steffen at steffen-gebert.de Tue Apr 21 13:39:21 2009 From: steffen at steffen-gebert.de (Steffen Gebert) Date: Tue, 21 Apr 2009 13:39:21 +0200 Subject: [TYPO3-dev] cache_hash flooded by MENUDATA In-Reply-To: References: Message-ID: Hi guys, thanks for your quick relies! Mathias Schreiber [wmdb >] schrieb: > Practically, there is no solution right now, since truncate cannot be > used because AFAIK nc_staticfilecache needs the "row-by-row" type of > cache deletion to delete its rendered files. Yes, this is why I decided to not change anything until 4.3 I think nc_staticfilecache then needs some adjustments and maybe we could then implement "rm -r" as equivalent for TRUNCATE Until now it's okay as we know that clearing the cache without first delete the cache files is bad (and can sometimes knock the server out..). Steffen From steffen at steffen-gebert.de Tue Apr 21 13:45:35 2009 From: steffen at steffen-gebert.de (Steffen Gebert) Date: Tue, 21 Apr 2009 13:45:35 +0200 Subject: [TYPO3-dev] cache_hash flooded by MENUDATA In-Reply-To: References: Message-ID: Dmitry Dulepov schrieb: > I think it is a bug and it should be fixed. Please, open a bug report. Meanwhile we can discuss it here. For example, I do not see any need to put this data to cache_hash. Normally pages are cached, so it does not make sense to cache also menus. > Thanks. Bug report: http://bugs.typo3.org/view.php?id=10944 I assume the same problem still exists with the new caching framework in 4.3, doesn't it? Steffen From info at sk-typo3.de Tue Apr 21 13:51:45 2009 From: info at sk-typo3.de (Steffen Kamper) Date: Tue, 21 Apr 2009 13:51:45 +0200 Subject: [TYPO3-dev] cache_hash flooded by MENUDATA In-Reply-To: References: Message-ID: Hi, Steffen Gebert schrieb: > I assume the same problem still exists with the new caching framework in > 4.3, doesn't it? > > Steffen i fear yes as there was no change which data are cached, only how they are cached. vg Steffen From stephane.baribeau at sys-tech.net Tue Apr 21 15:52:42 2009 From: stephane.baribeau at sys-tech.net (Stephane Baribeau) Date: Tue, 21 Apr 2009 09:52:42 -0400 Subject: [TYPO3-dev] Typoscript 3 lvl menus Message-ID: Hello everyone, I have a question about TMENU i have this code lib.menu = HMENU lib.menu.excludeUidList = 1,2,3,4,5 lib.menu{ entryLevel = 0 wrap = 1 = TMENU 1 { expAll = 1 #Normal State NO { allWrap.insertData=1 allWrap=
  • ||
  • ||
  • ||
  • ||
  • ||
  • wrapItemAndSub = |
  • stdWrap.htmlSpecialChars = 1 ATagParams = class="element" } } 2 = TMENU 2 { expAll = 1 wrap = #Normal State NO { wrapItemAndSub =
  • |
  • stdWrap.htmlSpecialChars = 1 } } 3 = TMENU 3 { expAll = 1 wrap =
      start | end
    NO { wrapItemAndSub = | stdWrap.htmlSpecialChars = 1 } } } the problem is the third level are expend with i select the first level. if i remove expAll = 1 from the 3 = TMENU i can't expend the third level. whats i'm doing wrong? Its my first 3-lvl menu. thanks -- *St?phane Baribeau* Programmeur stephane.baribeau at sys-tech.net 418 520-0739 poste 129 514 907-0036 / 1-877-969-8324 *SYS-TECH / Web, m?dias et technologies libres* 6700 BOUL PIERRE-BERTRAND BUREAU 209 QU?BEC QC G2J 0B4 http://www.sys-tech.net /Membre supporteur de l'Association TYPO3 / From christopher at loerken.net Tue Apr 21 15:51:09 2009 From: christopher at loerken.net (=?ISO-8859-15?Q?Christopher_L=F6rken?=) Date: Tue, 21 Apr 2009 15:51:09 +0200 Subject: [TYPO3-dev] Tangled-up user authentication In-Reply-To: References: Message-ID: Marcus Krause schrieb: > Christopher L?rken schrieb am 04/20/2009 11:38 AM Uhr: >> Krystian Szymukowicz schrieb: >>> Christopher L?rken wrote: >>>> So in total there are 7 DB calls for not logged in users with every >>>> page hit >>> I am not familiar with this aspect of TYPO3 so I would ask you because >>> as I see you've spent some time digging into this matter. So the >>> question is: >>> is those 7 DB calls started with every page hit even if I have no >>> fe_user at all? >>> >>> Thanks if you could clarify this. >> as far as I see it: yes. The system wouldn't know that you do not have >> any fe_users and FE user authentication is directly called from index_ts >> and tslib_fe respectively. I don't see any conditionals which would >> avoid those calls. > > > Simply do not create FE user sessions! > $TYPO3_CONF_VARS['FE']['dontSetCookie'] = 1 Hi Marcus, I'm afraid this will not help. Setting dontSetCookie does exactly what it says: It doesn't set cookies. This has, however, no effect on any DB calls. As I said: A guest user always results in 2 calls to fe_sessions, 1 on fe_session_data and 2 on fe_sessions joined with fe_users... I don't see any conditionals which would avoid those calls. Regards, Christopher From typo3 at t3node.com Tue Apr 21 16:05:15 2009 From: typo3 at t3node.com (=?UTF-8?B?U3RlZmZlbiBNw7xsbGVy?=) Date: Tue, 21 Apr 2009 16:05:15 +0200 Subject: [TYPO3-dev] flexform removes '&' character In-Reply-To: References: Message-ID: Hi. On 11.04.2009 19:03 falcifer wrote: > I have defined a flexform field to store parameters of an URL like a > string (something like tx_ttnews[tt_news]=###UID###&no_cache=1) but after > save the record it always has stored tx_ttnews[tt_news] > =###UID###no_cache=1 whithout the '&' > Is this issue related to #9359? http://bugs.typo3.org/view.php?id=9359 Does using CDATA fix this for you? (you have to use trunk rev >= 5207 to test. I can't test, since I have no system with this bug. Xavier? -- cheers, Steffen http://www.t3node.com/ From typo3 at t3node.com Tue Apr 21 16:10:40 2009 From: typo3 at t3node.com (=?UTF-8?B?U3RlZmZlbiBNw7xsbGVy?=) Date: Tue, 21 Apr 2009 16:10:40 +0200 Subject: [TYPO3-dev] flexform removes '&' character In-Reply-To: References: Message-ID: On 21.04.2009 16:05 Steffen M?ller wrote: > > Does using CDATA fix this for you? (you have to use trunk rev >= 5207 to > test. > Sorry, it's also available in the 4_2 branch, same revision. You have to get it from svn, as long there's no patch release for 4.2 -- cheers, Steffen http://www.t3node.com/ From dmitry.dulepov at gmail.com Tue Apr 21 17:00:17 2009 From: dmitry.dulepov at gmail.com (Dmitry Dulepov) Date: Tue, 21 Apr 2009 18:00:17 +0300 Subject: [TYPO3-dev] Typoscript 3 lvl menus In-Reply-To: References: Message-ID: Hi! Stephane Baribeau wrote: > I have a question about TMENU Why in "dev" list? This list is about PHP development... You should use English list instead :) -- Dmitry Dulepov In TYPO3 blog: http://dmitry-dulepov.com/article/stopping-maintenance-of-some-typo3-extensions.html LinkedIn: http://www.linkedin.com/in/dmitrydulepov Twitter: http://twitter.com/dmitryd Skype: liels_bugs From stephane.baribeau at sys-tech.net Tue Apr 21 17:15:20 2009 From: stephane.baribeau at sys-tech.net (Stephane Baribeau) Date: Tue, 21 Apr 2009 11:15:20 -0400 Subject: [TYPO3-dev] Typoscript 3 lvl menus In-Reply-To: References: Message-ID: Hi, Ok sorry Dmitry! Have a nice day! Dmitry Dulepov a ?crit : > Hi! > > Stephane Baribeau wrote: > >> I have a question about TMENU >> > > Why in "dev" list? This list is about PHP development... You should use English list instead :) > > -- *St?phane Baribeau* Programmeur stephane.baribeau at sys-tech.net 418 520-0739 poste 129 514 907-0036 / 1-877-969-8324 *SYS-TECH / Web, m?dias et technologies libres* 6700 BOUL PIERRE-BERTRAND BUREAU 209 QU?BEC QC G2J 0B4 http://www.sys-tech.net /Membre supporteur de l'Association TYPO3 / From patrick at work.de Tue Apr 21 17:21:27 2009 From: patrick at work.de (Patrick Kollodzik) Date: Tue, 21 Apr 2009 17:21:27 +0200 Subject: [TYPO3-dev] th_mailformplus: Two forms on one page Message-ID: Hello, ich have a annoying problem with the extension th_mailformplus (4.0.13). I have one page were i want to insert two different forms. To do that i have two content elements with with the preferences for each form. The problem is, if i submit one form the error messages of the second form are displayed. Is there the possibility tell mailformplus that only the submited form should be checked ? Best Regards, Patrick Kollodzik From info at sk-typo3.de Tue Apr 21 17:25:09 2009 From: info at sk-typo3.de (Steffen Kamper) Date: Tue, 21 Apr 2009 17:25:09 +0200 Subject: [TYPO3-dev] th_mailformplus: Two forms on one page In-Reply-To: References: Message-ID: Hi, Patrick Kollodzik schrieb: > Hello, > > ich have a annoying problem with the extension th_mailformplus (4.0.13). > I have one page were i want to insert two different forms. To do that i > have two content elements with with the preferences for each form. > > The problem is, if i submit one form the error messages of the second > form are displayed. Is there the possibility tell mailformplus that only > the submited form should be checked ? > > Best Regards, Patrick Kollodzik this problem exists for most plugins handling GP-data. Each plugin reacts on this data. I don't see a solution without manipulating ext vg Steffen From typo.removeformessage at fx-graefix.de Tue Apr 21 21:06:21 2009 From: typo.removeformessage at fx-graefix.de (Franz Koch) Date: Tue, 21 Apr 2009 21:06:21 +0200 Subject: [TYPO3-dev] how to override autoloaded static TS from within own linked external static TS? Message-ID: Hi, I've put all my TS configuration into external TS files and included the main TS file as static template to a regular template record (just like with other extensions). This template record is set to "clear constants", "clear config" and "rootlevel". Now I tried to configure tx_felogin_pi1 from within my external TS file, but this seems to be impossible, as the autoloaded TS file from tx_felogin_pi1 is getting loaded after my TS file. I tried every combination of the dropdown "static template files from T3 extensions", but none of them is working. If I set it to "never include before..." they are not included at all. If I leave it to "default" or "always include before" they override my TS as they get loaded afterwards and not before. Any clue on how to do this or if this is possible at all? I'm using latest trunk version. Thanks. -- kind regards, Franz Koch --------------------------------------------------- PayPal-Account: 'paypal _at_ elements-net _dot_ de' --------------------------------------------------- From shadow333 at gmail.com Tue Apr 21 22:39:02 2009 From: shadow333 at gmail.com (Oliver Leitner) Date: Tue, 21 Apr 2009 22:39:02 +0200 Subject: [TYPO3-dev] Current Status of Postgresql Support plus migration of mysql to postgresql Message-ID: Hello Everyone Since Oracle bought Sun, MySQL will prolly die pretty soon either as an opensource product or totally... for that reason id like to know where i could find the current status on using postgresql as a database for typo3, as i see the future going there... greetings -- Oliver Leitner http://www.neverslair-blog.net From stephane.baribeau at sys-tech.net Wed Apr 22 00:02:49 2009 From: stephane.baribeau at sys-tech.net (Stephane Baribeau) Date: Tue, 21 Apr 2009 18:02:49 -0400 Subject: [TYPO3-dev] help with Flexform Message-ID: Hi everyone, I really need help with Flexform. I know nothing about that :) I take sample from http://wiki.typo3.org/index.php/Extension_Development,_using_Flexforms I have followed all the step. When i try this code $this->pi_initPIflexForm(); // Init and get the flexform data of the plugin $this->lConf = array(); // Setup our storage array... $piFlexForm = $this->cObj->data['pi_flexform']; i got a null value from $piFlexForm i set my ext_tables.php like this i have copied the flexform_ds.xml from the tutorial. I dont know what i forget or what. Can you help me? Whats about the flexform_ds.xml? is it the file where we put what people can modify in backend? thanks for your help. -- *St?phane Baribeau* Programmeur stephane.baribeau at sys-tech.net 418 520-0739 poste 129 514 907-0036 / 1-877-969-8324 *SYS-TECH / Web, m?dias et technologies libres* 6700 BOUL PIERRE-BERTRAND BUREAU 209 QU?BEC QC G2J 0B4 http://www.sys-tech.net /Membre supporteur de l'Association TYPO3 / From marcus#exp2009 at t3sec.info Wed Apr 22 00:15:17 2009 From: marcus#exp2009 at t3sec.info (Marcus Krause) Date: Wed, 22 Apr 2009 00:15:17 +0200 Subject: [TYPO3-dev] Current Status of Postgresql Support plus migration of mysql to postgresql In-Reply-To: References: Message-ID: Oliver Leitner schrieb am 04/21/2009 10:39 PM Uhr: > Hello Everyone > > Since Oracle bought Sun, MySQL will prolly die pretty soon either as > an opensource product or totally... Don't worry, MySQL will not die. Oracle and MySQL Community version have different target groups. Oracle would be pretty silly if they stop MySQL development. Furthermore, even now there are promising MySQL forks. > for that reason id like to know where i could find the current status > on using postgresql as a database for typo3, as i see the future going > there... The current status is that it's not running out of the box. To test it put your mysql server in SQL strict mode (and use dbal). Failing queries will also fail for postgres. Marcus. From mail-spam at ringerge.org Wed Apr 22 00:24:51 2009 From: mail-spam at ringerge.org (Georg Ringer) Date: Wed, 22 Apr 2009 00:24:51 +0200 Subject: [TYPO3-dev] Current Status of Postgresql Support plus migration of mysql to postgresql In-Reply-To: References: Message-ID: Hi, > Since Oracle bought Sun, MySQL will prolly die pretty soon either as > an opensource product or totally... will we die soon too? Georg From typo3 at rvt.dds.nl Wed Apr 22 01:05:02 2009 From: typo3 at rvt.dds.nl (Ries van Twisk) Date: Tue, 21 Apr 2009 18:05:02 -0500 Subject: [TYPO3-dev] Current Status of Postgresql Support plus migration of mysql to postgresql In-Reply-To: References: Message-ID: On Apr 21, 2009, at 5:15 PM, Marcus Krause wrote: > Oliver Leitner schrieb am 04/21/2009 10:39 PM Uhr: >> Hello Everyone >> >> Since Oracle bought Sun, MySQL will prolly die pretty soon either as >> an opensource product or totally... > > Don't worry, MySQL will not die. Oracle and MySQL Community version > have > different target groups. Oracle would be pretty silly if they stop > MySQL > development. > Furthermore, even now there are promising MySQL forks. Indeed, even Monthy created a fork already so MySQL will not die I do see an increased worry inthe MySQL community and I noticed from different channels question marks above teh heads of people. It looks like that PostgreSQL is slowly going to be more mainstream. It will never (<5 years) be a replacement of MySQL though for the LAMP stack. > > >> for that reason id like to know where i could find the current status >> on using postgresql as a database for typo3, as i see the future >> going >> there... > > The current status is that it's not running out of the box. To test it > put your mysql server in SQL strict mode (and use dbal). Failing > queries > will also fail for postgres. Don't bother to try.. core will run fine but extension will not, and you will end up with a horrible upgrade path. DBAL is evil for a complete replacement for all tables. Ries > > > Marcus. From typo3 at t3node.com Wed Apr 22 01:20:55 2009 From: typo3 at t3node.com (=?UTF-8?B?U3RlZmZlbiBNw7xsbGVy?=) Date: Wed, 22 Apr 2009 01:20:55 +0200 Subject: [TYPO3-dev] [OT] Re: Current Status of Postgresql Support plus migration of mysql to postgresql In-Reply-To: References: Message-ID: Hi. On 22.04.2009 00:24 Georg Ringer wrote: > will we die soon too? > remember joh316? :) -- cheers, Steffen http://www.t3node.com/ From denebola75 at yahoo.it Wed Apr 22 01:31:54 2009 From: denebola75 at yahoo.it (Stefano) Date: Tue, 21 Apr 2009 23:31:54 +0000 (GMT) Subject: [TYPO3-dev] DB Integration vs Realurl : problem with delete of upload field. Message-ID: Hi all. I've got a problem with this two extension of typo3. Specifically, when RealUrl is activated, i create a DB-Integration modify form with a insert/edit module composed by an upload field. Because i'm in modify, the upload field is pre loaded with my attachment. The "delete" key associated with the pre loaded file doesn't work at all : it seems to link a "#" url, and doesn't link to the page itself to activate the deleting of the attachment. Anyone has got similar problem with this two modules? Thank you in advance for any response. Stefano Danieli. From franz at ttproducts.de Wed Apr 22 06:15:10 2009 From: franz at ttproducts.de (Franz Holzinger) Date: Wed, 22 Apr 2009 06:15:10 +0200 Subject: [TYPO3-dev] Official coding guidelines of TYPO3 In-Reply-To: References: Message-ID: Hello Dmitry, Dmitry Dulepov a ?crit : > Andy Grunwald [wmdb] wrote: >> So i dont know which coding guidelines are to use. Any idea? > > Here is the recent draft that core team uses de facto: > http://forge.typo3.org/repositories/entry/typo3v4-core/Documentation/trunk/doc_core_cgl/doc/doc_core_cgl.sxw?format=raw "piX/ These directories contain Frontend plugins. If extension is generated by the Kickstarter, X will be a number. It is recommended to give more meaningful names to Frontend plugin directories." Why must X be a number? It is possible to use texts, e.g. pi_view for view plugins. So why not allow this? IMHO a number makes it more difficult to understand. What do you mean with 'give more meaningful names'? - Franz From franz at ttproducts.de Wed Apr 22 06:27:19 2009 From: franz at ttproducts.de (Franz Holzinger) Date: Wed, 22 Apr 2009 06:27:19 +0200 Subject: [TYPO3-dev] Official coding guidelines of TYPO3 In-Reply-To: References: Message-ID: >> Here is the recent draft that core team uses de facto: >> http://forge.typo3.org/repositories/entry/typo3v4-core/Documentation/trunk/doc_core_cgl/doc/doc_core_cgl.sxw?format=raw "Character set TYPO3 PHP files use iso-8859-1 character set." Why don't you allow also utf-8 for PHP files? - Franz From bartoszx at SPAMgmail.com Wed Apr 22 07:41:41 2009 From: bartoszx at SPAMgmail.com (Bartosz Aninowski) Date: Wed, 22 Apr 2009 07:41:41 +0200 Subject: [TYPO3-dev] help with Flexform In-Reply-To: References: Message-ID: Stephane Baribeau pisze: > Hi everyone, > ext_tables.php $TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY.'_pi1']='pi_flexform'; t3lib_extMgm::addPiFlexFormValue($_EXTKEY.'_pi1','FILE:EXT:my_ext/flexform_ds_pi1.xml'); class....pi1.php $this->pi_initPIflexForm(); $code = $this->pi_getFFvalue($this->cObj->data['pi_flexform'],'what_to_display','sDEF'); //echo $code; flexform_ds_pi1.xml LLL:EXT:my_ext/locallang_db.xml:tx_myext.option array select SINGLE SINGLE 1 1 1 width:150px width:150px -- Bartosz Aninowski typo(3)holics http://techblog.evo.pl From mathias.schreiber at wmdb.de Wed Apr 22 08:32:30 2009 From: mathias.schreiber at wmdb.de (Mathias Schreiber [wmdb >]) Date: Wed, 22 Apr 2009 08:32:30 +0200 Subject: [TYPO3-dev] help with Flexform In-Reply-To: References: Message-ID: Stephane Baribeau schrieb: > t3lib_extMgm::addPiFlexFormValue(9,'FILE:EXT:'.$_EXTKEY.'/flexform_ds.xml'); Like Bartosz already wrote, just for clarification: The first value of addPiFlexFormValue is the extension key used for the list_type field in tt_content. "9" is a special case (tt_news) that uses an integer for historical reasons. cheers Mathias From mathias.schreiber at wmdb.de Wed Apr 22 08:39:02 2009 From: mathias.schreiber at wmdb.de (Mathias Schreiber [wmdb >]) Date: Wed, 22 Apr 2009 08:39:02 +0200 Subject: [TYPO3-dev] PI Naming (was:Official coding guidelines of TYPO3) In-Reply-To: References: Message-ID: Franz Holzinger schrieb: > Why must X be a number? It is possible to use texts, e.g. pi_view for > view plugins. So why not allow this? IMHO a number makes it more > difficult to understand. What do you mean with 'give more meaningful > names'? "Remember, its a kickstarter, not an editor" :) No, seriously, I think it is a thin line between keeping stuff simple and giving a lot of flexibility. An idea would be to change the piX lines to condensed (i.e. filesystem-can-read-me) paths. So if I call my first plugin "Ultra Plugin" it would be pi_ultraplugin. Like the kickstarter does it with the extKey. Allowing to enter the piKey manually will result in chaos. I'm talking about spaces in directories, studly-caps and so on... What do you think? cheers Mathias From typo3 at perseguers.ch Wed Apr 22 09:30:50 2009 From: typo3 at perseguers.ch (Xavier Perseguers) Date: Wed, 22 Apr 2009 09:30:50 +0200 Subject: [TYPO3-dev] Current Status of Postgresql Support plus migration of mysql to postgresql In-Reply-To: References: Message-ID: Hi, > The current status is that it's not running out of the box. To test it > put your mysql server in SQL strict mode (and use dbal). Failing queries > will also fail for postgres. This worries me a lot as I supposed to prepare an install of TYPO3 with Oracle very soon as I thought core at least was compatible. -- Xavier Perseguers http://xavier.perseguers.ch/en/tutorials/typo3.html From patrick at work.de Wed Apr 22 09:40:58 2009 From: patrick at work.de (Patrick Kollodzik) Date: Wed, 22 Apr 2009 09:40:58 +0200 Subject: [TYPO3-dev] th_mailformplus: Two forms on one page In-Reply-To: References: Message-ID: Steffen Kamper wrote: > Hi, > > this problem exists for most plugins handling GP-data. Each plugin > reacts on this data. > > I don't see a solution without manipulating ext > > vg Steffen Hi, I feared that would be the case .... To make it work i modified the th_mailfomrplus/pi1/class.thmailformplus_pi1.php To the line 2219 and 3951 i added a new global marker, so it is possible to send the content_uid with the form. $globalMarkerArray['###CONTENT_ID###'] = $this->cObj->data['uid']; The line 483 i changed from: if ($this->get_post['SUBMITTED'] || $this->get_post['submitted']) to if (($this->get_post['SUBMITTED'] || $this->get_post['submitted']) && ($this->cObj->data['uid'] == $this->get_post['content_id'] || $this->cObj->data['uid'] == $this->get_post['CONTENT_ID'])) { With the normal singlepage form i works but i could't test it with a multipage form regards, Patrick Kollodzik From dmitry.dulepov at gmail.com Wed Apr 22 09:47:02 2009 From: dmitry.dulepov at gmail.com (Dmitry Dulepov) Date: Wed, 22 Apr 2009 10:47:02 +0300 Subject: [TYPO3-dev] help with Flexform In-Reply-To: References: Message-ID: Hi! Stephane Baribeau wrote: > I really need help with Flexform. > I know nothing about that :) Buy my book about TYPO3 extension development. It will tell you everything you need to know :) > I take sample from > http://wiki.typo3.org/index.php/Extension_Development,_using_Flexforms Take some of extensions that use flexforms. "comments" extension should be a good example. -- Dmitry Dulepov In TYPO3 blog: http://dmitry-dulepov.com/article/stopping-maintenance-of-some-typo3-extensions.html LinkedIn: http://www.linkedin.com/in/dmitrydulepov Twitter: http://twitter.com/dmitryd Skype: liels_bugs From dmitry.dulepov at gmail.com Wed Apr 22 09:48:16 2009 From: dmitry.dulepov at gmail.com (Dmitry Dulepov) Date: Wed, 22 Apr 2009 10:48:16 +0300 Subject: [TYPO3-dev] Official coding guidelines of TYPO3 In-Reply-To: References: Message-ID: Hi! Franz Holzinger wrote: > Why must X be a number? It is possible to use texts, e.g. pi_view for > view plugins. So why not allow this? IMHO a number makes it more > difficult to understand. What do you mean with 'give more meaningful > names'? Do you see the word "must" there? -- Dmitry Dulepov In TYPO3 blog: http://dmitry-dulepov.com/article/stopping-maintenance-of-some-typo3-extensions.html LinkedIn: http://www.linkedin.com/in/dmitrydulepov Twitter: http://twitter.com/dmitryd Skype: liels_bugs From dmitry.dulepov at gmail.com Wed Apr 22 09:50:12 2009 From: dmitry.dulepov at gmail.com (Dmitry Dulepov) Date: Wed, 22 Apr 2009 10:50:12 +0300 Subject: [TYPO3-dev] Official coding guidelines of TYPO3 In-Reply-To: References: Message-ID: Hi! Franz Holzinger wrote: > Why don't you allow also utf-8 for PHP files? Historical reasons. Some TYPO3 files include special characters that will be lost of you edit a file as UTF-8. So we opted for iso-8859-1. -- Dmitry Dulepov In TYPO3 blog: http://dmitry-dulepov.com/article/stopping-maintenance-of-some-typo3-extensions.html LinkedIn: http://www.linkedin.com/in/dmitrydulepov Twitter: http://twitter.com/dmitryd Skype: liels_bugs From mauro.lorenzutti at webformat.com Wed Apr 22 10:50:08 2009 From: mauro.lorenzutti at webformat.com (Mauro Lorenzutti) Date: Wed, 22 Apr 2009 10:50:08 +0200 Subject: [TYPO3-dev] DB Integration vs Realurl : problem with delete of upload field. In-Reply-To: References: Message-ID: Hi Stefano, This link is a "#" url because it calls a javascript function. So it's not a realurl problem, it seems that the javascript function is not called or it fails. Maybe you are using an old wfqbe version? Try to upgrade to the latest one, the problem should have been already fixed. Please, let me know if the problem is still present. Regards, --- Mauro Lorenzutti e-mail: mauro.lorenzutti at webformat.com --------------------------------------------------------- WEBFORMAT srl | Corte Europa, 12 | I-33097 SPILIMBERGO PN Tel +39-0427-926.389 -- Fax +39-0427-927.653 info at webformat.com -- http://www.webformat.com --------------------------------------------------------- From steffen at steffen-gebert.de Wed Apr 22 12:37:30 2009 From: steffen at steffen-gebert.de (Steffen Gebert) Date: Wed, 22 Apr 2009 12:37:30 +0200 Subject: [TYPO3-dev] DB Integration vs Realurl : problem with delete of upload field. References: Message-ID: Stefano wrote: > I've got a problem with this two extension of typo3. > > Specifically, when RealUrl is activated, i create a DB-Integration > modify form with a insert/edit module composed by an upload field. > > Because i'm in modify, the upload field is pre loaded with my > attachment. The "delete" key associated with the pre loaded file > doesn't work at all : it seems to link a "#" url, and doesn't link to > the page itself to activate the deleting of the attachment. Hi Stefano, this is the same posting as in TYPO3-english, isn't it? Please don't cross-post your mails! It just leads to more people writing the same answers.. Thanks Steffen From franz at ttproducts.de Wed Apr 22 13:27:18 2009 From: franz at ttproducts.de (Franz Holzinger) Date: Wed, 22 Apr 2009 13:27:18 +0200 Subject: [TYPO3-dev] Official coding guidelines of TYPO3 In-Reply-To: References: Message-ID: Dmitry Dulepov a ?crit : > Franz Holzinger wrote: >> Why don't you allow also utf-8 for PHP files? > > Historical reasons. Some TYPO3 files include special characters that will be lost of you edit a file as UTF-8. So we opted for iso-8859-1. It would be better to allow also utf-8 files for PHP, at least for extensions. - Franz From dmitry.dulepov at gmail.com Wed Apr 22 13:51:12 2009 From: dmitry.dulepov at gmail.com (Dmitry Dulepov) Date: Wed, 22 Apr 2009 14:51:12 +0300 Subject: [TYPO3-dev] Official coding guidelines of TYPO3 In-Reply-To: References: Message-ID: Hi! Franz Holzinger wrote: > It would be better to allow also utf-8 files for PHP, at least for > extensions. May be. I am for using only UTF-8 but it was decided otherwise... -- Dmitry Dulepov In TYPO3 blog: http://dmitry-dulepov.com/article/one-day-typo3-performance-improvement.html LinkedIn: http://www.linkedin.com/in/dmitrydulepov Twitter: http://twitter.com/dmitryd Skype: liels_bugs From misza at typo3.info.pl Wed Apr 22 15:14:49 2009 From: misza at typo3.info.pl (misza) Date: Wed, 22 Apr 2009 15:14:49 +0200 Subject: [TYPO3-dev] Custom BE Web module -> how to prune Pagetree Message-ID: Hello everyone, I've developed my custom backend Web module, that is similar to ListView (with some additional features, but this actually is not so important :o). The problem is that after clicking on my module I want to have on the Pagetree only selected system folder visible (so I want to set arbitrary mount point for my ext). I'v tried even sommething like this:. $GLOBALS['BE_USER']->setAndSaveSessionData('pageTree_temporaryMountPoint',intval($pid)); t3lib_beFunc::setUpdateSignal('updatePageTree'); but with very poor effect :-/. Is there any possible way to access pagetree object and set desired mount point for a module (a Web module) ? Regards, Michal From spabhat at chandanweb.com Wed Apr 22 15:39:32 2009 From: spabhat at chandanweb.com (Prakash) Date: Wed, 22 Apr 2009 19:09:32 +0530 Subject: [TYPO3-dev] help with Flexform In-Reply-To: References: Message-ID: Dmitry Dulepov wrote: > > Buy my book about TYPO3 extension development. It will tell you everything you need to know :) > Hey Dmitry nice marketing ;-) . I however must really say that your book, I purchased some time back, is really good and helped me learn extension development in depth. Great work indeed. -- *Regards, Prakash A Bhat* Skype/Yahoo/GTalk/MSN: spabhat Ph: +91 80 420 33 515 Mobile: +91 94481 40430 www.chandanweb.com Chandan Web Solutions From peter.russ at 4many.net Wed Apr 22 15:44:19 2009 From: peter.russ at 4many.net (Peter Russ) Date: Wed, 22 Apr 2009 15:44:19 +0200 Subject: [TYPO3-dev] Official coding guidelines of TYPO3 In-Reply-To: References: Message-ID: --- Original Nachricht --- Absender: Dmitry Dulepov Datum: 22.04.2009 13:51: > Hi! > > Franz Holzinger wrote: >> It would be better to allow also utf-8 files for PHP, at least for >> extensions. > > May be. I am for using only UTF-8 but it was decided otherwise... > Because of some weird Scandinavian characters that are not converted in some old files Chinese shouldn't be allowed ;-) Please tell me if you open a file on a UTF-8 system with your default editor you always have to remember that this is the old stuff from TYPO3 and have to switch to a different ancient charset? I would recommend to transfer that files to UTF-8 and get forget iso. Can we help? Peter. -- Fiat lux! Docendo discimus. _____________________________ uon GbR http://www.uon.li http://www.xing.com/profile/Peter_Russ From stephane.baribeau at sys-tech.net Wed Apr 22 15:50:56 2009 From: stephane.baribeau at sys-tech.net (Stephane Baribeau) Date: Wed, 22 Apr 2009 09:50:56 -0400 Subject: [TYPO3-dev] help with Flexform In-Reply-To: References: Message-ID: Hi Dmitry, > Buy my book about TYPO3 extension development. It will tell you everything you need to know :) > > haha nice trick :) i will mastering typo3 extension after that! lol > Take some of extensions that use flexforms. "comments" extension should be a good example. > > Thanks, i have checked about tt_news, but a lots of stuff inside that to understand. Now i can set a Title sDef from Backend. The problem is... i dont know from where the Title input are from! lol does the data are from the xml? the DB? in my extension i dont have declared table for him. thanks! -- *St?phane Baribeau* Programmeur stephane.baribeau at sys-tech.net 418 520-0739 poste 129 514 907-0036 / 1-877-969-8324 *SYS-TECH / Web, m?dias et technologies libres* 6700 BOUL PIERRE-BERTRAND BUREAU 209 QU?BEC QC G2J 0B4 http://www.sys-tech.net /Membre supporteur de l'Association TYPO3 / From Christoph.Schorr at telekom.de Wed Apr 22 15:53:55 2009 From: Christoph.Schorr at telekom.de (Christoph.Schorr at telekom.de) Date: Wed, 22 Apr 2009 15:53:55 +0200 Subject: [TYPO3-dev] Official coding guidelines of TYPO3 In-Reply-To: References: Message-ID: I will join in! Would like to get rid of that old ISO format too... last year on the developer days in Elmshorn during the coding guidelines session alot of people were interested in a cleaned encoding of the TYPO3 core files isn't it a complete no-brainer to change the encoding of that old files?! -----Urspr?ngliche Nachricht----- Von: typo3-dev-bounces at lists.netfielders.de [mailto:typo3-dev-bounces at lists.netfielders.de] Im Auftrag von Peter Russ Gesendet: Mittwoch, 22. April 2009 15:44 An: typo3-dev at lists.netfielders.de Betreff: Re: [TYPO3-dev] Official coding guidelines of TYPO3 --- Original Nachricht --- Absender: Dmitry Dulepov Datum: 22.04.2009 13:51: > Hi! > > Franz Holzinger wrote: >> It would be better to allow also utf-8 files for PHP, at least for >> extensions. > > May be. I am for using only UTF-8 but it was decided otherwise... > Because of some weird Scandinavian characters that are not converted in some old files Chinese shouldn't be allowed ;-) Please tell me if you open a file on a UTF-8 system with your default editor you always have to remember that this is the old stuff from TYPO3 and have to switch to a different ancient charset? I would recommend to transfer that files to UTF-8 and get forget iso. Can we help? Peter. -- Fiat lux! Docendo discimus. _____________________________ uon GbR http://www.uon.li http://www.xing.com/profile/Peter_Russ _______________________________________________ TYPO3-dev mailing list TYPO3-dev at lists.netfielders.de http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev From info at rs-websystems.de Wed Apr 22 15:58:35 2009 From: info at rs-websystems.de (Steffen Ritter) Date: Wed, 22 Apr 2009 15:58:35 +0200 Subject: [TYPO3-dev] Custom BE Web module -> how to prune Pagetree In-Reply-To: References: Message-ID: misza schrieb: > Hello everyone, > > I've developed my custom backend Web module, that is similar to ListView > (with some additional features, but this actually is not so important :o). > The problem is that after clicking on my module I want to have on the > Pagetree only selected system folder visible (so I want to set arbitrary > mount point for my ext). > > I'v tried even sommething like this:. > > $GLOBALS['BE_USER']->setAndSaveSessionData('pageTree_temporaryMountPoint',intval($pid)); > t3lib_beFunc::setUpdateSignal('updatePageTree'); > > but with very poor effect :-/. > > Is there any possible way to access pagetree object and set desired mount > point for a module (a Web module) ? short answer: no regards Steffen From mathias.schreiber at wmdb.de Wed Apr 22 16:06:33 2009 From: mathias.schreiber at wmdb.de (Mathias Schreiber [wmdb >]) Date: Wed, 22 Apr 2009 16:06:33 +0200 Subject: [TYPO3-dev] DB Integration vs Realurl : problem with delete of upload field. In-Reply-To: References: Message-ID: Steffen Gebert schrieb: > It just leads to more people writing the same answers.. I think this is the reason they crosspost ;-) but all in all I agree cheers mathias From mathias.schreiber at wmdb.de Wed Apr 22 16:10:08 2009 From: mathias.schreiber at wmdb.de (Mathias Schreiber [wmdb >]) Date: Wed, 22 Apr 2009 16:10:08 +0200 Subject: [TYPO3-dev] Custom BE Web module -> how to prune Pagetree In-Reply-To: References: Message-ID: Steffen Ritter schrieb: >> Is there any possible way to access pagetree object and set desired >> mount point for a module (a Web module) ? > short answer: no ? I did this after BE login (so even admin users ust see the part of the pagetree they needed to see). Can't find the code right now. But did I miss something why it should impossible to set a Temporary Treemount from an extension? cheers Mathias From info at rs-websystems.de Wed Apr 22 16:14:30 2009 From: info at rs-websystems.de (Steffen Ritter) Date: Wed, 22 Apr 2009 16:14:30 +0200 Subject: [TYPO3-dev] Custom BE Web module -> how to prune Pagetree In-Reply-To: References: Message-ID: Mathias Schreiber [wmdb >] schrieb: > Steffen Ritter schrieb: >>> Is there any possible way to access pagetree object and set desired >>> mount point for a module (a Web module) ? >> short answer: no > > ? > I did this after BE login (so even admin users ust see the part of the > pagetree they needed to see). > Can't find the code right now. > > But did I miss something why it should impossible to set a Temporary > Treemount from an extension? he asks for setting a the pagetree to a special mountpoint, only showing sysfolders... which is not possible, you cannot restrict this... You may set (with an JS request) an temporary Mountpoint, but cannot prevent the user to delete it ... and the only sysfolder problem won't be cleared either. SO far Steffen From typo3 at t3node.com Wed Apr 22 16:15:18 2009 From: typo3 at t3node.com (=?UTF-8?B?U3RlZmZlbiBNw7xsbGVy?=) Date: Wed, 22 Apr 2009 16:15:18 +0200 Subject: [TYPO3-dev] Official coding guidelines of TYPO3 In-Reply-To: References: Message-ID: Hi. On 22.04.2009 15:53 Christoph.Schorr at telekom.de wrote: > isn't it a complete no-brainer to change the encoding of that old files?! I remember the argument was problems with byte-order mark (BOM). -- cheers, Steffen http://www.t3node.com/ From peter.russ at 4many.net Wed Apr 22 16:18:29 2009 From: peter.russ at 4many.net (Peter Russ) Date: Wed, 22 Apr 2009 16:18:29 +0200 Subject: [TYPO3-dev] Official coding guidelines of TYPO3 In-Reply-To: References: Message-ID: --- Original Nachricht --- Absender: Steffen M?ller Datum: 22.04.2009 16:15: > Hi. > > On 22.04.2009 15:53 Christoph.Schorr at telekom.de wrote: >> isn't it a complete no-brainer to change the encoding of that old files?! > > I remember the argument was problems with byte-order mark (BOM). > > Who is using MS to develop such fine code ;-) Peter. -- Fiat lux! Docendo discimus. _____________________________ uon GbR http://www.uon.li http://www.xing.com/profile/Peter_Russ From misza at typo3.info.pl Wed Apr 22 16:25:42 2009 From: misza at typo3.info.pl (misza) Date: Wed, 22 Apr 2009 16:25:42 +0200 Subject: [TYPO3-dev] Custom BE Web module -> how to prune Pagetree References: Message-ID: Uzytkownik "Steffen Ritter" napisal w wiadomosci news:mailman.1.1240409703.1716.typo3-dev at lists.netfielders.de... > Mathias Schreiber [wmdb >] schrieb: >> Steffen Ritter schrieb: >>>> Is there any possible way to access pagetree object and set desired >>>> mount point for a module (a Web module) ? >>> short answer: no >> >> ? >> I did this after BE login (so even admin users ust see the part of the >> pagetree they needed to see). >> Can't find the code right now. >> >> But did I miss something why it should impossible to set a Temporary >> Treemount from an extension? > > he asks for setting a the pagetree to a special mountpoint, only showing > sysfolders... which is not possible, you cannot restrict this... > You may set (with an JS request) an temporary Mountpoint, but cannot > prevent the user to delete it ... and the only sysfolder problem won't be > cleared either. > > SO far > > Steffen Thx for responses. This should work similarly to "options.pageTree.altElementBrowserMountPoints:, but for a pageTree in my Web>CustomModule. In other cases (Web>Page, Web>List,.etc.) db mountpoints assigned to users/grups should be respected. Regards, Michal From peter.russ at 4many.net Wed Apr 22 16:36:54 2009 From: peter.russ at 4many.net (Peter Russ) Date: Wed, 22 Apr 2009 16:36:54 +0200 Subject: [TYPO3-dev] Official coding guidelines of TYPO3 In-Reply-To: References: Message-ID: --- Original Nachricht --- Absender: Christoph.Schorr at telekom.de Datum: 22.04.2009 15:53: > I will join in! > Would like to get rid of that old ISO format too... > last year on the developer days in Elmshorn during the coding guidelines session alot of people were interested in a cleaned encoding of the TYPO3 core files > > isn't it a complete no-brainer to change the encoding of that old files?! > Cleanup and change of encoding are 2 sides of a coin. If there are any complaints about charset in "old files": let's transfer it to a global charset (can be done almost automatically). Enable people to share? There can only be one charset to do so: and it's definetly NOT iso-8859-1. Just my 2 sides of a coint (cent). Peter. -- Fiat lux! Docendo discimus. _____________________________ uon GbR http://www.uon.li http://www.xing.com/profile/Peter_Russ From dmitry.dulepov at gmail.com Wed Apr 22 16:46:41 2009 From: dmitry.dulepov at gmail.com (Dmitry Dulepov) Date: Wed, 22 Apr 2009 17:46:41 +0300 Subject: [TYPO3-dev] Official coding guidelines of TYPO3 In-Reply-To: References: Message-ID: Hi! Peter Russ wrote: > Please tell me if you open a file on a UTF-8 system with your default > editor you always have to remember that this is the old stuff from TYPO3 > and have to switch to a different ancient charset? I use Zend Studio or Komodo IDE and I just set the charset for the whole project in one place ;) > I would recommend to transfer that files to UTF-8 and get forget iso. > Can we help? "Make a patch!" ? :D -- Dmitry Dulepov In TYPO3 blog: http://dmitry-dulepov.com/article/one-day-typo3-performance-improvement.html LinkedIn: http://www.linkedin.com/in/dmitrydulepov Twitter: http://twitter.com/dmitryd Skype: liels_bugs From dmitry.dulepov at gmail.com Wed Apr 22 16:47:40 2009 From: dmitry.dulepov at gmail.com (Dmitry Dulepov) Date: Wed, 22 Apr 2009 17:47:40 +0300 Subject: [TYPO3-dev] Official coding guidelines of TYPO3 In-Reply-To: References: Message-ID: Hi! Christoph.Schorr at telekom.de wrote: > isn't it a complete no-brainer to change the encoding of that old files?! No, it is not. You have to ensure that nothing is broken, including functions that rely on having some characters in latin1 in the source code. -- Dmitry Dulepov In TYPO3 blog: http://dmitry-dulepov.com/article/one-day-typo3-performance-improvement.html LinkedIn: http://www.linkedin.com/in/dmitrydulepov Twitter: http://twitter.com/dmitryd Skype: liels_bugs From dmitry.dulepov at gmail.com Wed Apr 22 16:50:44 2009 From: dmitry.dulepov at gmail.com (Dmitry Dulepov) Date: Wed, 22 Apr 2009 17:50:44 +0300 Subject: [TYPO3-dev] help with Flexform In-Reply-To: References: Message-ID: Hi! Prakash wrote: > Hey Dmitry nice marketing ;-) . Not really marketing... One extra sale will not make a millionare :) Most likely I will not notice even if there are 1000 sales. My main interest is that people do good extensions. Really, it is so. I often have to change something in extensions for clients and there are horrible things inside. So I have to things here and there. It is in my interests that people code correctly and know what to do how in TYPO3 :) -- Dmitry Dulepov In TYPO3 blog: http://dmitry-dulepov.com/article/one-day-typo3-performance-improvement.html LinkedIn: http://www.linkedin.com/in/dmitrydulepov Twitter: http://twitter.com/dmitryd Skype: liels_bugs From peter.russ at 4many.net Wed Apr 22 16:53:44 2009 From: peter.russ at 4many.net (Peter Russ) Date: Wed, 22 Apr 2009 16:53:44 +0200 Subject: [TYPO3-dev] Official coding guidelines of TYPO3 In-Reply-To: References: Message-ID: --- Original Nachricht --- Absender: Dmitry Dulepov Datum: 17.04.2009 20:13: > Hi! > > Andy Grunwald [wmdb] wrote: >> In my search for the official coding guidelines i`ve found 3 versions: >> typo3.org: last update: 28.04.2007 11:36 >> http://typo3.org/documentation/document-library/core-documentation/doc_core_cgl/current/ >> >> wiki.typo3.org: draft version >> http://wiki.typo3.org/index.php/TYPO3_Coding_Guidelines_-_Notes >> >> Dmitry Dulepovs blog: result of discussion by TYPO3-(Core-)Team >> http://dmitry-dulepov.com/article/get-typo3-coding-guidelines-here.html >> >> So i dont know which coding guidelines are to use. Any idea? > > Here is the recent draft that core team uses de facto: > http://forge.typo3.org/repositories/entry/typo3v4-core/Documentation/trunk/doc_core_cgl/doc/doc_core_cgl.sxw?format=raw > > It is awaiting approval from the TYPO3 core team leader. > Just my toughts about curly braces: IMHO PHP style is not the best way to do so. I still prefer the C style of starting the opening urly brace in a new line as this code is much easier to check (from the usability sight of development and reading) Check this: protected function getForm() { if ($this->extendedForm) // generate extended form here } else { // generate simple form here } } protected function getForm() { if ($this->extendedForm) // generate extended form here } else { // generate simple form here } } Where is the mistake? What's about a class extending an other implementing different interfaces: the curly brace gets lost... class tx_myextensions_pi1 extends t3lib_someextension implements interface_something, interface_other { __construcct() { } } class tx_myextensions_pi1 extends t3lib_someextension implements interface_something ,interface_other { __construct() { } } So my conlusion: PHP has to differentiate somehow from JAVA. But the curly brace thing isn't the best example to be used as TYPO3 cgl! Peter. -- Fiat lux! Docendo discimus. _____________________________ uon GbR http://www.uon.li http://www.xing.com/profile/Peter_Russ From peter.russ at 4many.net Wed Apr 22 17:01:00 2009 From: peter.russ at 4many.net (Peter Russ) Date: Wed, 22 Apr 2009 17:01:00 +0200 Subject: [TYPO3-dev] Official coding guidelines of TYPO3 In-Reply-To: References: Message-ID: --- Original Nachricht --- Absender: Dmitry Dulepov Datum: 22.04.2009 16:46: > Hi! > > Peter Russ wrote: >> Please tell me if you open a file on a UTF-8 system with your default >> editor you always have to remember that this is the old stuff from TYPO3 >> and have to switch to a different ancient charset? > > I use Zend Studio or Komodo IDE and I just set the charset for the whole project in one place ;) I use Eclipse and UTF-8 is my default. But sometimes I access files directly on the server either using vi, kate or nano. Beside the boring Win-nine breaks I hate the '?' of latin1 > >> I would recommend to transfer that files to UTF-8 and get forget iso. >> Can we help? > > "Make a patch!" ? :D > Makes only sense, when default charset is utf-8 ;-) -- Fiat lux! Docendo discimus. _____________________________ uon GbR http://www.uon.li http://www.xing.com/profile/Peter_Russ From dmitry.dulepov at gmail.com Wed Apr 22 17:12:31 2009 From: dmitry.dulepov at gmail.com (Dmitry Dulepov) Date: Wed, 22 Apr 2009 18:12:31 +0300 Subject: [TYPO3-dev] Official coding guidelines of TYPO3 In-Reply-To: References: Message-ID: Hi! Peter Russ wrote: > Just my toughts about curly braces: I afraid we can't change those in any way. We can change only cosmetics in the CGL, not anything major like this. You will be surprised if you knew how many battles were about CGL and how many gray hairs I got in my beard due to CGL... -- Dmitry Dulepov In TYPO3 blog: http://dmitry-dulepov.com/article/one-day-typo3-performance-improvement.html LinkedIn: http://www.linkedin.com/in/dmitrydulepov Twitter: http://twitter.com/dmitryd Skype: liels_bugs From mathias.schreiber at wmdb.de Wed Apr 22 17:32:13 2009 From: mathias.schreiber at wmdb.de (Mathias Schreiber [wmdb >]) Date: Wed, 22 Apr 2009 17:32:13 +0200 Subject: [TYPO3-dev] Custom BE Web module -> how to prune Pagetree In-Reply-To: References: Message-ID: Steffen Ritter schrieb: > he asks for setting a the pagetree to a special mountpoint, only showing > sysfolders... which is not possible, you cannot restrict this... Ah, now I see. Language-barrier in full effect. > You may set (with an JS request) an temporary Mountpoint, but cannot > prevent the user to delete it ... and the only sysfolder problem won't > be cleared either. Nah, you're right. In this case you need to build your own pagetree. The API is pretty forgiving and easy to understand, so it should be too much of a problem. cheers Mathias From mathias.schreiber at wmdb.de Wed Apr 22 17:36:21 2009 From: mathias.schreiber at wmdb.de (Mathias Schreiber [wmdb >]) Date: Wed, 22 Apr 2009 17:36:21 +0200 Subject: [TYPO3-dev] help with Flexform In-Reply-To: References: Message-ID: Dmitry Dulepov schrieb: > Not really marketing... One extra sale will not make a millionare :) Have you ever heard about the "wonders of addition"? ;-) From peter.russ at 4many.net Wed Apr 22 17:44:19 2009 From: peter.russ at 4many.net (Peter Russ) Date: Wed, 22 Apr 2009 17:44:19 +0200 Subject: [TYPO3-dev] Official coding guidelines of TYPO3 In-Reply-To: References: Message-ID: --- Original Nachricht --- Absender: Dmitry Dulepov Datum: 22.04.2009 17:12: > Hi! > > Peter Russ wrote: >> Just my toughts about curly braces: > > I afraid we can't change those in any way. We can change only cosmetics in the CGL, not anything major like this. You will be surprised if you knew how many battles were about CGL and how many gray hairs I got in my beard due to CGL... > That's my experience with basic PHP-Developers. But if you at least used to read other "languages" or even write you'll appreciate the advantages of "their" cgl. For me the curly brace is the rated break point. Peter. -- Fiat lux! Docendo discimus. _____________________________ uon GbR http://www.uon.li http://www.xing.com/profile/Peter_Russ From dmitry.dulepov at gmail.com Wed Apr 22 20:44:05 2009 From: dmitry.dulepov at gmail.com (Dmitry Dulepov) Date: Wed, 22 Apr 2009 21:44:05 +0300 Subject: [TYPO3-dev] help with Flexform In-Reply-To: References: Message-ID: Hi! Mathias Schreiber [wmdb >] wrote: > Dmitry Dulepov schrieb: > >> Not really marketing... One extra sale will not make a millionare :) > > Have you ever heard about the "wonders of addition"? ;-) No :) I am really bad at marketing. I am good in programming, optimization, etc but I am terrible at selling myself. And I am not afraid to admit it :) -- Dmitry Dulepov In TYPO3 blog: http://dmitry-dulepov.com/article/one-day-typo3-performance-improvement.html LinkedIn: http://www.linkedin.com/in/dmitrydulepov Twitter: http://twitter.com/dmitryd Skype: liels_bugs From dmitry.dulepov at gmail.com Wed Apr 22 20:49:09 2009 From: dmitry.dulepov at gmail.com (Dmitry Dulepov) Date: Wed, 22 Apr 2009 21:49:09 +0300 Subject: [TYPO3-dev] Official coding guidelines of TYPO3 In-Reply-To: References: Message-ID: Hi! Peter Russ wrote: > That's my experience with basic PHP-Developers. > > But if you at least used to read other "languages" or even write you'll > appreciate the advantages of "their" cgl. > > For me the curly brace is the rated break point. I fully agree :) I started with Turbo Pascal when I was a student in 1990, than coded in assembler, ASP (VBScript), Microsoft Visual C++, Java (J2SE&J2EE) and PHP. Most of these I had in parallel and used different CGL. I prefer the style for braces that you described because it clearly marks blocks. But... reality is reality. We have certain conventions already and convincing people to change even a single thing will cause you more than you are willing to give :) To tell the truth, I do not like nearly 50% of these conventions. The only thing that I like is a requirement to write comments in the code :D I follow the rest because this is what we use already. I am not happy with them at all but I follow them because I cannot change it to something I think is much better. Life is life :) -- Dmitry Dulepov In TYPO3 blog: http://dmitry-dulepov.com/article/one-day-typo3-performance-improvement.html LinkedIn: http://www.linkedin.com/in/dmitrydulepov Twitter: http://twitter.com/dmitryd Skype: liels_bugs From fudriot at omic.ch Wed Apr 22 20:53:35 2009 From: fudriot at omic.ch (Fabien Udriot) Date: Wed, 22 Apr 2009 20:53:35 +0200 Subject: [TYPO3-dev] th_mailformplus: Two forms on one page In-Reply-To: References: Message-ID: >> this problem exists for most plugins handling GP-data. Each plugin >> reacts on this data. >> >> I don't see a solution without manipulating ext >> >> vg Steffen > > Hi, > > I feared that would be the case .... > > To make it work i modified the > th_mailfomrplus/pi1/class.thmailformplus_pi1.php > With Mailformplus *MVC* [1] it is rather easy to cope with this issue. The default prefix is "mailformplusplus" but you can override this value by TypoScript for each form: plugin.F3_MailformPlusPlus.settings.predef.form_1 = prefixform1 plugin.F3_MailformPlusPlus.settings.predef.form_2 = prefixform2 No idea how simple is it to "migrate" from Mailformplus to Mailformplus MVC... I would be curious. kindly, Fabien [1] http://typo3.org/extensions/repository/?tx_terfe_pi1[view]=search&no_cache=1&tx_terfe_pi1[sword]=mailformplusplus From bartoszx at SPAMgmail.com Wed Apr 22 22:28:47 2009 From: bartoszx at SPAMgmail.com (Bartosz Aninowski) Date: Wed, 22 Apr 2009 22:28:47 +0200 Subject: [TYPO3-dev] help with Flexform In-Reply-To: References: Message-ID: > but I am terrible at selling myself. And I am not afraid to admit it :) do not be so modest :) -- Bartosz Aninowski typo(3)holics http://techblog.evo.pl From tapio.markula at xetpoint.fi Thu Apr 23 07:48:13 2009 From: tapio.markula at xetpoint.fi (Tapio Markula) Date: Thu, 23 Apr 2009 08:48:13 +0300 Subject: [TYPO3-dev] help with Flexform In-Reply-To: References: Message-ID: Stephane Baribeau > Now i can set a Title sDef from Backend. The problem is... i dont know > from where the Title input are from! lol > does the data are from the xml? in general titles ()/labels (