Von CMS, PHP
23. Juni 2010
While programming a typo3 extension I came across the following problem: my backend module didn’t show any scrollbars. This made it impossible to scroll down to the end of a list to view all elements.
After some looking around I found the CSS class typo3-mod-php which has set the property „overflow“ to „hidden“. Seems to be ONE of the bad one to me. I don’t think it is the only reason.
To fix the problem for me I added following code to the moduleContent() method in my backend module:
$content .= „
It’s not perfect, but it’ll have to fit until I have found something better.
Permanentlink zu diesem Beitrag: https://techblog.steffmeister.at/selfmade-typo3-backend-modul-scrollbar-problem/
After updating my HTC Dream from CyanogenMod 5.0.7 to 5.0.8 my keyboard layout has suddenly changed to english (QWERTY.
I found the solution in the CyanogenMod wiki, a bit hidden.
To solve the problem open a terminal on the phone and enter following:
mount /system -o rw,remount
cp trout-keypad-qwertz.kl trout-keypad-v3.kl
cp trout-keypad-qwertz.kcm.bin trout-keypad-v3.kcm.bin
You can, of course, also run this commands via the adb shell from your computer.
All you have to do then is to reboot your phone and that’s it.
Permanentlink zu diesem Beitrag: https://techblog.steffmeister.at/dangerspl-and-cyanogenmod-english-keyboard-layout/
2. Juni 2010
Last time I tested how to swap an image if you hover on it with the mouse. Today, the same, but this time the image swape is realised via plain CSS.
If you like to place a link on the image you’ll just have to surround the div tag with an ordinary „a“ tag.
XHTML Live Example
Permanentlink zu diesem Beitrag: https://techblog.steffmeister.at/swap-images-via-css/
document.images[Image].src = Url;
The HTML code for the image looks like this:
The normal.png is replaced with hover.png when the mouse hovers over the image (onMouseOver). The image is replaced again when the mouse leaves the image (onnMouseOut).
Guid for european phones only! It worked for me, but I don’t give any kind of warranty!
After some time using the alternative firmware CyanogenMod I wanted to test the original T-Mobile ROM again. Later I was forced because my phone wasn’t able to boot anymore because I flashed a wrong firmware.
The Wiki on CyanogenMod got me started: First thing is to check which bootloader is installed
- Power off phone, power on and hold Power and Camera button
- you should end up in a four colored screen and a text saying: VER: HBOOT-0.95.0000, if this is the case you have the original and right bootloader and you can skip to the next points
- Download original bootloader, copy it on the sd card and power off the phone
- Power on phone and hold Power and Home button, you should end up in the recovery menue, select „apply any zip from sd“ and choose the just downloaded zip, wait until it has finished and reboot the phone (Home and Back button), check the bootloader again according to the first step
Flash original Dream image
- Download DREAM image and copy it on your sd card (don’t rename)
- power off phone, power on and hold Power and Camera button to launch the recovery menue, press the track ball.
- Wait until it has finished
- Reboot the phone (press Power, Back and Call button at the same time)
The phone is now in its original state (factory defaults).
After that I have to get to Android 1.6 again. This is possible with the manual upgrades:
That’s it. You can check your version under Settings -> About phone -> Firmware version. It should say 1.6, and your build number should say DRC92.
Permanentlink zu diesem Beitrag: https://techblog.steffmeister.at/revert-htc-dream-g1-to-original-firmware/
You all know Captain Kirk from Star Trek: I’m sorry, I can’t here you over the sound how awesome I am.
Permanentlink zu diesem Beitrag: https://techblog.steffmeister.at/captain-kirk/
18. Februar 2010
Something that always bugged me about the TYPO3 backend was the message „Your session may have expired. Do you want to login again?“ after every hour I was idle, so I looked for a solution:
All you have to do is to set following in your typconf/localconf.php file:
$TYPO3_CONF_VARS['BE']['sessionTimeout'] = '7200';
This will set the backend session timeout to 2 hours.
Permanentlink zu diesem Beitrag: https://techblog.steffmeister.at/typo3-backend-session-timeout/