shazron
Forum Replies Created
-
JetPack 1.2 with ShareDaddy Google Plus support is out:
https://jetpack.me/2011/11/17/announcing-jetpack-1-2/Hmm, popular mobile browsers cannot see the +1 button. I tried on an iPhone 4 and iPad with latest firmware. Same with an Android Nexus One with 2.3.4 (using the built in browser).
It DOES however work with Android with the mobile Firefox 4 and 5 beta browsers, and Palm Pre 2 WebOS (latest firmware). With the Pre 2, I had a lot of dialogs pop up to ask me to trust Google’s certificates, however.
In their FAQ Google says it “may” be supported:
https://www.google.com/support/webmasters/bin/answer.py?answer=1140194Q. Will users on mobile browsers see the +1 button?
A. We are not including the +1 button on mobile search results at this time. However, users may be able to see any +1 buttons you have added to your web pages.My guess is, there is an untrusted cert issue through one of the Google API calls, which just fails silently (which WebOS handles and Firefox doesn’t care about).
I did some modifications to the Jetpack ShareDaddy plugin to put in Google +1 support. It’s always on, but until ShareDaddy is updated, I guess it will do. Details in my blog post:
https://www.shazron.com/2011/06/04/google-1-with-wordpress-and-jetpack-sharedaddy/If you like it, maybe you can +1 it? ??
Forum: Plugins
In reply to: [Onswipe] [Plugin: Onswipe] The plugin does not have a valid header.Also of note: plugin works on PHP 5 systems only. If installing from the WP Plugins Directory through your Admin page, it will show an “invalid header” error if you activate the plugin through that process. Activating manually from the Admin->Plugins page works fine. I’m using WP 3.1 self-hosted.
Forum: Plugins
In reply to: runPHP and POST variablesI would use $_POST[‘postvarname’]?
Forum: Fixing WordPress
In reply to: An alternative to <?php the_ID(); ?>Unfortunately ($post->ID) doesn’t work when you have embedded PHP inside a WordPress Page (I use the RunPHP plugin).
So I delved into the source code for the function the_ID(), and it simply echoes the global variable called “$id”. This is why you cannot use the return value from the_ID() and put it into a variable, because the_ID() does not return any value (see PHP ‘echo’ function).
So in my Page code when I need to get the page id, for example in listing sub-pages of my page, this is how I did it:
-
<?php
global $id; // the page id
$cmd = ‘title_li=&sort_column=menu_order&child_of=’ . $id;
wp_list_pages($cmd);
?>