Skip to content

Instantly share code, notes, and snippets.

View zukilover's full-sized avatar
🦁

Zukilover zukilover

🦁
  • Bandung, Indonesia
View GitHub Profile
public function reset_password($key = NULL)
{
if($key)
{
$row = $this->model_reset_password->get_reset_password($key);
if($row)
{
$today = date('Y-m-d H:i:s');
$expired = $row->date_created;
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: resul
Filename: controllers/group_discussion.php
Line Number: 36
A PHP Error was encountered
Severity: Notice
Message: Undefined property: stdClass::$username
Filename: controllers/group.php
Line Number: 517
$('[data-pop-content]').on('shown.bs.popover', function(){
if( ! $('html').hasClass('ie-9') ) return;
$('[placeholder]').each(function(){
$(this).prev('.better-placehoder').toggle( $(this).val() == '' );
$(this).on('focus', function(){
$(this).prev('.better-placehoder').hide();
}).on('blur', function(){
$(this).prev('.better-placehoder').toggle( $(this).val() == '' );
});
});
$('.input-custom-small[data-toggle=typeahead-multiple]').each(function(){
if( ! $('html').hasClass('ie-9') ) return;
var el = {
_self : $(this),
_core : $(this).parents('.text-core'),
_wrap : $(this).parents('.text-wrap'),
_placeholder : $(this).closest('better-placehoder')
};
if( el._placeholder.length < 1 ) el._placeholder = el._core.siblings('.better-placehoder');
@zukilover
zukilover / Wordpress Dashboard Style Fix
Created January 21, 2015 14:06
For some strange reasons, Wordpress fails to load its dashboard stylesheets
define( ‘CONCATENATE_SCRIPTS’, false );
@zukilover
zukilover / Boston Globe LImit Pop up
Created December 30, 2014 08:43
BostonGlobe.com now limits to 5 articles per month for unsubscribed readers
javascript:var body=document.body;body.removeChild(body.childNodes[1]);var html=document.documentElement;html.removeAttribute('style');
<?xml version="1.0" encoding="utf-8"?>
<frontend>
<routers>
<newsletter>
<args>
<modules>
<extension_tag before="Mage_Newsletter">Company_Extension_Newsletter</extension_tag>
</modules>
</args>
</newsletter>