Skip to main content

Posts

Showing posts from 2008

How to Host Joomla Based Website in web-server or localhost(use if u want to create backup in another computer)

1-> upload all the files related to your website to your webserver or local server(for backup) 2-> take database dump for website from your mysql server by using phpMyAdmin in your localhost through export option 3->create the database with relavant name which best suits to represent the website in your mysql server and import the database backup file . 4->Configure : Up to now, if you try to access your website, you will probably be given an error. This is because the configuration.php file you had on your local server does not contain the information related to your hosting account details. As stated previously, if your host has already installed Joomla for you, you should leave the configuration.php file created unchanged. Otherwise you will need to change the following critical details: Joomla 1.5 var $host = 'localhost'; - this is the address of the server which is hosting your MySQL database var $user = 'sqluser...

Introduction to Joomla! Api’s

Joomla! provides us with some functions so, you can add the Javascript in the correct place, this functions can be called from anywhere in the code and they will not break compatibility with the XHTML standard. These functions are addScriptDeclaration and addScript they allow us to insert Javascript code and insert a Javascript (.js) file. Adding Javascript using the addScript function: If you will like to add a external .js file you will use the addScript function and pass as a argument the path and name of the .js file you should also specify the whole path of your Javascript file by using the JURI:base function. In this case, the hello.js file is in the root folder of the Joomla! installation. In a template you will call it the following way using the this variable, because the template is called by the document class where the addScript function is located. Note: we add JURI::base() before the hello.js to prefix the path of the folder where Joomla! resides and $this->...

Create or Change Templates

Every Template maintain some structure while designing according to joomla .Joomla made some conditions regarding this Contents templateDetails.xml: it is a xml file which contains all the details about template like Template name , description,author,file names which contains while installing template this details helps to install the template details .every template must include templateDetails.xml file after installing template not recommended to change the values in xml file . Images(folder): it contains all the image files which are use full for designing the template CSS: this folder contains all the styles for template. [b]template_thumbnail.png:[b] it is used to display the thumbnail view of the template ..we find this view in template manager on mouse over the templates. index.php: it contains all the template design code . The backend support for designing the template is php . Mostly every page starts with: Code: defined( '_JEXEC' ) or ...