Forum:Google Plus Widget?

Hi There.

I am fairly new to this stuff about Widgets etc....

Anyways I was wondering if I could add a Google plus widget on to my Wikia Homepage.

This is the script that I found.

mbgc='f5f5f5';ww='320';mbc='cecece';bbc='3F79D5';bmobc='3b71c6';bbgc='4889F0';bmoc='3F79D5';bfc='FFFFFF';bmofc='ffffff';tlc='cecece';tc='6a6a6a';nc='6a6a6a';bc='6a6a6a';l='y';fs='16';fsb='13';bw='100';ff='4';pc='4889F0';b='s'; pid='114124906429825669904'; 

(Edited Mikenzb 08:45, November 14, 2011 (UTC)) Date Posted 15:07,11/13/2011


 * I am quite sure that is possible. First, create a page in the MediaWiki namespacce called "GoogleWidget". The text of the page should be the code above. After that, add  to the page where you want the Google+ Box to appear, in this case the mainpage. Also, could you please turn your signature into a template? Its code is currently longer than this entire forum page :). Cheers,  Mark  ( talk ) 17:48, November 13, 2011 (UTC)


 * Do you mean something like this? ; ) It's as Mark said.
 * Added to FAQ because i am fairly sure others will possibly be looking for such a thing as well


 * Sorry to sound so stupid but I dont even know what a MediaWiki namespacce is...
 * Mikenzb 08:45, November 14, 2011 (UTC)


 * It's a separate type of page on your wiki, which begin with "MediaWiki:" (like categories begin with "Category:" and templates begin with "Template:") In this case, you need to go to a page named "MediaWiki:GoogleWidget" to add the script code you found. (maybe it should be called "MediaWiki:GooglePlusWidget" ? and then the verbatim would be  ... which would be added to the page that uses the widget) ForestMonthZero 11:15, November 14, 2011 (UTC)


 * So I did just that and the Widget didnt show up in the MediaWiki page. This is what I Got. Mikenzb 11:34, November 14, 2011 (UTC)

(Reset indent) Insert the below code to make it work.



 window.___gcfg = {lang: 'en'};

(function {   var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;    po.src = 'https://apis.google.com/js/plusone.js';    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);  });



Your own wiki name Your own wiki description  Do not forget to alter the name and description on the part ' <!--Add the following... ' and maybe add your own picture (or use the picture from the italian One Piece Wiki). Do keep the source attribution intact, it's necessary part of the Terms of Use for using code from another wiki.

On the page you want to add the google plus button: Google-button Notice: change the name between verbatim to be the same as you name the mediawiki page!

Hope this helps