[TYPO3] "Caption for popup image" extension and showpic.php

ROBERT Florence flrobert at admin.ulb.ac.be
Wed Aug 30 17:24:00 CEST 2006


Hello François,

Many thanks for your answer. I did find some info about the call to showpic via eID parameter and watched Kasper's podcast, but I still can't have that dh_popupimg_caption extension run.

In the class.tx_dhpopupimgcaption.php file, I tried to modify the part that assembles the showpic link :

original version :
return 'showpic.php?file='.urlencode($file) . $out . '&md5=' . $md5_value ;

modified version :
return 'index.php?eID=tx_cms_showpic&file='.urlencode($file) . $out . '&md5=' . $md5_value ;

[call to parameters shouldn't change, right ?]

I checked that typo3/sysext/cms/ext_localconf.php has the right reference for showpic :
$TYPO3_CONF_VARS['FE']['eID_include']['tx_cms_showpic'] = 'EXT:cms/tslib/showpic.php';
Should I include that elsewhere to make it run ?

I still get this "Parameter Error: Wrong parameters sent."

Here is the generated code :

<a href="index.php?eID=tx_cms_showpic&amp;file=uploads%2Fpics%2F2.jpg&amp;title=Image&amp;width=800m&amp;height=600m&amp;bodyTag=%3Cbody+bgcolor%3D%22%23FFFFFF%22%3E&amp;wrap=%3Ca+href%3D%22javascript%3Aclose%28%29%3B%22%3E+%7C+%3C%2Fa%3E%3CBR%3E%3Cfont+face%3D%22verdana%22+size%3D%221%22%3Etest+caption+in+click-enlarge+popup%3C%2Ffont%3E&amp;md5=bd82ff30c43d48b9573a4b58fd891b5f?file=uploads%2Fpics%2F2.jpg&amp;width=800m&amp;height=600m&amp;bodyTag=%3Cbody%20style%3D%22margin%3A0%3B%20background%3A%23fff%3B%22%3E&amp;wrap=%3Ca%20href%3D%22javascript%3Aclose%28%29%3B%22%3E%20%7C%20%3C%2Fa%3E&amp;md5=5f576eda0ca53170a21fdf8edc78037d" onclick="openPic('http://bib48.ulb.ac.be/index.php?eID=tx_cms_showpic&amp;file=uploads%2Fpics%2F2.jpg&amp;title=Image&amp;width=800m&amp;height=600m&amp;bodyTag=%3Cbody+bgcolor%3D%22%23FFFFFF%22%3E&amp;wrap=%3Ca+href%3D%22javascript%3Aclose%28%29%3B%22%3E+%7C+%3C%2Fa%3E%3CBR%3E%3Cfont+face%3D%22verdana%22+size%3D%221%22%3Etest+caption+in+click-enlarge+popup%3C%2Ffont%3E&amp;md5=bd82ff30c43d48b9573a4b58fd891b5f?file=uploads%2Fpics%2F2.jpg&amp;width=800m&amp;height=600m&amp;bodyTag=%3Cbody%20style%3D%22margin%3A0%3B%20background%3A%23fff%3B%22%3E&amp;wrap=%3Ca%20href%3D%22javascript%3Aclose%28%29%3B%22%3E%20%7C%20%3C%2Fa%3E&amp;md5=5f576eda0ca53170a21fdf8edc78037d','thePicture','width=337,height=598,status=0,menubar=0'); return false;" target="thePicture" title="test title text"><img src="typo3temp/pics/9adc9cdd36.jpg" width="105" height="174" border="0" alt="test alternative text" longdesc="test long description URL" /></a>

I don't understand why after the md5 parameter, it generates the same parameters again : file, width, height, etc. (except that "title" parameter is not repeated).

Maybe someone here can have a look at this in a more technical way than I can !
Thanks for any other clue about this !

Florence.


> -----Message d'origine-----
> De : typo3-english-bounces at lists.netfielders.de 
> [mailto:typo3-english-bounces at lists.netfielders.de] De la 
> part de Francois Suter
> Envoyé : lundi 28 août 2006 16:59
> À : TYPO3 English
> Objet : Re: [TYPO3] "Caption for popup image" extension and 
> showpic.php
> 
> Hi,
> 
> > Does anybody have an idea how to make this extension work 
> under TYPO3 
> > 4.0 ?
> 
> I don't have the whole answer to your question, but at least a clue.  
> The showpic.php page doesn't exist in the root of the site anymore.  
> It has been replaced by another mechanism. When calling up 
> the index.php page, if the query parameters of the URL 
> contain a "eID"  
> parameter, the normal processing is interrupted and other 
> scripts are executed. This is how the showpic works now. You 
> can take a look at Kasper's podcast entitled "4.0 
> TechInsight: Frontend AJAX case story"  
> for more details.
> 
> The extension will then have to be adpated to use this 
> mechanism, but I don't know exactly how. I'm sure you can 
> find how by looking at the part of the core that assembles 
> the showpic link.
> 
> Hope this helps.
> 
> François Suter
> Directeur technique
> -----------------------------------------------------
> Cobweb Development Sàrl
> www.cobweb.ch
> -----------------------------------------------------
> 
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
> 



More information about the TYPO3-english mailing list