Vijay Singh

A Blog by DotJoomla

  • Home
    Home This is where you can find all the blog posts throughout the site.
  • Categories
    Categories Displays a list of categories from this blog.
  • Tags
    Tags Displays a list of tags that have been used in the blog.
Vijay Singh

Vijay Singh

Vijay Singh is a web Developer with vast experience in the field. Has developed hundreds of websites. He is also a hobbiest blogger. He writes blogs when he is free ( not usually though ).

Posted by on in Joomla

joomla adminMany of us face the issue of forgot password of joomla administrator. The password cannot be reset suing the 'Forgot password' link on front-end of website. We need to reset it from database. I am listing here 3 methods to reset or recover joomla admin password.

Method I :- Using simple update SQL query.

Step 1 - Navigate to phpMyAdmin and select the database of the joomla wesbite.

Continue reading
Hits: 3549 0 Comments

Posted by on in Joomla

date formatMost of us have changed the date format either by changing directly in the files through over-riding or by changing in the language file. But there is another and better way to do this. That is through language manager, yes you heard right its language manager.

Here is how to do it.

Continue reading
Hits: 3096 0 Comments
0

Posted by on in Web Development

Font Awesome gives you scalable vector icons that can instantly be customized — size, color, drop shadow, and anything that can be done with the power of CSS

Features of Font Awesome

 One Font, 369 Icons

In a single collection, Font Awesome is a pictographic language of web-related actions.

 No JavaScript Required

Fewer compatibility concerns because Font Awesome doesn't require JavaScript.

 Infinite Scalability

Scalable vector graphics means every icon looks awesome at any size.

 Free, as in Speech

Font Awesome is completely free for commercial use.

Continue reading
Hits: 5081 0 Comments
0

I happened to came across an issue in the joomla version 2.5.14 and it seems like this error was there in all previous versions.
To reproduce the error simply search a keyword with apostrophe(for eg L'Illustration ) in chrome.

This is however working fine in firefox. We need to change some code in the joomla core files to fix the issue unless and until joomla team fixes it in their latest release.

In the file libraries/joomla/environment/uri.php around line 191, comment these line

// Check for quotes in the URL to prevent injections through the Host header
				/*if ($theURI !== str_replace(array("'", '"', '<', '>'), '', $theURI))
				{
					throw new InvalidArgumentException('Invalid URI detected.');
				}*/

And add these lines

$theURI = str_replace(array("'", '"', '<', '>'), array("%27", "%22", "%3C", "%3E"), $theURI);
Continue reading
Hits: 5269 0 Comments
0

Posted by on in Joomla

Here we can see How to hide a menu item, module, content from a logged in user in Joomla 1.6+

Step 1. Go to user manager, create a new user group 'Guest'. Make it a child of Public group.

guest-grp-1

 

Continue reading
Tagged in: Joomla
Hits: 2784 0 Comments
0

Posted by on in Joomla

Many of us have faced the "Invalid token" issue while working on any joomla website.

Joomla tokens were added into joomla as a security feature for forms. Whenever a form was submitted it was also submitted with the form which was checked and validated after submission. If this was missing or incorrect you will get the Invalid token issue.

It was mostly included in the login and registration forms. It has been also added to logout form in recent version of joomla (1.6+).

The reason behind is clear either the token is missing or token is incorrect.

Missing token may relate that it has not been added to the form so simply add the following code will fix the issue.

echo JHTML::_( 'form.token' );

Invalid token is also caused due to any kind of cache being enabled on the website.

One Solution is to make sure sure your Login module is set to "No Cache" . Another thing you might want to check is if your System Page Cache plugin is switched off.

Continue reading
Tagged in: Invalid Tokens
Hits: 3314 0 Comments
0

Posted by on in Joomla

Performance and optimization of a websites is very important aspect. After a website is developed and deployed it must be optimized. So how it can be done? 

Tools to identify

1. Google page speed - This tool analyze the website performance ina very user friendly way. It is available as an extesion for firefox and chrome.

2. Yahoo Yslow - It is available as an extension for both Firefox and chrome to identify the causes and suggestions to optimize the given website.

GZIP

GZip is a method to compress the pages sent to the client by the server. The compression makes the server side work harder, but the compression is effective, and makes the pages much smaller. Enable this option by entering the global configuration in the server tab. In this tab, enable the option for Gzip Page Compression. If the option is not enabled, your Apache server should support it. Consult your hosting service.

Continue reading
Hits: 2261 0 Comments
0

Posted by on in Joomla

Today I face a very strange issue while transferring a website from one server to another. The error was 'No input file specified'. After hours of debugging I found the following helpful and fix the issue

- Remove any #’s if any from RewriteEngine On and RewriteBase from the htaccess file.

Search for Options +FollowSymLinks and add the below right after it.

Options -MultiViews

- Check if the site is normal otherwise follow next step

- Look for any php.ini file and rename it to php5.ini

- If you could not find any php.ini file make a new file using notepad and save it as php5.ini and add following

cgi.fix_pathinfo = 1

memory_limit = 50M

post_max_size = 10M

file_uploads = On

upload_max_filesize = 10M

upload_tmp_dir = /home/content/55/6067155/html/tmp.

Continue reading
Hits: 3319 0 Comments
0

Posted by on in Joomla

Joomla.org has recently released the Joomla 3.0 version. Users on version 2.5 do not need to migrate to Joomla 3.0.

This version boasts the following block-busting features

1. Mobile Ready - A new responsive, mobile device friendly administrator template–Isis– and interface

2. Highly User Friendly – built with the power of Bootstrap responsive framework, along with a touch of the awesome UI/UX work of the Joomla JUX team.

3. Developer tools – Build a Component with Zero CSS, Style a Site with 1 CSS File, jQuery & Mootools Ready.

4. Incorporation of Twitter Bootstrap into a jui media package

5. A simplified 3-step installation process.

6. PostgreSQL Driver. You will be able to run Joomla 3.0 sites using the PostgreSQL database.

7. PHP Memcached Driver.

Continue reading
Tagged in: joomla 3
Hits: 1955 0 Comments
0

This page provides feedback on the process of upgrading or converting a Joomla 1.5 template for use with Joomla 1.6 and later versions from those who have already attempted it. This is intended to be a living document that can be added to as more experience is gained and is likely to be reorganised periodically. If you have encountered a problem when upgrading a template, or if you have any information that you think will help smooth the way for others who will follow then please add your comments initially on the Talk page. We will then collate the information and incorporate it into this page.

Chris Davenport prepared http://docs.joomla.org/skins/monobook/external.png); padding: 0px 13px 0px 0px; background-position: 100% 50%; background-repeat: no-repeat no-repeat; ">slides for a presentation at the JoomlaDay UK 2010 event which explain the changes in templates for Joomla! 1.6.

Template Manifest File

There are important changes to the templateDetails.xml file:

  1. Add the new 1.6 Doctype
  2. Change the <install> tag to <extension> as shown below.
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE install PUBLIC "-//Joomla! 1.6//DTD template 1.0//EN" "http://www.joomla.org/xml/dtd/1.6/template-install.dtd">
<extension version="1.7" type="template" client="site">

Notice the additional new client attribute which is set to site for a front-facing template and administrator for an back-end template.

Be sure to change the closing tag from </install> to </extension>.

Template Parameters

In Joomla! 1.5, 1.6 and later versions, the template parameters are defined in templateDetails.xml.

Whereas in 1.5 parameters are defined as part of the <params> section, and each parameter is defined as a <param>, in 1.6 and later template parameters are contained in the <config> section and treated as a <field> nested within the <fieldset>and <fields> tags, as illustrated below.

<config>
    <fields name="params">
        <fieldset name="basic">
            <field name="" type=" default="" label="" description="">
                <option value="1">On</option>
                <option value="0">Off</option>
            </field>
            <field name="" type="" default="" label="e" description="" />
        </fieldset>
    </fields>
</config>

<fieldset name="basic"> wraps the parameters in a grouping element. Using name="basic" labels that element as "Basic Options" and name="advanced" labels it as "Advanced Options".

The name, type, default, label and description attributes still apply.

Outside of the main template files, you can access these parameters using the JApplication class. Previously, the values of the template parameters were stored in a plain text .ini file. In order to access those values outside of the template you needed to read the ini file and load the data into a JRegistry or JParameters object. Now, the values are stored in the database with other template information. We can load the params by passing the true variable to the getTemplate method of the JApplication object. It can be accessed like this:

$app		=& JFactory::getApplication();
$template	= $app->getTemplate(true);
$params		= $template->params;
$variable	= $params->get('variable');

This will allow you to access the template params in your layout overrides for other components, and modules.

Objects and Methods

Sitename

    http://docs.joomla.org/skins/monobook/bullet.gif); color: rgb(0, 0, 0); font-family: sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); ">
  •  is now $app->getCfg('sitename'); Where $app = JFactory::getApplication();

Error Codes

    http://docs.joomla.org/skins/monobook/bullet.gif); color: rgb(0, 0, 0); font-family: sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); ">
  • $this->error->code is replaced by $this->error->getCode();
  • $this->error->message is replaced by $this->error->getMessage();

Discovery

In some cases your converted template may not be shown in the Template Manager even though all coding appears to be correct. Verify that your template files are installed in the /templates directory. Then run the Discover process as follows.

  1. Go to Administrator > Extensions > Extension Manager > Discover
  2. Click the Discover icon.
  3. If your template appears on the list, select it and then click the Install icon.

Layout Overrides

com_content

If you have used the Beez overrides, or code derived from the Beez overrides, in your 1.5 template, you may encounter a JHtml::icon not supported. File not found. error when migrating the template to Joomla 1.6 and later. To fix this, simply add the following statement near the top of the template html/com_content/article/default.php file:

JHtml::addIncludePath( JPATH_COMPONENT . '/helpers' );

Alternate Method Using a Version 2.5 Template

Start with a basic template that works with a current version of Joomla. For this example, use the Atomic template that is supplied with Joomla 2.5.

  1. Copy the entire /templates/atomic folder to a new folder in the /templates directory.
  2. Rename this new folder. For instance, you might call it mysitename-atomic to designate it as the custom template for this site and adding the reminder that it was derived from the atomic template.
  3. In the new template's index.php file, delete everything between the <body> </body> tags.
  4. Copy and paste everything within the <body> </body> tags from your version 1.5 template to the body of the new template's index.php file.
  5. Delete or rename the template.css file copied from the Atomic template.
  6. Copy the template.css file from the old version 1.5 template.
  7. Update the templateDetails.xml file in the revised template.
    1. Change the <name> entry to match the name of the template folder. It is case-sensitive. If the folder is /templates/mysitename-atomic, the entry in the templateDetails.xml file will be <name>mysitename-atomic</name>.
    2. Replace the <positions> section of the file so that they match the positions used in the index.php file.
    3. Change the other elements as necessary. For instance, you might want to modify the creation date and version number.
  8. Delete images in the /template/image file and add your images.
  9. Delete the lines in the <head> section of the index.php file that load CSS and Javascript files that are not needed
Continue reading
Hits: 1791 0 Comments
0

Blog Archive

Login Form

Who's Online

We have 110 guests and no members online