Joomla Installation
Step 1: Download from www.joomla.com.
Step 2: Extract the file and put it in xamp/htdocs.
Ex : E:\xampp\htdocs\PHP\Joomla\
Step 3: Run on browser Ex: http://localhost:81\PHP\Joomla\
Step 4: Provide necessary credentials.
Step 5: End
Template Creation
Step 0: Download
Step 1: Choose any template.
Step 2: Open “templateDetails.xml”
Change Name: <name>jsnoomla</name>
Comment all the tages except below tags under “<files>”
<filename>index.php</filename>
<filename>templateDetails.xml</filename>
<filename>template_thumbnail.png</filename>
<filename>params.ini</filename>
Step 3: Replace all the code in index.php with the HTML given by the designer.
Step 4: Change the CSS link tag and image path according to the folder structure
Ex : <link rel="stylesheet" type="text/css" href="templates/jsnjoomla/css/docstyle.css"/>.
Ex : templates/jsnjoomla/images/image1.jpg"/>.
Home | Services | About Us | Contact Us
Menu creation
Step 1: Open joomla administratoràExtensionsàModuleManager, check the position : Ex:“left”
Step 2: Set name as the position name i.e “left”<jdoc:include type="modules" name="user3" />
Step 3: ContentàArticleManageràNewàServices
Title : Services
Alias : Services
Section : uncategorized
Category : uncategorized
Parameters(Advanced):Set the required
Step 4: Go to MenusàMenuManageràNewàServicesàArticlesàArticle LayoutàSelect
articleà”Services”
Step 7: Follow Choose any template.
Step 8: Choose any template.
Step 9: Choose any template.
Step 10: Choose any template.
Step 11: Choose any template.
Sub Menu creation
Step 1 : Download from the http://extensions.joomla.org/
Step 2 : AdministratoràExtensionsàInstall/UninstallàBrowseràUploadand Install.
To make default selected Menu css:
.indentmenu .active a{ /** currently selected menu item **/
color: #8d6701;
background-repeat: no-repeat;
height: 20px;
background-position: center top;
background:url(../images/over_bg.jpg) repeat-x;
padding-top: 8px;
}
Module addition
Step 1 : Download from the http://extensions.joomla.org/
Step 2 : AdministratoràExtensionsàInstall/UninstallàBrowseràUploadand Install.
Step 3 : AdministratoràExtensionsàModuleManageràModuleà
Enabled=YesàPosition=name
Step 3 : Choose any template.
Component Creation Query
INSERT INTO `jiinga`.`jos_components` (`id`, `name`, `link`, `menuid`, `parent`, `admin_menu_link`, `admin_menu_alt`, `option`, `ordering`, `admin_menu_img`, `iscore`, `params`, `enabled`) VALUES (NULL, 'oauth', 'option=com_oauth', '0', '0', 'option=com_oauth', 'Manage Oauth', 'com_oauth', '0', 'js/ThemeOffice/component.png', '0', '', '1');
Using AJAX
Application Page : onclick="xmlhttpPost(\'ajax.php\',27,'.$result->id.')"
Root folder /as defined: ajax.php : if($_REQUEST['TEMP']==27){------ldgkdlf---;}
Root folder /as defined\ ajaxtabs \ajaxtabs.js: if(temp== 27){qstr='TEMP='+temp+'&ID='+s1;};
Administrator
To change Admin Image :
Left Image :\xampp\htdocs\PHP\jiinga\administrator\templates\khepri\images\h_green\ j_header_left.png
Middle Image :\xampp\htdocs\PHP\jiinga\administrator\templates\khepri\images\h_green\j_header_middle.png
Right Image :\xampp\htdocs\PHP\jiinga\administrator\templates\khepri\images\h_green\j_header_right.png
To Remove SiteName, Version Number, and Copyright at the bottom:
Line numbers are approximate, so find with the text
xampp\htdocs\PHP\jiinga\administrator\templates\khepri\cpanel.php
Line No 50 : <span class="version"><?php //echo JText::_('Version') ?> <?php //echo JVERSION; ?></span>
Line No 51 : <span class="title"><?php //echo $this->params->get('showSiteName') ? $mainframe->getCfg( 'sitename' ) : JText::_('Administration'); ?></span>
Line No 103 : <a href="http://www.joomla.org" target="_blank">Joomla!</a>
Line No 104 : echo JText::_('ISFREESOFTWARE')
xampp\htdocs\PHP\jiinga\administrator\templates\khepri\login.php
Line No 66 : To change Joomla!Administration Login text :<h1><?php echo JText::_('Site Name! Administration Login') ?></h1>
Line No 103 : <a href="http://www.joomla.org" target="_blank">Joomla!</a>
Line No 104 : echo JText::_('ISFREESOFTWARE')
xampp\htdocs\PHP\jiinga\administrator\templates\khepri\index.php
Line No 50 : <span class="version"><?php //echo JText::_('Version') ?> <?php //echo JVERSION; ?></span>
Line No 51 : <span class="title"><?php //echo $this->params->get('showSiteName') ? $mainframe->getCfg( 'sitename' ) : JText::_('Administration'); ?></span>
Line No 103 : <a href="http://www.joomla.org" target="_blank">Joomla!</a>
Line No 104 : echo JText::_('ISFREESOFTWARE')
To change favicon
xampp\htdocs\PHP\jiinga\administrator\templates\khepri\
xampp\htdocs\PHP\jiinga\templates\templatename\
Integration CK Forms for FeedBackForm (Floating)
Add the component “com_ckforms”
Go to adminàCreate Fields with the type Textarea or Button etc.
Create Another Field for Feedback message.
Add feedback.css in template/templatename/css/
Add the below tag after body start tag in Template/index.php and change as per requirement
<div id="feedback-side-hugger" onclick="window.location.replace('index.php?option=com_ckforms&view=ckforms&id=1&Itemid=9')"></div>
Provide the path for css file
Or
Copy and paste “com_ckforms” in both admin and front end correspondingly.
Run the below query to create row in components table which will show at admin components and change the DBName as per yours
Query : INSERT INTO `jos_components` (`id`, `name`, `link`, `menuid`, `parent`, `admin_menu_link`, `admin_menu_alt`, `option`, `ordering`, `admin_menu_img`, `iscore`, `params`, `enabled`) VALUES (NULL, 'Feedback', 'option=com_ckforms', '0', '0', 'option=com_ckforms', 'Feedback', 'com_ckforms', '0', 'js/ThemeOffice/component.png', '0', '', '1');
Replace the following Images with yours
administrator\components\com_ckforms\images\logo-menu.png
administrator\components\com_ckforms\images\logo-banner.png
Import “ckforms.sql” which will create required tables in the db
,(case id when 39 then 1 else 0 end) sortTemp
Twitter Board (Left side)
Add the below tag just before </body> in index.php
<div id="dialog" title="Jiinga"></div>
<script src = "http://tweetboard.com/tb.js?v=1.0&user=jiings" type="text/javascript"></script>
DataBase
Two places of connection string
E:\xampp\htdocs\PHP\PROJECT\configuration.php
One more will be within the project as per the creation by the developer.
To get logged in User ID
$checkuser = &JFactory::getUser();
$UID = $checkuser->get('id');
Twitter Widget Customizing
<script src="http://widgets.twimg.com/j/2/widget.js"></script>
Removing this path from the gadget script, save as your JS file provide the new path.
To remove top Row of Gadget :
To remove bottom Row of Gadget :
Joomla User Related
Joomla User Checking Related :http://docs.joomla.org/Accessing_the_current_user_object
User Creation By Inserting Into Tables
http://forum.joomla.org/viewtopic.php?p=1619326
To create a user we need to insert into :
1. fg_users
2. fg_comprofiler (userID is the foreign key of the above fg_users)
3. core_acl_aro
4. _core_acl_groups_aro_map (aro id is the foreign key for above core_acl_aro)
AutoLogin Joomla
<?php defined('_JEXEC') or die('Restricted access');
$usersipass['username'] = 'admin';
$usersipass['password'] = 'cpadmin1';
$mainframe->login($usersipass);
$mainframe->redirect( 'index.php' );
?>
Integration Of Gigya
1. Create an account with Gigya.com
2. Login with twitter/facebook etc.
3. GigyaàSettingsàProviderDomainàGet API
4. Try for code in Google : http://wiki.gigya.com/040_Demos/010_Getting_user_information
Twitter advanced search builds the search string:
All of these words : sachin india
This exact phrase : "sachin"
Any of these words : match OR live
None of these words : -pakistan
This hashtag : #sachin
Not included in search to calculate number of characters
Written in : in English
From this person : from:ShreyanshS
To this person : to:ShreyanshS
Referencing this person : @ShreyanshS
Near this place : near:India
Within this distance : within:15mi or km
Since this date : since:2010-04-12
Until this date : until:2010-04-14
With positive attitude :) : :)
With negative attitude :( : :(
Asking a question ? : ?
Containing links : filter:links
Include retweets : include:retweets
And finally the query : sachin india "sachin" match OR live -pakistan #sachin from:ShreyanshS to:ShreyanshS @ShreyanshS since:2010-04-12 until:2010-04-14 near:India within:15mi :) :( ? filter:links include:retweets in English
URL : http://search.twitter.com/search?q=&ands=sachin+india&phrase=jsn+soft&ors=micro+soft¬s=pak&tag=jsn&lang=ar&from=jsn&to=soft&ref=surya&near=India&within=15&units=mi&since=2010-04-13&until=2010-04-15&tude[]=%3A%29&tude[]=%3A%28&tude[]=%3F&filter[]=links&include[]=retweets&rpp=15
Joomla Calendar
JHTML::_('behavior.calendar');
JHTML::_('calendar',$row->rota_date, 'rota_date', 'rota_date',$format = '%d-%m-%Y',array('class'=>'inputbox', 'size'=>'25', 'maxlength'=>'19'));
Place the below tag where you want to display calendar box
<input type="text" name="rota_date" id="rota_date" />
To Include Page Title
$document = JFactory::getDocument();
$document->setTitle('Portfolio - Web Design Portfolio for eCommerce Website Design - Softforce Consultants');
Session Creation Out Of Joomla
session_start();
define( '_JEXEC', 1 );
define('JPATH_BASE', dirname(__FILE__) );
define( 'DS', DIRECTORY_SEPARATOR );
require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );
require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );
$mainframe =& JFactory::getApplication('site');
$mainframe->initialise();
$session =& JFactory::getSession();
//$session->set('security_code', $code);
if(isset($_POST['Login'])){
if($_POST['username']=='financeguru' && $_POST['password']=='Finance#01'){
$session->set('ALLOW', 'ALLOW');
//echo $session->get('ALLOW');exit;
$redirect= "http://".$_SERVER['HTTP_HOST'].'/index.php';
echo '<script language="javascript" type="text/javascript">window.location.replace(\''.$redirect.'\');</script>';
// header("Location:index.php");
}
}
Search Engine Optimization (SEO)
Component “com_sh404SEF-15_1.0.20_Beta_build_237.joomla1.5.x.zip” need to be installed, this automatically works for the URL that we give in joomla like for Menus.
But this component will not be applied for the URL we givn in PHP code.
For that we need to do like below.
Search engine follows certains rules, particularly with URL the regular URL must be changed :
Regular URL : index.php?option=com_content&view=article&id=99&Itemid=155
SEO URL : index.php/component/content/article/?id=99&Itemid=155
To enable SEO in Joomla
Administrator/site/Global Configuration/Right side "Search Engine Friendly URLs" - Yes
To Change Articles Global Configuration like Hiding authorname, Hiding PDF Icon, Hiding Print Icon etc.
Administrator/Article Manager/Parameters
Change according to requirement that will effect all the artciles by default.