[TYPO3-english] Updating old Extention
Sergey Alexandrov
serg at alexandrov.us
Fri Oct 10 21:49:43 CEST 2014
Christian,
This is what worked for me (ext. was written for 4.5, "ported" to 6.2,
didn't test on 6.1 though)
If your ext. has a module, then you should have mod1/conf.php. Do this:
<?php
// DO NOT REMOVE OR CHANGE THESE 3 LINES: <-- Bla-bla-blafrom 4.5
//define('TYPO3_MOD_PATH', 'ext/vs_blablabla/mod1/');<-- Remove or
comment out
//$BACK_PATH='../../../'; <-- Remove or comment out
$MCONF['name']='user_txblablablaM1'; <-- Leave it in
here(it's different for your ext.)
$MCONF['access']='user,group'; <-- Leave it in here
//$MCONF['script']='index.php'; <-- Remove or comment out
$MCONF['script'] = '_DISPATCH'; <-- Insert
$MLANG['default']['tabs_images']['tab'] = 'moduleicon.gif';
<-- Leave it in hereif you have one
$MLANG['default']['ll_ref']='LLL:EXT:tx_blablabla/mod1/locallang_mod.xml';<--
Leave it in here if you have one
Now, in module index.php - see commented out lines
// DEFAULT initialization of a module [BEGIN]
unset($MCONF);
require ("conf.php");
//require ($BACK_PATH."init.php");
//require ($BACK_PATH."template.php");
$GLOBALS['LANG']->includeLLFile("EXT:tx_blablabla/mod1/locallang.xml");
//require_once (PATH_t3lib."class.t3lib_scbase.php");
$GLOBALS['BE_USER']->modAccess($MCONF,1);
// DEFAULT initialization of a module [END]
If you also have a plugin, comment out this one
//require_once (PATH_t3lib."class.t3lib_scbase.php");
Oh, and the last one: in the ext_emconf.php change 'depends' if you had
one to whatever
$EM_CONF[$_EXTKEY] = array(
[skipped]
'constraints' => array(
'depends' => array(
'php' => '5.3.0-6.99.99',
'typo3' => '6.2.0-6.99.99',
),
'conflicts' => array(
),
'suggests' => array(
),
),
[skipped]
)
Hope this helps.
Thank you,
Sergey
On 10/7/2014 11:53 AM, Christian Tauscher wrote:
> Hello.
>
> I have Written some EXT/BE-Modules - years ago.
> This should be updated.
> The EXT is running "fine" under 6.1 but should run under 6.2 of course.
>
> deprecated-Logfile claims Line 3 to be wrong.
>
> 1. unset($MCONF);
> 2. require_once('conf.php');
> 3. require_once($BACK_PATH.'init.php');
> 4. require_once($BACK_PATH.'template.php');
> 5. $LANG->includeLLFile('EXT:tmd_cinema/mod1/locallang.xml');
> 6. require_once(PATH_t3lib.'class.t3lib_scbase.php');
>
> Since I never was a good coder, most of this EXT is out of the
> ExtentionBuilder.
>
> I am looking for some exampels/tutorials/wikis to change the wrong lines.
>
> Thank you for your Help,
>
> Christian.
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
More information about the TYPO3-english
mailing list