Tuesday, May 25, 2010

com_google manage mail from contact form joomla

currently there is no way to manage this from admin panel. All out going mail send through the info@xxxx.yyy address.

How ever u can follow following step to solve this issue

1.find components/com_google/controller.php - from fron end
2.see line no 46 - $from ="info@".$_SERVER['HTTP_HOST'];
3. change it as per your desire

$from ="info@mydesire.com";

if u have any ques ple comment here

new release can change 'from Email address'


Sunday, May 23, 2010

1 simple example joomla component

Already we have discussed about "How to make a Joomla component".

For that follows 5 stages as below

Download all above step as once component , "simple example joomla component "

There is simple variation on the "install.xml". Added new 4 line to it as below


New install.xml file

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE install SYSTEM "http://dev.joomla.org/xml/1.5/component-install.dtd">
<install type="component" version="1.5.0">
<!-- The following elements are optional and free of formatting conttraints -->
<creationDate>2009/10/24 </creationDate>
<copyright>com_lanka1 2009</copyright>
<!-- The version string is recorded in the components table -->
<!-- The description is optional and defaults to the name -->
This component is a Flight System. <br />
<!-- Site Main File Copy Section -->
<files folder="site">



<!-- Administration Menu Section -->
<!-- Administration Main File Copy Section -->
<!-- Note the folder attribute: This attribute describes the folder
to copy FROM in the package to install therefore files copied
in this section are copied from /admin/ in the package -->
<files folder="admin">
<!-- Site Main File Copy Section -->






Saturday, May 22, 2010

change com_google Thanks for you !

Do u know how to change the text[Thanks for you !] of com_google component?

yes it's very easy

there are 2 method

1. This is right way
find the "en-GB.com_google.ini" from


And change "Thanks for you !" with ur desire ...........

2. Easy way to developers

find the file "controller.php" from


go to line No 60 or find out this code "$msg = JText::_('GOOGLE_THANKS'); "

on there u can put any text instead of "GOOGLE_THANKS"

Enjoy with joomla .............


Layout "default" not found - joomla

last time we reach up to view stage. But there also we face 'Layout "default" not found' error.
let see to solve this

see our folder structure

On here u need to make a new folder call "tmpl" and also make new file "default.php"

then it show as follows

can u think wt are the codes need to store "default.php"?

yes see following code

No need any code to here to see our final out put ................ he he he

see the final out put............ and enjoy with it. First step is successfully finished


500 - An error has occurred - joomla

Do u remember last time error? if not ple go here

"View not found [name, type, prefix]: lanka1s,html,lanka1sView" wt is this? this say, there is not 'view' page on this component. So today we can lean about 'how to make a view pages'

MVC or module view component, Now we are in view stage, For this we need new folder to store template files or view pages.

Ple make a new folder call "views" under that", again make a new folder call "lanka1s" and "view.html.php" file on there

see our folder structure

see the content of "view.html.php"


* Lanka1 default controller
* @package Joomla.component
* @subpackage Components
* @link http://inetlanka.com
* @license GNU/GPL
* @auth inetlanka web team - [ info@inetlanka.com / wapnishantha@gmail.com ]

// No direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

jimport( 'joomla.application.component.view' );

* lanka1 View
* @package Joomla.component
* @subpackage Components
class Lanka1sViewLanka1s extends JView
* lanka1 view display method
* @return void
function display($tpl = null)
JToolBarHelper::title( JText::_( 'Lanka1' ), 'generic.png' );


ooooop's he he ................ can u see there is another error

wt are the new things of this code
1.JToolBarHelper::title( JText::_( 'Lanka1' ), 'generic.png' );
this is use to set the TITLE of the page and can use existing image to take a handy look :D

On this stage we do not need this but in future we need to delete items

On this stage we do not need this but in future we need to edit items

4. JToolBarHelper::addNewX()
On this stage we do not need this but in future we need to add items

ple connect with next lesson to solve above issue