Aug 20, 2009

Joomla! - Liberate the Authors

To hack the Joomla! 1.5.x ( to open the gate for the authors ), is to change the following two files ( the hack has to be applied to any future upgrade of the core )

File 1 is ...components\com_content\controller.php
Go to Line 229 and comment out some lines to stop the wrong message coming up on save:

// if ($access->canPublish)
// {
// Publishers, admins, etc just get the stock msg
$msg = JText::_('Item successfully saved.');
// }
// else
// {
// $msg = $isNew ? JText::_('THANK_SUB') : JText::_('Item successfully saved.');
// }

File 2 is ...components\com_content\models\article.php
Go to line 332 to change the zero value:
// For new items - author is not allowed to publish - prevent them from doing so
$article->state = 1;

The Authors are Liberated !
~E~

Aug 11, 2009

Linux password reset

Hi there, how if i forgot my password to login to my box ?

1. boot by using livecd
2. open terminal type sudo fdisk -lu
3. find something like /dev/sda* which Linux as the system
4. type sudo mkdir /media/lin_temp
5. type sudo mount /dev/sda* /media/lin_temp
6. type sudo chroot /media/lin_temp
7. type passwd john ( if the username = john )
8. you can change the password here by typing the new password twice
9. reboot

(*) indicates the partition number, 1 or 2 or...
this steps had applied on HH, JJ and Gloria

regards;
~E~

May 13, 2009

Faster Firefox

This article tested on Firefox 3.0.10 ( Ms. Windows XP and Ubuntu JJ )

Open your firefox and type about:config
( click ok i'll be careful, i promise! )

Work on filter bar :
( type the bold, change the value by double click on it )

network.http.pipelining ; normally it "false", change to "true"
network.http.pipelining.maxrequests ; normally it "4", change to "8"
network.http.proxy.pipelining ; change from "false" to "true"
network.dns.disableIPv6 ; change from "false" to "true"
plugin.expose_full_path ; change from "false" to "true"

Create some new preferences:
( you can Right Click (RC) anywhere on the preferences panel )

Right Click > New > Integer > type nglayout.initialpaint.delay
click ok > type zero, 0 > click ok

Right Click > New > Integer > content.notify.backoffcount
click ok > type: 5 > click ok

Right Click > New > Integer > ui.submenuDelay
click ok > type zero, 0 > click ok

Right Click > New > Integer > browser.cache.memory.capasity
click ok > type: 32768 > click ok

Right Click > New > Integer > content.notify.interval
click ok > type: 500000 > click ok

Right Click > New > Integer > content.switch.threshold
click ok > type: 250000 > click ok

Right Click > New > Boolean > content.interrupt.parsing
click ok > choose: False > click ok

It's Done !!
Now, it's time to restart the firefox............It should be faster than before.


Regards;
~E~