How to set the Joomla mailer settings with Godaddy shared hosting

It is sad that Godaddy doesn't allow shared hosting to use 3rd party SMTP service,if you select SMTP mailer then you will get nothing but errors.But sendmail is enabled in Godaddy,now let's see the working settings in Joomla.

 

Read more: How to set the Joomla mailer settings with Godaddy shared hosting

How to solve to problem "Error building Admin Menus" when install extensions

Sometimes you may get the error notice as

Another menu item with the same parent has this alias Error building Admin Menus

when trying to install Joomla extensions,the extension is  installed succesfully but could not find the admin menu.

Here is the solution:

Firstly,uncompress the extension and open the manifest(xml file),find the menu label under <administration> as (just for example)

<menu img="..EXTENSION.png" view="items">COM_EXTENSION</menu> 

remember COM_EXTENSION here.

Secondly,Login to your database,then go to the table #__menu,and try to find the line where alias named as "COM_EXTENSION" then delete.

 Finally,install the extension again and every thing will be right!

 

 

 

This email address is being protected from spambots. You need JavaScript enabled to view it.

When I tried to create a donate module in my website,I just paste the codes generated from paypal in Custom HTML and found the error occur when click the donate botton.I got the clue from the source code that the email address within codes was cloaked "This email address is being protected from spambots." How to avoid the unwilling protection? Here are three simple solutions:

  1. If you are in Custom HTML module.Simpy set the option Prepare Content to No.
  2. Add the code  in your ariticle and it will disable the cloaking for this article.
  3. Disable the Email Cloaking plugin in plugin manager.

How to get rid of the filtering in article

Sometimes I just want to show some codes in my article,just like

 

<script language="javascript"><!--
some codes here...
// --></script>
 

Unfortunately,the "script" was always filtered after I clicked the save button every time.I thought it was the editor (tinymce) filtered it,but the codes were still filtered even I set the default editor to None in global configuration.

Finally I found the reason,the codes were filtered by Joomla for security reason,so how to get rid of the filtering?

Go to Article Manager and click the Options then switch to Text Filters.

There is a blacklist for every group by default,set the Filters Type to No Filtering instead of Black List then save.

 

怎样让jQuery和其它js库共存

有时候需要同时使用jQuery和其它javascript,比如在joomla中默认的是motools,但很多人还是希 望能够使用jQuery,如果直接调用的话,由于两个库都使用了$作为简写,会造成程序冲突的情况,那么 ,怎样让jQuery和其它javascript库共存呢?有以下三种方法(均来自于官方网站):

1.覆盖$ 函数,使用jQuery代替$

在jQuery和其它库已经加载之后,可以调用jQuery.noConflict ().


 
   <script src="prototype.js"></script>
   <script src="jquery.js"></script>
   <script type="text/javascript"><!--
     jQuery.noConflict();
 
     // Use jQuery via jQuery(...)
     jQuery(document).ready(function(){
       jQuery("div").hide();
     });
 
     // Use Prototype with $(...), etc.
     $('someid').hide();
 
// --></script>
 
 
 
 

这样会使$恢复到原始库,在下面的代码中使用"jQuery",而不是"$"

2.使用简称来代替 $

 
 
   <script src="prototype.js"></script>
   <script src="jquery.js"></script>
   <script type="text/javascript"><!--
     var $j = jQuery.noConflict();
 
     // Use jQuery via $j(...)
     $j(document).ready(function(){
       $j("div").hide();
     });
 
     // Use Prototype with $(...), etc.
     $('someid').hide();
 
// --></script>
 
 
 

这样的话相当于$j代替$,是比较接近的一种用法了,当然可以使用其它自己喜欢的字符,比如 $J,$jq等等。

3.希望保留$

如果确实希望保留$而不是使用其它名称来代替,还有一种方 法。

 <html>
 <head>
   <script src="prototype.js"></script>
   <script src="jquery.js"></script>
   <script>
     jQuery.noConflict();
 
     // Put all your code in your document ready area
     jQuery(document).ready(function($){
       // Do jQuery stuff using $
       $("div").hide();
     });
 
     // Use Prototype with $(...), etc.
     $('someid').hide();
   </script>
 </head>
 <body></body>
 </html>