Search This Blog
Monday, April 19, 2010
Tuesday, April 13, 2010
Joomla puts meta tags
Joomla automatically puts meta tag generator with comments about joomla in the site. here is how to remove tht
Thursday, April 1, 2010
Count number of modules in a joomla position
<?php if (mosCountModules('left')>0) { ?>(where left is the position name)
http://forum.mamboserver.com/showthread.php?t=41728
Wednesday, March 31, 2010
Set title of Joomla page
$mydoc =& JFactory::getDocument();
$mytitle = $mydoc->getTitle();
$conf =& JFactory::getConfig();
$sitename = $conf->getValue('config.sitename');
$mydoc->setTitle($mytitle.' - '.$sitename);
http://joomlapanel.com/joomla-article/58-page-titles-in-joomla-15.html
Tuesday, March 9, 2010
Thursday, February 18, 2010
Assign file permissions in jumpbox
These files were not modified through Core FTP Lite or any other ftp client i was using, so I had to login to the jumpbox as root and pass the chmod command to change permissions
sudo –i
(logs you in temporarily as root)
chmod og=rw /var/data/joomla15/xyz/abc.php
http://www.jumpbox.com/archives/140_how-to-access-a-jumpbox-as-root.html
Tuesday, February 16, 2010
Get Current URL with PHP
$_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]
http://www.scriptygoddess.com/archives/2007/01/29/get-current-url-with-php/
Friday, February 12, 2010
Install IONCube on Joomla Jumpbox
I spent 3-4 hours in setting up IONCube on my joomla jumpbox but there were a lot of access issues :S
Finally here is the set of steps that lead me to its installation:
- download the ioncube loader from here:
http://www.stevekallestad.com/wiki/IonCube_Installation - Extract the files and copy the files to storage/joomla15/ioncube/
- Open your browser and browse to the ioncube-loader-helper.php file
- Check to see whats the status of loader file currently on your jumpbox
- We will be using php.ini setup to install the loader. php.ini is located in etc/php5/apache2/ folder.
- Open your jumpbox and click on Alt+F1 to go to the console
- type: sudo nano /etc/php5/apache2/php.ini
- now add another entry in this file:
zend_extension = /var/data/joomla15/ioncube/ioncube_loader_lin_5.2.so - Save this file and restart the apache server:
sudo /etc/int.d/apache2 restart
- Now browse again to the ioncube-loader-helper.php. it should show the following screen: