IES
IES stands for 'In Eigener Sache'. This section will incorporate code snippets, trials and other random thoughts which are worth publishing. Enjoy. We will try and build up a knowledge database.
tx_srfeuserregister
Change classe tx_srfeuserregister_setfixed function computeUrl :
Place
$url = str_replace("[","%5B",$url);
$url = str_replace("]","%5D",$url);
before the last line of code.
id of page in css id
page.bodyTag >
page.bodyTagCObject = TEXT
page.bodyTagCObject.field = uid
page.bodyTagCObject.wrap = <body id="page|">
Extensions to remember
- kb_tv_cont_slide
- m1_google_analytics
- textbrowser
- chgalleryttnews
interesting links
www.typo3-addict.com/2009/10/5-things-you-should-know-about-tt_news/
Plesk domain template preparation
vhosts/.skel/0/conf/vhost.conf
ServerAlias @domain_name@.domain.com
<Directory /srv/www/vhosts/@domain_name@/httpdocs>
Options +FollowSymlinks +Indexes +Includes
php_admin_flag safe_mode Off
php_admin_value open_basedir "/srv/www/vhosts/@domain_name@........ continues here .........../httpdocs:/tmp
</Directory>
Solved problem Mootools tx_ratings ajax support (turn off prototype js library)
Versions:
pmkslimbox: 2.3.2
ratings: 1.0.10
comments: 1.5.3
mootools: 1.2.3
Change
var myAjax = new Ajax("index.php?eID=tx_ratings_ajax", {
method: 'post',
data: 'ref=' + id + '&rating=' + rating + '&data=' + ajaxData +
'&check=' + check,
update: 'tx-ratings-' + id
});
myAjax.request();
in ratings.js (ATTENTION ONLY for mootools Version < 1.2 (confusing because tx_mootools version 1.2.3 includes version actuall library 1.1 and version 1.3 of the extension includes Library Version 1.2))
In File res/ratings.html
Delete Line
<script type="text/javascript" src="/typo3/contrib/prototype/prototype.js"></script>
Typo3 Skeleton Plesk required updates
Edit subdomain/domain/conf/vhost.conf
ServerAlias @domain_name@.yourserverdomain.com
<Directory /srv/www/vhosts/@domain_name@/httpdocs>
Options +FollowSymlinks +Indexes +Includes
php_admin_flag safe_mode Off
php_admin_value open_basedir "/srv/www/vhosts/@domain_name@/httpdocs:/tmp:/srv/www/typo3_src-4.5.act:/srv/www/typo3_src-4.4.act:/srv/www/typo3_progs"
</Directory>
/usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=thedomain.com
rcapache2 restart
move 1und1 managed server typo3 instance to rootserver
mysqldump --host=localhost --user=dboxxxxxxx --password=xxxxxxxxxxxx -S /tmp/mysql5.sock dbxxxxxxxxxxxx > db.sql
tar -czvf files.tar.gz fileadmin/ typo3conf/ typo3temp/ uploads/
--- on the other server
wget domain.com/files.tar.gz
wget domain.com/db.sql
tar xzpvf files.tar.gz (in right destination !)
mysql --host=localhost --user=xxxx --password=xxxxxxxxx DBName < db.sql
ln -s /srv/www/typo3_src-4.5.act typo3_src
ln -s typo3_src/index.php index.php
ln -s typo3_src/t3lib t3lib
ln -s typo3_src/typo3 typo3
chown -R wwwrun:psacln fileadmin typo3conf typo3temp uploads
joe typo3conf/localconf.php
change imagemagic usr/bin/
---------------------------------------------------------------------------------------------------------------------