Apr 24
ZahoExtensions, Joomla!
Open /administrator/components/com_chronoforms/form_actions/upload_files/upload_files.php and on around line 82 add:
$file_name= str_replace(" ","_",$file_name);
Dec 15
ZahoHTML/CSS
Useful, if element in your CMS needs customizing, but HTML tags are stripped out of it by PHP (like menu item title in Joomla!).
span:before {content: url(plus.gif);}
span:after {font-style:italic; content: " (some text)";}
Oct 17
ZahoUncategorized
These are some commands I use not often enough to remember:
Zip folder, that has subfolders
zip -r filename.zip foldername/
Changes the ownership for each directory for all users in the cPanel .
for i in `ls /var/cpanel/users`; do chown -R $i:$i /home/$i/public_html/*; done
Changes the ownership of public_html for one user.
chown -R user:user /home/user/public_html/*
Change permissions for all folders to 755 and 644 for all files.
find /home/*/public_html/* -type f -exec chmod 644 {} \;
find /home/*/public_html/* -type d -exec chmod 755 {} \;
Change permissions for all folders to 755 and 644 for all files for one user under public_html.
find /home/user/public_html/* -type f -exec chmod 644 {} \;
find /home/user/public_html/* -type d -exec chmod 755 {} \;
Sep 01
ZahoOS 7, bios, detect, hdd, problem, windows
BIOS detects your HDD, you can even see it in Device Manager, but not in My computer.
Go Start -> Control Panel -> Administrative Tools -> Computer Management -> Disk Management. Maybe you will have to format your drive or maybe, like it was for me, you will have to assign letter to the drive.
Aug 24
ZahoTech amd, asrock, cpu, hardware, problems
I had N68C-GS UCC motherboard with Athlon 64 X2 3800+ CPU. I decided to upgrade CPU and bought Athlon II X4 640. After installing it, system (BIOS v1.4) recognized it, but became unstable. PC froze up or restarted frequently. Lots of BSOD-s in Windows 7 and XP.
Solution to the problem was enabling Cool ‘n’ Quiet in BIOS under Advanced -> CPU Configuration.
Dec 27
ZahoExtensions, Joomla! accordion, Joomla!, module, qlue
Qlue Accordion is module for Joomla! 1.5x, which allows you to make accordion style display of articles in one page. But there is no built-in function to show date created for article. Easy solution – find and open default.php in modules/mod_qaccordion/tmpl and then insert
<?php echo JHTML::_('date', $art->created, JText::_('DATE_FORMAT_LC4')); ?>
right after <h3>.
Dec 21
ZahoHTML/CSS border, bug, div, nested
Situation – you have parent <div class=”parent”> with many <div class=”child”>-s inside of it. <div class=”parent”> has a border. And that border doesn’t stretch over all <div class=”child”>-s. The solution is simple – as the last child put in <div style=”clear: both;”>
<div class="parent">
<div class="child">
<p>Some content</p>
</div>
<div class="child">
<p>Some content</p>
</div>
...
<div class="child">
<p>Some content</p>
</div>
<div style="clear: both;"></div>
</div>
Dec 16
ZahoTech 103EG, broadcom, compaq, cq65, drivers, hp, presario, wireless, wlan
HP Compaq Presario CQ56-103EG is quite neat notebook. It has pre-installed SuSe Linux Enterprise. The problem comes, if you wish to install Windows XP or Windows 7 on it. The notebook is for German market, so HP autodetect tool from other countries will not work on it. And the worst of all is that even in German version there is no wireless LAN drivers for Broadcom WLAN adapter. So, the solution is to install driver from HP Mini 210-1000SA.
Nov 13
ZahoExtensions, Joomla! cu3er, flash, Joomla!, module, show, slide, vinaora
Vinaora Cu3er 3D Slideshow is an awesome free module for Joomla! 1.5x. But it has quite complex settings. I had one particular problem – I was not able to get rid of Auto Play animation, even tho it was disabled in Button and Symbol Settings. I solved the problem by enabling Auto Play and changing Advanced Parameters -> Auto Play – TweenIn, TweenOut, TweenOver width and height to 0.
Apr 28
ZahoExtensions, Joomla! Joomla!, mp3, player
I tested a bunch of players. Imho, the best is Simple MP3 Player. The most important part is to remember to set relative path to the playlist.