Category Archives: Joomla

“Always use the selected program to open this kind of file” is gray

How can I enable “Always use the selected program to open this kind of file” option in Open With dialog box?

—————

Sorry for this reply I realise this topic has been asleep for 3 months but I have recently discovered how to fix a similar problem on my PC and hope it will do the same for the original poster.
Continue reading “Always use the selected program to open this kind of file” is gray

Enabling DreamWeaver to search through INI and CSV or other Extensions

* Dreamweaver CS5 on Windows Seven 7:
C:\Users\woshka\AppData\Roaming\Adobe\Dreamweaver CS5\en_US\Configuration
* Dreamweaver CS3 on Windows Vista:
C:\Users\[username]\AppData\Roaming\Adobe\Dreamweaver 9\Configuration
* Dreamweaver 8 on Windows Vista:
C:\Users\[username]\AppData\Roaming\Macromedia\Dreamweaver 8\Configuration
* Dreamweaver CS3 on Windows XP:
C:\Documents and Settings\[username]\Application Data\Adobe\Dreamweaver 9\Configuration
* Dreamweaver 8 on Windows XP & 2000:
C:\Documents and Settings\[username]\Application Data\Macromedia\Dreamweaver 8\Configuration
* Dreamweaver CS3 on Mac OS X:
Mac HD:Users:[username]:Library:Application Support:Adobe:Dreamweaver 9:Configuration
* Dreamweaver 8 on Mac OS X:
Mac HD:Users:[username]:Library:Application Support:Macromedia:Dreamweaver 8:Configuration
———
Open code view:
* Dreamweaver CS5 on Windows Seven 7:
C:\Program Files\Adobe\Adobe Dreamweaver CS5\configuration\DocumentTypes\MMDocumentTypes.xml
VD : Add new 1 extension less lên css extension :
+ Tìm id=”css”, thêm như sau :
<documenttype id="CSS" internaltype="Text" winfileextension="css,less” macfileextension=”css,less” file=”Default.css” writebyteordermark=”false” mimetype=”text/css” >
Note: Dreamweaver CS5.5 users also need to do this for C:\Users\\AppData\Roaming\Adobe\Dreamweaver CS5.5\en_US\Configuration\DocumentTypes\MMDocumentTypes.xml

Hàm thường dùng trong joomla 1.5

Get Database :

$db=&amp;JFactory::getDBO();
$query="select * from ".$db-&gt;nameQuote('#__modules')." where id=55";
$db-&gt;setQuery($query,0, 1);
$result = $db-&gt;query($query);
$arr_kq=$db-&gt;loadAssocList();
$tpl-&gt;set( 'result_module_1', $arr_kq );

————
Path :

$baseurl = JURI::base();

————
Load Mootools:

JHTML::_('behavior.mootools');

————
Text trong Language :

JText::sprintf( 'HINAME' )

————
Load libraries from virtuemart:

if( @file_exists(dirname(__FILE__).'/../../components/com_virtuemart/virtuemart_parser.php' )) {
 require_once( dirname(__FILE__).'/../../components/com_virtuemart/virtuemart_parser.php' );
} else {
 require_once( dirname(__FILE__).'/../components/com_virtuemart/virtuemart_parser.php' );
}
$sess = new ps_session;

Continue reading Hàm thường dùng trong joomla 1.5

Using jQuery with Joomla!

Joomla ! (till Ver 1.5.10) by default supports mootools 1.11. The core is still not updated to use mootools 1.2x version. 

Now back to the topic. jQuery and Mootools are known to produce conflicts when used together. jQuery is more reliable and robust than mootools (It is my personal view) but it is however not provided with core joomla installation. So how to use jQuery with Mootools without any conflicts.


Continue reading Using jQuery with Joomla!