Google+ Page Badge Block
This module allows you to place a Google+ Page Badge within a Block. The Google+ Page Badge is different than the Google +1 modules in that this module simply links to a page in Google+. Google+ allows users to create their own custom pages for companies and organizations.
This module simply allows the user to specify the Page ID, select one of three styles of page badges, and select a light or dark theme for the background of the badge.
After installing, update your settings for this module and activate the block.
All code related to the badge itself is supplied by Google+.
Sandbox: http://drupal.org/sandbox/edwardmonk/1517806
Core: 6.x
Comments
Comment #1
soncco commentedWelcome!
IMHO, in https://developers.google.com/+/plugins/badge/ you can get the code and settings for the badge and a module is not necessary for it. However we can wait for the opinion for other user, my opinion is not for discouraged, but is just an observation :).
Somme issues:
It appears you are working in the "master" branch in git. You should really be working in a version specific branch. The most direct documentation on this is Moving from a master branch to a version branch. For additional resources please see the documentation about release naming conventions and creating a branch in git.
Review of the master branch:
Comment #2
edwardmonk commentedI agree that it is fairly easy to just grab the code from the Google+ Badge page, that is where I got the code.
Not all users of Drupal have the skills necessary to implement the code easily. Once the module is installed, this module gives the non-technical person the ability to control the placement of the badge through the Block system. It also makes it easy to switch between badge types and themes without having to touch the code every time they want to make a minor change.
I will review the report, take a look at the git issue, and add a README.txt file.
Thank you for your input.
Comment #3
migmedia commentedWouldn't it better to make the googleplus-id user-dependend? In your implementation there can only one g+ account connected per drupal-installation.
What about sites with multiple-user?
Maybe Project User Variable helps you.
An other thought: Better be verbose on your project-page. No-one reads README-s ;-)
Micha
Comment #4
novalnet commentedHi,
Manual Review :
1. all functions should be prefixed with your module/theme .You should change the below functions,
function google_pluspagebadge_help($path, $arg) {
function google_pluspagebadge_perm() {
function google_pluspagebadge_block($op = 'list', $delta = 0, $edit = array()) {
function google_pluspagebadge_menu() {
function google_pluspagebadge_admin() {
2. google__page_badge_block.info :
"description" property & "core" property is missing in the info file.
Thanks
Comment #5
bloke_zero commentedHi,
More review ;-)
google__page_badge_block/google_pluspagebadgebut justgoogle_pluspagebadge. If it was a suite of modules with a core admin interface I could see the current directory structure, but not for a simple module like this.<script type='text/javascript' src='https://apis.google.com/js/plusone.js'></script>via drupal_add_js()?$op == 'configure'Cheers
Alex
Comment #6
klausiClosing due to lack of activity. Feel free to reopen if you are still working on this application.
Comment #6.0
klausiAdded target release