Wednesday, May 16, 2012

Change joomla site color on reload or on page change

Hello Guys,

Create some .css files for colors you want.

if you want orange then create one css file orange.css
same way for all colors you want.

Sequence color change

see below code.

Saturday, May 12, 2012

Check Validation using Javascript


Hello,

I face the many problem when I validate form using javascript. here i share you a validation functions for you guys...


// empty check validation
function check_empty(text) {
   if (text == null || text == "" || text == "0.00")
      return false;
   return true;
}

View Joomla Positions

Hello,

If you want to view joomla template positions of any of the sites then just type ?tp=1 in the end of the domain name.
For Example.

www.joomlasite.com/?tp=1
www.joomlasite.com/index.php?tp=1

joomla positions are looks like the below image.



Cheers...

Monday, April 30, 2012

Create collapsible content area in joomla


open selected template index.php file and put below code where you want to collapse div.

<div id="content">
     <?php if($this->countModules('content_right')) : ?>
       <div id="content_left"><jdoc:include type="message" /><jdoc:include type="component" /></div>
     <?php elseif(!$this->countModules(' content_right ')) : ?>
       <div id="content_full"><jdoc:include type="message" /><jdoc:include type="component" /></div>
     <?php endif; ?>

Friday, April 27, 2012

Some Important syntax of Joomla

Here are the some codes to help the joomla developer..


login user details 


$user =& JFactory::getUser();
echo $user->id;
echo $user->username;
echo $user->name;
echo $user->email;
echo $user->usertype;
echo $user->guest;
echo $user->get('aid'); // access Guest 0, register 1