11 Nov 2015 @ 10:21 PM 

This article explains what most beginners of PHP are wondering:
http://www.robert-gonzalez.com/2009/03/04/php-operators-double-and-single-arrow/

<?php
$obj = new MyObject();
$obj->thisProperty = 'Fred';
$obj->getProperty();
?>
<?php
$myArray = array(
'Robert' => 'Big',
'Bobby' => 'Smart',
'PHP' => 'Rocks'
);
?>
<?php
MyClass::$staticProperty = 'Fred';
MyClass::getStaticProperty();
?>
Posted By: Aeric
Last Edit: 11 Nov 2015 @ 10:30 PM

EmailPermalinkComments (0)
Tags
Categories: Cyberticles, Cyblog, Links, Projects
 24 Feb 2013 @ 9:45 PM 

There is a bug if you enable Comment or Blog Subscription feature in Jetpack plugin.

The checkbox and the label display incorrectly with some themes.

I have tried changing the source and finally get it fixed.

Jetpack-Subscription-Style-Bug

Here is how I solved the problem:

  • In Admin menu, click on Plugins -> Editor.
  • At the top right corner, in the select “Jetpack by WordPress.com” and click button Select.
  • From the Plugin Files list, click the jetpack/modules/subscriptions.php file to edit.
  • Press Ctrl+F to look for line “// Subscribe to comments checkbox“.
  • In the label style, add in style=”display: inline; float: none;”
  • i.e. look similar to this :
  • $str .= ‘<label id=”subscribe-label” for=”subscribe_comments” style=”display: inline; float: none;”>’ . __( ‘Notify me of follow-up comments by email.’, ‘jetpack’ ) . ‘</label>’;
  • Add in a space (or any character) between the single quote and Notify.
  • i.e. look similar to this :
  • __( ‘ Notify me of follow-up comments by email.’, ‘jetpack’ )
  • Repeat the steps for “subscribe_blog
  • Click button Update File.
  • Refresh your page and see the checkboxes are now aligned correctly left of the corresponding labels.

The block of code would look similar to this:Jetpack-Subscription-Style-Editor

 

Tadaa…

Jetpack-Subscription-Style-Fixed

Posted By: Aeric
Last Edit: 14 May 2013 @ 01:03 AM

EmailPermalinkComments (0)
Tags
 05 Aug 2012 @ 1:26 AM 
Posted By: Aeric
Last Edit: 27 May 2017 @ 02:31 PM

EmailPermalinkComments (0)
Tags
Categories: Cyblog, Friends, Photos

 Last 50 Posts
 Back
Change Theme...
  • Users » 2
  • Posts/Pages » 129
  • Comments » 195
Change Theme...
  • VoidVoid « Default
  • LifeLife
  • EarthEarth
  • WindWind
  • WaterWater
  • FireFire
  • LightLight