The work of share care and fair | denovembre.com

Apr/13

18

Facebook blue linked status

here is the example:

@@[0:[106434829386478:1: Respect Original Culture of Sundanese]] Kang Ibing Emang Top @[106434829386478:]

·

Feb/13

27

Facebook Count Pages Shares

After I share about facebook share manual script now I want to share about how do we get the share count, how many people share our link. How do we know it? just see enclosed script:

<!--?php $get_shares = file_get_contents('http://graph.facebook.com/?id='.get_permalink()); ?-->
<!--?php $get_shares = (FALSE !== $get_shares)?$get_shares:json_encode(array('shares'=-->0)); ?>
<!--?php $get_shares = json_decode($get_shares); ?-->
<!--?php $get_shares = (isset($get_shares--->shares))?$get_shares->shares:'0'; ?>
<!--?php echo $get_shares; ?--> Share(s)

· · ·

Feb/13

27

Facebook Share Manual Script

Unofficially facebook already has this facility and can be do it by manually.

Facebook has sharer.php which is can be call and add some parameters so we able to control our shares.

Simply just add this following code:

<a 
id="fb-share" 
style='text-decoration:none;' 
type="icon_link" 
onClick="window.open('http://www.facebook.com/sharer.php?&amp;t=<?php echo urlencode(get_the_title()); ?>&amp;u=<?php echo urlencode(get_permalink()); ?>','sharer','toolbar=0,status=0,width=580,height=325');" href="javascript: void(0)">

information:
url: http://www.facebook.com/sharer.php
parameters:
t: title of the share
u: url of the share

and let the facebook script do the rest

· ·

Feb/13

1

Woocommerce select country problem!

Probably when we select country from selectin box on the checkout page, there are some problem when we search the city. This feature are cool but not really works.

JNE shipping city optionThis one is good and feels sophisticated, but when you type something, on the search box at top of the selection the result was right. But when your moved down to find the right state, the selection is automatically closed. And for sure the width is limited, we cannot expand more.

I try to find out the problem, the problem is on javascript inside of woocommerce it self, I try to fix it but someday if there are an update my quick fix are deleted. So, I try to disable the javascript, but it affect to the back end selection.

I figure out the solution is only one way, to disabled enhanced country selection from the back end.

In order to do this, just follows the simple ways like this:

go to woocommerce -> settings -> tab general

woocommerce settings generalAfter that find the “Styles and Scripts” Section

uncheck Enable enhanced country select boxes Just uncheck the “

The results will be like this:

woocommerce default city in edit-my-address

· · · · ·

first i’m try to break the encoding date Ydmhis format to download all files inside but its not works because taking too long time to get 2 years data.


<?php
$the_counter = 0;
$watch_counter = 0;

$minute_counter = 59;
$hour_counter = 5959;

$basic_minute_agregator = $minute_counter;

$minute_agregator = 41;
$hour_agregator = 4041;

$minute_agregation = 100;
$hour_agregation = 10000;

while(true){
	if($the_counter == 10800){
		return false;
	}
	$the_counter++;
	
	$ks = $the_counter / 3600;
	if($watch_counter%$hour_counter == 0 && $watch_counter > 0){
		
		$watch_counter = $watch_counter + $hour_agregator;
		$hour_counter = $hour_counter + $hour_agregation;
		$minute_counter = $watch_counter + $basic_minute_agregator;
		
	}elseif($watch_counter%$minute_counter == 0 && $watch_counter > 0){
		
		$watch_counter = $watch_counter + $minute_agregator;
		$minute_counter = $minute_counter + $minute_agregation;
		
	}else{
		
		$watch_counter++;
		
	}
	
	echo $watch_counter;
	echo '<br>';
}

?>

Older posts >>

Copyright © 2010 denovembre.
All rights reserved.

 

Powered by:

Switch to our mobile site