Cyprich.com

Occasionally Relevant Insights from a Software Builder

By

How to Use the “No Follow” HTML Attribute

The major search engines (Google, MSN, and Yahoo!) use a common HTML attribute for adjusting SEO rankings. When these search engines see the No Follow attribute in a hyperlink, they will exclude this link from its indexing and statistics gathering. Contrary to popular opinion, the No Follow attribute will not prevent robots from following the link, its mainly used to prevent search engine from adjusting a web site’s rank with a link that the owner does not want referenced.

You can make any link No Follow by inserting the attribute in the anchor tag:

<a href="www.website.com" rel="nofollow">website</a>

If you want to make all links No Follow on a page, then use the attribute in a meta tag in the <head></head> section of a web site:

<meta name="robots" content="noindex, nofollow">

By

Modify the Copyright Information in a Joomla Template

There is no obvious way to modify the copyright information that appears in the footer area of a Joomla template. You can set Enabled to off for the Footer module (mod_footer) in the Module Manager, which will remove the copyright information.

Editing the Joomla Template

If you would like to modify the copyright information, one method is to edit the index.php file for the template. Find the footer code in the template, which will be similar to

<jdoc:include type="modules" name="footer" />

You can delete this code and enter your own copyright information. The copyright symbol must be entered as &copy; instead of cutting and pasting the copyright symbol from a font file.

Modifying the Footer Language File

A better way to modify the copyright information, which will work across any Joomla template, is to modify en-GB.mod_footer.ini file found in the languages/en-GB folder. The file and folder name are language dependent, so they will be named different from languages other than English.

The section to modify is the line with

FOOTER_LINE1=Copyright &#169; %date% %sitename%. All Rights Reserved.

Copy this line and comment out the original by putting a # character at its beginning. I modified this line by placing the starting year of my company in it, i.e.

FOOTER_LINE1=Copyright &#169; 1998-%date% %sitename%. All Rights Reserved.

You only have 2 footer lines to modify text. If you need to modify more, then you should modify the Joomla template directly, or create a mod_custom module to appear in the footer module.

By

Fixing Joomla’s “Unable to find install package”

While trying to install a Joomla component today, it returned an error message saying “Unable to find install package.” I tried installing the same component in another Joomla site of mine and it worked, so now it was time to look for differences between the two sites to determine what was causing the problem.

After some searching and experimenting, I found the difference in the configuration.php file which is located in the root of the web site. Bad FTP settings were causing the component to not install. The way to get around this problem is to turn off FTP and clear all of the variables, as follows:

var $ftp_enable = ‘0’;
var $ftp_host = ”;
var $ftp_port = ”;
var $ftp_user = ”;
var $ftp_pass = ”;
var $ftp_root = ”;

After doing this, the component installed without any problems.