[TYPO3] rgsmoothgallery disiplaying code on FE
Stephen Martin
stphnmartin at gmail.com
Sat Jul 7 19:31:26 CEST 2007
Hi,
I've installed rgsmoothgallery 1.0.5 and have configured it properly.
However, on the initial load of page of any page of the site the code
below is displayed on the front end. This happens only on the first load
of the page and subsequent refreshes do no exhibit the problem.
Here's the site where I'm testing it: vbc.devworktest.com
Typo3 4.1.1
PHP5
Thanks for any help and the great extension.
<-----------code displayed on front end--------------->
currentRecord,':'); $id =
substr($GLOBALS['TSFE']->currentRecord,$split+1); $where = 'uid ='.$id;
$table = 'tt_content'; $res =
$GLOBALS['TYPO3_DB']->exec_SELECTquery('imagewidth,imageheight',$table,$where,$groupBy='',$orderBy,$limit='');
$row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res); $css .=
($row['imagewidth']) ? 'width:'.$row['imagewidth'].'px;' : ''; $css .=
($row['imageheight']) ? 'height:'.$row['imageheight'].'px;' : '';
$GLOBALS['TSFE']->additionalCSS['rgsmoothgallery'.$id] =
'#myGallery'.$id.' {'.$css.'}'; $path =
t3lib_extMgm::siteRelpath('rgsmoothgallery').'res/';
$GLOBALS['TSFE']->additionalHeaderData['rgsmoothgallery'] = ' ';
return $content; } function user_test2($content,$conf) { #echo
t3lib_div::view_array($conf); echo '
';
$GLOBALS['TSFE']->currentRecord;
echo '
'; return $GLOBALS['TSFE']->currentRecord; } ?>
More information about the TYPO3-english
mailing list