Skip to content

Instantly share code, notes, and snippets.

Sivaprabu Ganesan gsivaprabu

Block or report user

Report or block gsivaprabu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@gsivaprabu
gsivaprabu / gist:9640710
Last active Aug 29, 2015
Joomla registration form add new fields
View gist:9640710
===========================================================
Find the below paths:-
/administrator/language/en-GB/en-GB.plg_user_profile.ini
/plugins/user/profile/profile.xml
/plugins/user/profile/profiles/profile.xml
===========================================================
@gsivaprabu
gsivaprabu / dateformatchange.php
Last active Dec 12, 2015
Changing the date format using php
View dateformatchange.php
<?php
echo date("Y M d", strtotime("20130222"));
echo "<br/><br/>";
echo date("Y/m/d", strtotime("20130222"));
?>
@gsivaprabu
gsivaprabu / dates.php
Created Feb 12, 2013
Change the date format and store in DB
View dates.php
<?php
$conn=mysql_connect("localhost","root","kirti123") ;
if(!$conn)
{
die('connection Error' . mysql_error());
}
// DATE CONVERSION
@gsivaprabu
gsivaprabu / default.php
Created Feb 27, 2013
How to how PRODUCT-SKU in product page of Virtuemart 2 in Joomla
View default.php
<?php
// Manufacturer of the Product
if (VmConfig::get('show_manufacturers', 1) && !empty($this->product->virtuemart_manufacturer_id)) {
echo $this->loadTemplate('manufacturer');
}
?>
@gsivaprabu
gsivaprabu / default-replace.php
Created Feb 27, 2013
Show SKU Field in product page of Virtuemart 2
View default-replace.php
<div class="skuNumber"><br />
<?php echo JText::_('COM_VIRTUEMART_CART_SKU') ?>: <?php echo $this->product->product_sku; ?>
</div>
@gsivaprabu
gsivaprabu / splitYoutubeLink.php
Last active Dec 18, 2015
Separate the YouTube video link from a given paragraph...
View splitYoutubeLink.php
@gsivaprabu
gsivaprabu / MysqliEmpty.php
Created Aug 15, 2013
mysqli returns empty result - how to display ?
View MysqliEmpty.php
<?php
$q2 = "SELECT FIELD FROM TABLENAME WHERE ID = 1;";
$con = new mysqli($server, $user, $pass);
if (mysqli_connect_errno())
{
$error = mysqli_connect_error();
exit();
}
else
View 1-Declaring Variables.js
<!DOCTYPE html>
<html>
<head>
<title>Declaring Variables</title>
</head>
<body>
<script>
var myGlobalVariableOne = "My Global Variable One";
View 2-Hiding global Variables with local variables of the same name.js
<!DOCTYPE html>
<html>
<head>
<title>Hiding global Variables with local variables of the same name</title>
</head>
<body>
<script>
var myVar = "Global Variable";
View 3-Scope Chain-I.js
<!DOCTYPE html>
<html>
<head>
<title>Scope Chain</title>
</head>
<p>
<ul>
<li>When you have nested functions you can create a scope 'Chain'</li>
<li>The browser travels up this chain when looking for a variables value</li>
You can’t perform that action at this time.