Asliman.Com

My Personal WebSite: My Profile, Portfolio, Contact me and some Programming Posts

How do you recover JOOMLA admin password by Changing it from the Database

This requires that you have access to the MySQL database using phpMyAdmin or another client.

  1. Navigate to phpMyAdmin and select the database for the Joomla! site in the left-hand drop-down list box. This will show the database tables on the left side of the screen.
  2. Click on the table “jos_users” in the list of tables (note: you may have a prefix that is not jos_, simply go to the _users table for your prefix).
  3. Click on the “Browse” button in the top toolbar. This will show all of the users that are set up for this site.
  4. Find the user whose password you want to change and press the Edit icon for this row.
  5. A form will display that allows you to edit the password field. Copy the valued2064d358136996bd22421584a7cb33e:trd7TvKHx6dMeoMmBVxYmg0vuXEA4199
  6. into the password field and press the Go button. phpMyAdmin should display the message “Affected rows: 1″. At this point, the password should be changed to “secret”.
  7. Log in with this user and password and change the password of this user to a secure value. Check all of the users using the User Manager to make sure they are legitimate. If you have been hacked, you may want to change all of the passwords on the site.

Read more from JOOMLA Docs

No Comments »

Force Files to Download Instead of Showing Up in the Browser

 

1- Put this code in .htaccess file in your script

<FilesMatch ".(?i:doc|odf|pdf|rtf|txt)$">
Header set Content-Disposition attachment
</FilesMatch>

2- Change the extensions to what you need to be downloaded

1 Comment »

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,,

No Comments »