Re: [TYPO3-english] Missing modules after resetting Admin password in Db
Hi, On 28-3-2013 22:42, Steven Elder wrote: See screenshots attached. now.png is what I see currently, and before.png is taken many months ago from a guide the user created. [...] begin 644 now.png MB5!.1PT*@H-24A$4@```PP```%`(```GQ`_Y`7-21T(`KLX MZ01G04U!``QCPO\804)$A9P``#L,```[#`=OJ0``$F1241! [...] -;P!)14Y$KD)@@@`` ` end Attachments are not handled well by the lists. They also create a lot of traffic to people who might not even be interested in the attachments. Please host them on an external server (plenty of free services available for hosting images/screenshots) and put the link to the image in your post. -- Jigal van Hemert TYPO3 CMS Core Team member TYPO3 inspiring people to share! Get involved: typo3.org ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
Re: [TYPO3-english] XClassing again
Hello Tomasz, there is a different between TYPO3 4.5 and 6.0! http://wiki.typo3.org/Xclass It's important, that prior 6.0 each class needs the xclass loop. In 6.0 you may use the autoloading mechanism for xclassing ;) Xclassing is only working if you use t3lib_div::makeInstance. Xclasses are ignored by new. In the reports module you should find a list of your defined xclasses. Ensure a proper ext_autoload file! Regards Kay Am 28.03.13 20:49, schrieb Tomasz Krawczyk: is it possible to XClass a class which takes some parameters in its constructor? Most times, yes, but the interface must be equal! Regards Kay Could you tell me where I can see this? I have a problem XClassing LocalPreviewHelper class... cheers Tomasz -- http://www.kay-strobach.de - Open Source Rocks TYPO3 inspiring people to share! Get involved: http://typo3.org Answer was useful - feel free to donate: - https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclickhosted_button_id=KPM9NAV73VDF2 - https://flattr.com/profile/kaystrobach ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
Re: [TYPO3-english] XClassing again
Hello Kay, I know the difference between 4.x and 6.x (http://forum.typo3.org/index.php/t/194848/). I successively xclassed those classes: ?php $extPath = t3lib_extMgm::extPath('imagickimg'); return array( 'ux_GraphicalFunctions' = $extPath . 'Classes/Xclass/GraphicalFunctions.php', 'ux_GifBuilder' = $extPath . 'Classes/Xclass/GifBuilder.php', 'ux_ThumbnailView' = $extPath . 'Classes/Xclass/ThumbnailView.php', 'ux_LocalPreviewHelper' = $extPath . 'Classes/Xclass/LocalPreviewHelper.php', 'ux_ContentObjectRenderer' = $extPath . 'Classes/Xclass/ContentObjectRenderer.php', 'ux_ElementInformationController' = $extPath . 'Classes/Xclass/ElementInformationController.php' ); ? But I have problem with LocalPreviewHelper class. This class is instanitated in LocalImageProcessor::getHelperByTaskName by makeInstance with $this as second parameter. My ux_LocalPreviewHelper has devLog entries inside but I don't see this in the Developer Log browser. I also tried to overload the constructor and invoke parent constructor but this leads to an Exception: #1: PHP Catchable Fatal Error: Argument 1 passed to ux_LocalPreviewHelper::__construct() must be an instance of LocalImageProcessor, instance of TYPO3\CMS\Core\Resource\Processing\LocalImageProcessor given in D:\wamp\www\mysite.local\typo3conf\ext\imagickimg\Classes\Xclass\LocalPreviewHelper.php line 37 This is how beginning of my ux_LocalPreviewHelper looks: ?php use \TYPO3\CMS\Core\Resource, \TYPO3\CMS\Core\Utility; class ux_LocalPreviewHelper extends \TYPO3\CMS\Core\Resource\Processing\LocalPreviewHelper { private $extKey = 'imagickimg'; public function __construct(LocalImageProcessor $processor) { parent::__construct($processor); } public function process(TaskInterface $task) { if (TYPO3_DLOG) \TYPO3\CMS\Core\Utility\GeneralUtility::devLog(__METHOD__, $this-extKey); $targetFile = $task-getTargetFile(); If I comment out the constructor then I see no exceptions but there are also no devLog entries and no images too. I'm checking if my XClasses are loaded in ADMIN TOOLS - Configuration - $TYPO3_CONF_VARS-SYS-Objects. Any ideas appreciated. cheers Tomasz W dniu 2013-03-29 09:38, Kay Strobach pisze: Hello Tomasz, there is a different between TYPO3 4.5 and 6.0! http://wiki.typo3.org/Xclass It's important, that prior 6.0 each class needs the xclass loop. In 6.0 you may use the autoloading mechanism for xclassing ;) Xclassing is only working if you use t3lib_div::makeInstance. Xclasses are ignored by new. In the reports module you should find a list of your defined xclasses. Ensure a proper ext_autoload file! Regards Kay Am 28.03.13 20:49, schrieb Tomasz Krawczyk: is it possible to XClass a class which takes some parameters in its constructor? Most times, yes, but the interface must be equal! ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
[TYPO3-english] convert link to html a tag
Hello, TYPO3 keeps hyperlinks as link http://target.loc - some more dataLabel/link I'm writing exporter of my content to the external system that isn't based on TYPO3 so I need to convert this link to normal a href=target.locLabel/a How can I do this while exporting thata from BE module to xml or text file ? Best regards, Dawid Pacholczyk -- Dawid Pacholczyk tel: 502-054-334 gg: 5564051 skype: dpacholczyk http://typo3blog.pl (only polish version at the moment) ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
Re: [TYPO3-english] XClassing again
Hi Tomasz Krawczyk, Tomasz Krawczyk wrote: but this leads to an Exception: #1: PHP Catchable Fatal Error: Argument 1 passed to ux_LocalPreviewHelper::__construct() must be an instance of LocalImageProcessor, instance of TYPO3\CMS\Core\Resource\Processing\LocalImageProcessor given in D: \wamp\www\mysite.local\typo3conf\ext\imagickimg\Classes\Xclass\LocalPreviewHelper.php line 37 This is how beginning of my ux_LocalPreviewHelper looks: ... public function __construct(LocalImageProcessor $processor) { parent::__construct($processor); It must be at least __construct(Resource\Processing\LocalImageProcessor $processor) { According to your use statement. The error message says it all ;) Best regards -- Philipp Gampe – PGP-Key 0AD96065 – TYPO3 UG Bonn/Köln Documentation – linkvalidator TYPO3 inspiring people to share! ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
Re: [TYPO3-english] convert link to html a tag
Hi, On 29-3-2013 11:09, Dawid Pacholczyk wrote: Hello, TYPO3 keeps hyperlinks as link http://target.loc - some more dataLabel/link I'm writing exporter of my content to the external system that isn't based on TYPO3 so I need to convert this link to normal a href=target.locLabel/a How can I do this while exporting thata from BE module to xml or text file ? The most reliable way to render content is to actually let the frontend render it. If you're only interested in the content of an RTE field (such as the body text of a normal text content element) you could make a simple plugin that renders such a field. If you create a page type that has no other output (no head section, body, etc.) your BE module can simply call the frontend page and with some parameters tell it which content element it should render. -- Jigal van Hemert TYPO3 CMS Core Team member TYPO3 inspiring people to share! Get involved: typo3.org ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
Re: [TYPO3-english] convert link to html a tag
I can't and also I don't want to create a FE plugin just to make an export. If on FE this links are rendered properly there must be a way to invoke this. I want only some fields so rendering whole page than parsing it is a very bad idea IMO Best regards, Dawid Pacholczyk 2013/3/29 Jigal van Hemert jigal.van.hem...@typo3.org Hi, On 29-3-2013 11:09, Dawid Pacholczyk wrote: Hello, TYPO3 keeps hyperlinks as link http://target.loc - some more dataLabel/link I'm writing exporter of my content to the external system that isn't based on TYPO3 so I need to convert this link to normal a href=target.locLabel/a How can I do this while exporting thata from BE module to xml or text file ? The most reliable way to render content is to actually let the frontend render it. If you're only interested in the content of an RTE field (such as the body text of a normal text content element) you could make a simple plugin that renders such a field. If you create a page type that has no other output (no head section, body, etc.) your BE module can simply call the frontend page and with some parameters tell it which content element it should render. -- Jigal van Hemert TYPO3 CMS Core Team member TYPO3 inspiring people to share! Get involved: typo3.org __**_ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-**bin/mailman/listinfo/typo3-**englishhttp://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english -- Dawid Pacholczyk tel: 502-054-334 gg: 5564051 skype: dpacholczyk http://typo3blog.pl (only polish version at the moment) ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
[TYPO3-english] Image resizing problem in tt_news single view
Hi List, I've problem with tt_news version 3.4.0. I am using typo3 version 6.0.4. The problem is, I've added image with my news articles.The resizing working perfectly in list and latest view. But it doesn't resize to bigger image in SINGLE mode. I want bigger image in singe view than the list view. Note that I am not installed any external resize extensions like jb_gd_resize I also added the configurations added in the tt_news manual. See the configuration in list view; plugin.tt_news.displayList.image { file.maxW = 120 file.maxH = 100 } Its ok and working. But the configuration for single view not working. Configuration is, plugin.tt_news.displaySingle.image { file.maxW = 620 file.maxH = 380 } Is it's a bug in tt_news extension? Is there any method to fix this? I am in trouble.Please help me, Thanks and regards, Arun Chandran. ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
Re: [TYPO3-english] convert link to html a tag
if you need to replace only links try something like this. $pattern = /(link ([^]*))(.*?)(\/link)/si; preg_match_all($pattern,$message,$regs); for ($i = 0; $i count($regs[0]); $i++) { if (is_numeric($regs[2][$i])) { // Internal link $message = str_replace($regs[1][$i],'a href=http://your_host_name/index.php?id='.$regs[2][$i].'',$message); } else if (ereg('@',$regs[2][$i])) { // Email address $message = str_replace($regs[1][$i],'a href=mailto:'.$regs[2][$i].'',$message); } else { // External links $message = str_replace($regs[1][$i],'a href='.$regs[2][$i].'',$message); } } On 3/29/2013 6:09 AM, Dawid Pacholczyk wrote: Hello, TYPO3 keeps hyperlinks as link http://target.loc - some more dataLabel/link I'm writing exporter of my content to the external system that isn't based on TYPO3 so I need to convert this link to normal a href=target.locLabel/a How can I do this while exporting thata from BE module to xml or text file ? Best regards, Dawid Pacholczyk ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
Re: [TYPO3-english] Image resizing problem in tt_news single view
Try to put into the template CONSTANTS plugin.tt_news.singleMaxW=620 plugin.tt_news.singleMaxH=380 On 3/29/2013 10:57 AM, PIT Solutions wrote: Hi List, I've problem with tt_news version 3.4.0. I am using typo3 version 6.0.4. The problem is, I've added image with my news articles.The resizing working perfectly in list and latest view. But it doesn't resize to bigger image in SINGLE mode. I want bigger image in singe view than the list view. Note that I am not installed any external resize extensions like jb_gd_resize I also added the configurations added in the tt_news manual. See the configuration in list view; plugin.tt_news.displayList.image { file.maxW = 120 file.maxH = 100 } Its ok and working. But the configuration for single view not working. Configuration is, plugin.tt_news.displaySingle.image { file.maxW = 620 file.maxH = 380 } Is it's a bug in tt_news extension? Is there any method to fix this? I am in trouble.Please help me, Thanks and regards, Arun Chandran. ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
Re: [TYPO3-english] Image resizing problem in tt_news single view
Hi, I am put your code in my TS template and its not working. Do you have any other suggestions ? Thanks and regards, Arun Chandran From: Sergey Alexandrov s...@alexandrov.us To: typo3-english@lists.typo3.org Sent: Friday, March 29, 2013 8:44 PM Subject: Re: [TYPO3-english] Image resizing problem in tt_news single view Try to put into the template CONSTANTS plugin.tt_news.singleMaxW=620 plugin.tt_news.singleMaxH=380 On 3/29/2013 10:57 AM, PIT Solutions wrote: Hi List, I've problem with tt_news version 3.4.0. I am using typo3 version 6.0.4. The problem is, I've added image with my news articles.The resizing working perfectly in list and latest view. But it doesn't resize to bigger image in SINGLE mode. I want bigger image in singe view than the list view. Note that I am not installed any external resize extensions like jb_gd_resize I also added the configurations added in the tt_news manual. See the configuration in list view; plugin.tt_news.displayList.image { file.maxW = 120 file.maxH = 100 } Its ok and working. But the configuration for single view not working. Configuration is, plugin.tt_news.displaySingle.image { file.maxW = 620 file.maxH = 380 } Is it's a bug in tt_news extension? Is there any method to fix this? I am in trouble.Please help me, Thanks and regards, Arun Chandran. ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
Re: [TYPO3-english] Image resizing problem in tt_news single view
Hi PIT Solutions, PIT Solutions wrote: Is it's a bug in tt_news extension? Is there any method to fix this? I am in trouble.Please help me, Check the single view template if the setting is used at all. Best regards -- Philipp Gampe – PGP-Key 0AD96065 – TYPO3 UG Bonn/Köln Documentation – linkvalidator TYPO3 inspiring people to share! ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
[TYPO3-english] Re: Missing modules after resetting Admin password in Db
Thanks for your help. A flag in the DB just needed updated and all the modules are now visible for the Admin user. Looking at the site I can see our current version 3.6.0 is well outdated and no doubt is out of support? Am I correct in saying the latest stable version is 6.0.4? If so we will more than likely will consider upgrading in the very near future. Is there upgrade guides available to assist in this process (from 3.6.0 to 6.0.4)? ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
Re: [TYPO3-english] Missing modules after resetting Admin password in Db
Hi Steven Elder, Steven Elder wrote: Is there upgrade guides available to assist in this process (from 3.6.0 to 6.0.4)? Yes, each release note has its own upgrade guide. You will need to upgrade by steps: 3.6-3.8-4.0-4.1-4.2-4.3-4.4-4.5 4.5 is the oldest supported version and still runs on PHP 5.2. Then you can upgrade to 4.5-4.6-4.7-6.0.4 Keeps in mind that all mentioned versions are major versions, not minor versions as one could think. Best regards -- Philipp Gampe – PGP-Key 0AD96065 – TYPO3 UG Bonn/Köln Documentation – linkvalidator TYPO3 inspiring people to share! ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
Re: [TYPO3-english] convert link to html a tag
Hi! Dawid Pacholczyk wrote: If on FE this links are rendered properly there must be a way to invoke this. Nope. There are too many things that can affect the way those links are generated. -- Dmitry Dulepov TYPO3 CMS core security teams member ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
Re: [TYPO3-english] Missing modules after resetting Admin password in Db
Hi, On 29-3-2013 19:38, Philipp Gampe wrote: Steven Elder wrote: Is there upgrade guides available to assist in this process (from 3.6.0 to 6.0.4)? Yes, each release note has its own upgrade guide. You will need to upgrade by steps: 3.6-3.8-4.0-4.1-4.2-4.3-4.4-4.5 4.5 is the oldest supported version and still runs on PHP 5.2. Then you can upgrade to 4.5-4.6-4.7-6.0.4 Keeps in mind that all mentioned versions are major versions, not minor versions as one could think. It's important to keep in mind that this is an upgrade path you carefully have to do. Check each new version for the requirements regarding PHP and MySQL versions. You will have to upgrade those too during the whole process when a new TYPO3 version doesn't support the PHP and MySQL version you have at that point. Also make sure that you run the Upgrade Wizard in the Install Tool, do a Database Compare and read the INSTALL.txt, NEWS.txt and the upgrade guides in the wiki [1] for thing that need extra attention. Extensions are a whole different story. It is very unlikely that a version of an extension will support such a huge range of core versions. You need to upgrade extensions too during the upgrade process. If older extensions use core API functions that are removed in a newer release the resulting fatal PHP errors will cause the backend to be unavailable (most likely a blank page if the PHP error isn't displayed by the webserver). A nice challenge such an upgrade :-) [1] http://wiki.typo3.org/Upgrade -- Jigal van Hemert TYPO3 CMS Core Team member TYPO3 inspiring people to share! Get involved: typo3.org ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
[TYPO3-english] Passwords in sha-512
Hey, I need to import database of users and their passwords are hashed using sha-512. I was wondering whether it's possible to configure rsaauth/saltedpasswords extension to use this alghoritm. Or any other extension for such use? If not, all users will be forced to request new password, which is not nice. Thanks Jan ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
Re: [TYPO3-english] RealUrl dependencies
Hey, so why it's called LTS then? Why the support has been prolonged by half a year? Are you sure there will be no core fixes? If it's true, then the LTS really sucks. Jan Dne 28.3.2013 19:36, Dmitry Dulepov napsal(a): Hi! Tomasz Krawczyk wrote: Is latest RealUrl v4.5 compatible? Upload comment says no but em_extconf.php says 4.5 is the oldest supported. The same with PHP. http://typo3.org/extensions/repository/view/realurl Anybody knows which is correct? It is compatible but not supported :) This means that you can run it on 4.5 and it runs ok. But nothing will be fixed if you find a bug, which is 4.5-specific. 4.5 is just too old. It does not get any fixes on the core side, so it does not make sense to fix RealURL for it. ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
[TYPO3-english] Re: Detecting if current output is content_fallback fails
Problem: The Condition [globalVar = TSFE:sys_language_content0] won't work. 90% of PHP-Array TSFE isn't generated at the moment the typoscript is parsed, so it doesn't work. The only option to achieve this is to use a userfunc. A quick-and-dirty userfunc (which doesn't take into account workspaces/versioning) could be: function user_isTranslationMissing() { $pid = (int)$_GET['id']; $lang = (int)$_GET['L']; if (($pid 1) || ($lang 1)) return(false); $query = SELECT P.uid,P.title AS title_orig,L.title,L.sys_language_uid FROM pages AS P INNER JOIN pages_language_overlay AS L ON (L.pid = P.uid) WHERE L.hidden=0 AND L.deleted=0 AND P.hidden = 0 AND P.deleted= 0 AND L.sys_language_uid = .$lang. AND L.pid = .$pid; if (!$result = $GLOBALS['TYPO3_DB']-sql_query($query)) { return(false); } while ($rowtemp = mysql_fetch_assoc($result)) { return(false); } return(true); } Just added this for reference if this thread comes up in search results - improvements to this function are welcome. ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
Re: [TYPO3-english] RealUrl dependencies
Am 29.03.13 23:35, schrieb Jan Bednarik: Hey, so why it's called LTS then? Why the support has been prolonged by half a year? Are you sure there will be no core fixes? If it's true, then the LTS really sucks. Jan Hi Jan, you can still use the extension version that works with 4.5. Whats your problem with it? Olivier ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
Re: [TYPO3-english] RealUrl dependencies
Hey, my problem is that although 4.5 is LTS, some heavily used extensions don't have the same approach. And since TER will offer you only the latest version, it can be sometimes problem. And I don't use RealUrl ;) Jan Dne 29.3.2013 23:57, Olivier Dobberkau napsal(a): Am 29.03.13 23:35, schrieb Jan Bednarik: Hey, so why it's called LTS then? Why the support has been prolonged by half a year? Are you sure there will be no core fixes? If it's true, then the LTS really sucks. Jan Hi Jan, you can still use the extension version that works with 4.5. Whats your problem with it? Olivier ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
Re: [TYPO3-english] RealUrl dependencies
Am 30.03.13 00:09, schrieb Jan Bednarik: And since TER will offer you only the latest version, it can be sometimes problem. who told you that? olivier ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english