* Description: Posts to a Google+ page with the help of Hootsuite
* Version: 0.1
* Author: Michael Vogel <https://pirati.ca/profile/heluecht>
+ * Status: Unsupported
*/
function gpluspost_install() {
/*
// To-Do: Option to check the credentials if requested
if (($username != "") AND ($password != "")) {
- require_once("addon/googleplus/postToGooglePlus.php");
+ require_once("addon/gpluspost/postToGooglePlus.php");
$loginError = doConnectToGooglePlus2($username, $password);
if ($loginError)
$s .= '<p>Login Error. Please enter the correct credentials.</p>';
return;
// if post comes from Google+ don't send it back
- if (!get_pconfig($b["uid"],'gpluspost','no_loop_prevention') and ($b['app'] == "Google+"))
+ if (!get_pconfig($b["uid"],'gpluspost','no_loop_prevention') and (($b['app'] == "Google+") OR ($b["extid"] == NETWORK_GPLUS)))
return;
if (!gpluspost_nextscripts()) {
$success = false;
if($username && $password) {
- require_once("addon/googleplus/postToGooglePlus.php");
+ require_once("addon/gpluspost/postToGooglePlus.php");
logger('gpluspost_queue: able to post for user '.$username);