JoomlaSriLanka | Web Designer in Sri Lanka

lanka web design development joomla blog banner 

In our quest for knowledge and learning new technologies, we do a lot of researching , reading and community activities . Sometimes we find many topic that we think worth sharing for the benefit of our clientsand other web professionals all over the world. Enjoy and participate by commenting and sharing. 

Joomla 1.6 | New Features and Improvements

Now the much awaited Joomla 1.6 is released , lets take a quick look at the new features and improvements over 1.5.

Nested categories, ACL, improved language support & SEO, built-in redirects, template styles, & much more. New features for designers,developersadmins, and webmasters, certain to make you happy!

We at JSL Web Solutions are happy to offer Joomla 1.6 development services and custom Joomla 1.6 templates and 1.6 upgrade services at affordable prices.

Please contact us for a free quote for your new Joomla 1.6 project or to upgrade your existing 1.0.x or 1.5.x websites to latest 1.6 version.

Read more...

Microsoft to support Joomla

Software company Microsoft has signaled its increasing support of open source projects by officially backing one of the web's most popular freely available programs.

The company has signed an agreement to contribute code towards Joomla, a widely used open source content management system.

It's further evidence of a change in attitude at Microsoft, which last year also contributed device driver code to the open source Linux community.

The move means that Microsoft employees can now add to what has already become the second largest PHP application in the world.

Microsoft has also been working on its own open source CMS, known as Orchard and a spokesman said that the company is also involved in 400 additional open source projects.

read more at http://www.bcs.org/server.php?show=conWebDoc.35372

Custom Row Ordering of Fabrik for Joomla forms & tables

Sometimes we need to display records on the front end of the website as a table or a list which is linked to a form that can make inquiries based on the row item selected . For example a list of business opportunities can be displayed on a page which visitors can apply online by clicking on a list item which pops up a form. 

On Joomla environment , there are number of extentions which can help us to implement this function. From those extensions, we have used Fabrik component many time to create special forms funtionality on Joomla websites which saved us lot of time and effort. 

Understanding and using Fabrik is pretty simple , but recently a client requested that he needs to order the rows of a table in a custom order which he decides. When this requirement came , we already has created the form using Fabrik component and it had no facility to implement custom ordering of records.

After little research, we managed to use the Fabriks Form settings to process a custom PHP file just after the data is stored which solved the problem.

Steps are 

  1. Add a row to the fabrik table ( i.e an element) named RowOrder
  2. Create a php file e.g. sort.php in htdocs\veenus\components\com_fabrik\plugins\form\fabrikphp\scripts 
  3. Add the following code to the sort.php

 

<?php
defined('_JEXEC') or die();
try {
$app =& JFactory::getApplication();
$post = JRequest::get('post');
$db = JFactory::getDBO();
$allocationid= JRequest::getVar('jos_Allocations___fabrik_internal_id');
$curroworder= JRequest::getVar('jos_Allocations___RowOrder');
$sqltext = "SELECT * FROM jos_Allocations ORDER BY RowOrder ASC";
$db->setQuery( $sqltext );
$rows=$db->loadObjectList();
$index = 1 ;
foreach($rows as $row ) {
if( $index == $curroworder){ $index++; }
if( $row->fabrik_internal_id != $allocationid ){
$sql = "update jos_Allocations set RowOrder=$index where fabrik_internal_id=$row->fabrik_internal_id";
$db->setQuery($sql);
$db->query();
$index++;
}
}
}
catch(Exception $e)
{
$app->enqueueMessage( JText::_( 'Error Occurred : ' . $e->getMessage() ), 'error' );
}
?>
<?php defined('_JEXEC') or die();try { $app =& JFactory::getApplication(); $post = JRequest::get('post'); $db = JFactory::getDBO(); $allocationid= JRequest::getVar('jos_Allocations___fabrik_internal_id'); $curroworder= JRequest::getVar('jos_Allocations___RowOrder'); $sqltext = "SELECT * FROM jos_Allocations ORDER BY RowOrder ASC"; $db->setQuery( $sqltext ); $rows=$db->loadObjectList(); $index = 1 ;  foreach($rows as $row ) {  if( $index == $curroworder){ $index++; }  if( $row->fabrik_internal_id != $allocationid ){ $sql = "update jos_Allocations set RowOrder=$index where fabrik_internal_id=$row->fabrik_internal_id"; $db->setQuery($sql); $db->query(); $index++; }  }}catch(Exception $e){ $app->enqueueMessage( JText::_( 'Error Occurred : ' . $e->getMessage() ), 'error' );
}?>


4. Setup a submission plugging for the relevent form to execute this php file after the data is stored.

Thats it. :)

 

How to enable or disable JavaScript support in FireFox 2.x /3.x Chrome / Internet explorer / Safari / Opera

To enable JavaScript in Firefox 2.xx or 3.xx series

  1. Open Firefox.
  2. On the Tools menu, click Options.
  3. Click on the Content icon
  4. Check the box next to Enable JavaScript.
  5. Click the Advanced button to open the Advanced JavaScript Options box. 
  6. Check the boxes under Allow scripts to section that you want to allow.
  7. Click OK.
  8. Click OK.

To enable JavaScript in Firefox 1.xx series

  1. Open Firefox.
  2. On the Tools menu, click Options.
  3. Click Web Features in the Options list. 
  4. Under the Web Features section, check the box next to Enable JavaScript.
  5. Click the Advanced button to open the Advanced JavaScript Options box.
  6. Check the boxes under Allow scripts to section that you want to allow.
  7. Click OK.
  8. Click OK.

To enable JavaScript in Microsoft Internet Explorer

  1. Select Internet Options from the browser's Tools menu.
  2. Click the Security tab.
  3. Click Custom Level in Security Level for this Zone.
  4. Scroll down to Scripting, near the bottom of the list.
  5. Under Active Scripting, choose Enable.
  6. Click OK to leave Security Settings. Click OK to leave Internet Options.

To enable JavaScript in Safari

  1. Select Preference from the browser's menu.
  2. Click the Security tab (with the "lock" icon).
  3. Make sure the box next to JavaScript is checked.

To enable JavaScript in Opera

  1. Select Quick Preferences from the browser's Tools menu.
  2. Make sure the checkbox next to Enable JavaScript is checked.

Netscape and Mozilla Suite

  1. Select Preferences from the browser's Edit menu.
  2. Click Advanced on the left side of the dialog box.
  3. Click the Scripts & Plugins subitem under Advanced.
  4. Check the box next to Navigator.
  5. Click the OK to close the Preferences dialog box.

 

Most of Modern Websites uses JavaScript for various porposes in their content.

Examples are to validate user input and animations. 

User JSL NOScript module for Joomla to give a warning to any visitors who has Javascript disabled in their browsers. 

  • JSL NoScript

    JSL NoScript Click here to download 
    Joomla! 1.5 native 2 votes Module

    JSL NoScript is a Joomla 1.5 module to display a message on web browsers that JavaScript is disabled. Helpful when your Joomla template has no noscript warning built in. Displays an optional help link on enabling JavaScript support on many browsers. Configurable height,width, div styles and message. Any comments to make this simple extension more useful are welcome.

    Category: Scripts Type: Non-Commercial

Example : JSL Website when browsed with a browser which has Javascript disabled.

jsl noscript warning sample

 

 

Latest Work UG - New Zealand

uglydumpling.co.nz web design by sri lankan design company for new zealand

 

 

Paradise Vacations : Web Design | Joomla

 

 

paradisevacations1

 

Fly Sri Lanka : Web Design : Joomla

 

 

flysrilanka