Friday, September 17, 2010

types of plugins in joomla

Hi

In Joomla there the following types of plug-ins or available



authentication: (/plugins/authentication)
---------------
This plugin allows to login and other authentication related stuffs

content : (/plugins/content)
--------
This plugin can use to modify or add the features to the content

Editor : (/plugins/editor)
-------
This allow to create the editors

System (/plugins/system)
-------
PHP based operations can be handled by this

Friday, August 6, 2010

Language Conversion in JS

<script type="text/javascript">

function languageswitch(){

var url=window.location.href;

if(url.indexOf('\/en\/')>0){

url=url.replace('\/en\/','\/de\/');

url=url.replace('\/en_','\/de_');

}else if(url.indexOf('\/de\/')>0){

url=url.replace('\/de\/','\/en\/');

url=url.replace('\/de_','\/en_');

}

window.location.href=url;

}

</script>

ex:
http://damublog.blogspot.com/en
http://damublog.blogspot.com/de

Wednesday, March 24, 2010

Regular expression

remove the img tag from the given content
========================================
$content = "this is something with an image tag here in it.";
$content = preg_replace("/]+\>/i", "(damu) ", $content);
echo $content;

die();
?>