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  ,