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
Steps
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'
http://extensions.joomla.org/extensions/contacts-and-feedback/contact-details/9264
wAp
Tuesday, May 25, 2010
Sunday, May 23, 2010
1 simple example joomla component
Already we have discussed about "How to make a Joomla component".
lanka1.php index.html controller.php views/lanka1s/view.html.php views/lanka1s/tmpl/default.php
New install.xml file
wAp
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">
<name>lanka1</name>
<!-- The following elements are optional and free of formatting conttraints -->
<creationDate>2009/10/24 </creationDate>
<author>wapnishantha</author>
<authorEmail>info@inetlanka.com</authorEmail>
<authorUrl>http://www.inetlanka.com</authorUrl>
<copyright>com_lanka1 2009</copyright>
<license>GNU/GPL</license>
<!-- The version string is recorded in the components table -->
<version>1.0.0</version>
<!-- The description is optional and defaults to the name -->
<description>
<![CDATA[
This component is a Flight System. <br />
]]>
</description>
<!-- Site Main File Copy Section -->
<files folder="site">
<filename>index.html</filename>
</files>
<administration>
<!-- Administration Menu Section -->
<menu>com_lanka</menu>
<!-- 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 -->
<filename>lanka1.html</filename>
<filename>index.html</filename>
<filename>controller.html</filename>
<filename>views/lanka1s/view.html.php</filename>
<filename>views/lanka1s/tmpl/default.php</filename>
</files>
</administration>
</install>
wAp
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
language->en-GB->en-GB.com_google.ini
And change "Thanks for you !" with ur desire ...........
2. Easy way to developers
find the file "controller.php" from
components->com_google->controller.php
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 .............
wAp
yes it's very easy
there are 2 method
1. This is right way
find the "en-GB.com_google.ini" from
language->en-GB->en-GB.com_google.ini
And change "Thanks for you !" with ur desire ...........
2. Easy way to developers
find the file "controller.php" from
components->com_google->controller.php
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 .............
wAp
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
administrator->components->com_lanka1->views->lanka1s->
On here u need to make a new folder call "tmpl" and also make new file "default.php"
then it show as follows
administrator->components->com_lanka1->views->lanka1s->tmpl->default.php
can u think wt are the codes need to store "default.php"?
yes see following code
see the final out put............ and enjoy with it. First step is successfully finished

wAp
let see to solve this
see our folder structure
administrator->components->com_lanka1->views->lanka1s->
On here u need to make a new folder call "tmpl" and also make new file "default.php"
then it show as follows
administrator->components->com_lanka1->views->lanka1s->tmpl->default.php
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

wAp
500 - An error has occurred - joomla
Do u remember last time error? if not ple go here
ooooop's he he ................ can u see there is another error

ple connect with next lesson to solve above issue
wAp
"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
administrator->components->com_lanka1->views->lanka1s->view.html.php
see the content of "view.html.php"
<?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' );
JToolBarHelper::deleteList();
JToolBarHelper::editListX();
JToolBarHelper::addNewX();
parent::display($tpl);
}
}
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
2.JToolBarHelper::deleteList();
On this stage we do not need this but in future we need to delete items
3.JToolBarHelper::editListX();
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
wAp
Subscribe to:
Comments (Atom)