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. 

The CSS font shorthand rule

When styling fonts with CSS you may be doing this:

font-weight: bold;
font-style: italic;
font-variant: small-caps;
font-size: 1em;
line-height: 1.5em;
font-family: verdana,sans-serif
And thats a lot of code to type and the CSS file gets big with if you have a lot of font rules!
There's no need though as you can use this CSS shorthand property:
font: bold italic small-caps 1em/1.5em verdana,sans-serif
Much better! Just a few of words of warning: This CSS shorthand version will only work if you're specifying both the font-size and the font-family. The font-family command must always be at the very end of this shorthand command, and font-size must come directly before this. Also, if you don't specify the font-weight, font-style, or font-variant then these values will automatically default to a value of normal, so do bear this in mind too.
This is useful when you want to make your Joomla templates load faster, you can reduce the file size of your CSS files considerably by using this method.

Joomla Contact Us Form Issue - PHPMAILER_RECIPIENTS_FAILED

PHPMAILER_RECIPIENTS_FAILED

Some times this error occures because default contact form tries to use users email address as the FROM address. Some hosts doesn't allow this to stop spam.

So we need to change the FROM address to the Joomla configurations FROM address in the line 162 of file components/com_contact/controller.php.

After that , for convinience, we can add users email as  REPLY TO address.


alter:

line 162 of file components/com_contact/controller.php.

 

Code:
$mail->setSender( array( $email, $name ) );



to:

Code:
$mail->setSender( array( $MailFrom, $name ) );
$mail->addReplyTo( array( $email, $name ) );

 

 There may be other reasons to cause this error , this is just a one case and this case is hard to find since the mail error doesnt generate much information.

 

Database Error: Unable to connect to the database:Could not connect to database

You should check the configuration.php file of your Joomla application and make sure the following lines are correct:

var $dbtype = 'mysql';
var $host = 'localhost';
var $user = 'user_name';
var $password = 'YourPassword';
var $db = 'database_name';
var $dbprefix = 'jos_';

You should make sure you are using the correct MySQL username and database in your configuration.php file. You can use the MySQL Databases tool in your cPanel in order to check the correct username and database for your Joomla. In addition, make sure that your MySQL username is added to your database. This issue can also be caused by errors within the database itself. In such cases you can try restoring your Joomla database.

 

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