Skip to content

Instantly share code, notes, and snippets.

View zukilover's full-sized avatar
🦁

Zukilover zukilover

🦁
  • Bandung, Indonesia
View GitHub Profile
<?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>
@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');
@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 );
$('.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');
$('[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() == '' );
});
});
A PHP Error was encountered
Severity: Notice
Message: Undefined property: stdClass::$username
Filename: controllers/group.php
Line Number: 517
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: resul
Filename: controllers/group_discussion.php
Line Number: 36
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;
@zukilover
zukilover / chosen.js
Created June 8, 2016 04:12
Initiate chosen.js library call
$(s.inputSelect)
.each(function() {
if ( !$().chosen ) return;
var noSearch = typeof $(this).data('no-search') !== 'undefined' ? $(this).data('no-search') : "true";
$(this)
.each(function() {
var e = $(this).attr('data-nosearch', noSearch),
t = e.attr("data-nosearch") === "true" ? !0 : !1,
n = {};
n.width = '100%';
@zukilover
zukilover / popover.js
Last active June 8, 2016 07:59
Initiate custom popover
$(s.customPopover).each(function () {
if (!$().popover) return;
var popover = $(this),
backdrop = popover.data('backdrop'),
content = popover.attr('href') || popover.data('popover-content'),
getHtml;
$(content).hide();
getHtml = function(){
return $(content).html();