Tuesday, September 25, 2012

JQuery conflicts with other libraries

JQuery conflicts with other libraries


When JQuery conflicts with other libraries follow this steps in the following code:


1- Attach jquery library:

<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>

2- Attatch the other library (such as “Prototype”):

<script src="lib-path/prototype.js" type="text/javascript"></script>

3- Replace JQuery start symbol “$” with other by using “noConflict” JQuery function:

<script type="text/javascript">
var $j = jQuery.noConflict();
// Use jQuery via $j(...)
$j(document).ready(function(){
$j("#divstart").click(function() {
$j(".content").fadeOut(100);
return false;
});
});
</script>

Thanks,,

How you reset an administrator password?

How you reset an administrator password?


1. Use a MySQL utility such as phpMyAdmin or MySQL Query Browser .
2. Open the correct database and select the table, jos_users . (Change default table prefix, 'jos_' to your table prefix if it is different.)
3. Select the record (or table row) for your administrator account (The first admin account, created by default, has an id of 62).
4. Copy and paste a known MD5 hash, such as one of the samples provided with this FAQ, into the password field. Warning: You must paste the password's hash value, not the password itself. You can use any of the following password = hash pairs, or create your own using one of the tools listed below.

password = "MD5 hash of password"
------------------------------------------------------
admin = 21232f297a57a5a743894a0e4a801fc3
secret = 5ebe2294ecd0e0f08eab7690d2a6ee69
OU812 = 7441de5382cf4fecbaa9a8c538e76783

5. Save the record.
6. Point your browser to your site and log as the administrator using your new password.
7. Once logged in, Joomla will convert your md5 hash to a salted md5 hash, but you should change the password again to one that only you know.