Results 1 to 6 of 6
  1. #1
    Senior Member web20guy's Avatar
    Joined
    Jun 2007
    Posts
    198

    Google +1 button for your pligg site

    I'm a big fan of sharing so I was pleased to see the Buzz about Google +1 today.

    For details you can go to Google +1

    so, I certainly wanted to try the button out on a pligg site so I got to work on a quick hack for the Social Pro theme.

    Step One:

    Just before the end body tag in pligg.tpl ad this:

    Code:
    {literal}<script type="text/javascript" src="http://apis.google.com/js/plusone.js"></script>{/literal}
    Next:

    edit link_summary.tpl

    Find:
    Code:
    {checkActionsTpl location="tpl_pligg_story_title_start"}
    	       {if $use_title_as_link eq true}
    Add this:
    Code:
    {checkActionsTpl location="tpl_pligg_story_title_start"}
    			{if $pagename eq "story"}
    				<div style="float: right; top:0px;">
    					<g:plusone size="medium"></g:plusone>
    				</div>
    			{/if}	
    			{if $use_title_as_link eq true}
    This shows the button on the story page only.

    Want an example of how it looks...see screen shot.

    I'll bet it could be put into a module modeled after the Facebook sharer mode :-)
    Attached Images Attached Images

  2. #2
    New Pligger snowhills's Avatar
    Joined
    Apr 2011
    Posts
    20
    Sorry,I just do as what you say.But it does't work,I have changed my code.....
    I don't see google +1,Does it just to see in English website?
    my website:ourtips.net

  3. #3
    Constant Pligger urbn's Avatar
    Joined
    Oct 2010
    Posts
    107
    You can get it for a couple of different languages here:
    Google

    All I did was add:
    Code:
    <script type="text/javascript" src="http://apis.google.com/js/plusone.js"></script>
    to the pligg.tpl file in your template folder above the </body> tag

    and then add the following:

    Code:
    <g:plusone></g:plusone>
    Anywhere you want it displayed.

  4. #4
    Senior Member web20guy's Avatar
    Joined
    Jun 2007
    Posts
    198
    A hack is a hack.

    The above I posted does not display the button in the I.E. browser.

  5. #5
    Senior Member Ascendancy's Avatar
    Joined
    Jan 2008
    Location
    Massachusetts
    Posts
    133
    Version
    1.2.0
    Site
    http://sourcecanvas.com/
    Yeah this is awesome guys. Thanks so much for sharing with the community.

    Although I do miss the classic days of Google Buzz. Now they're already moving onto +1, why can't Google just slow it down for a bit?

  6. #6
    Banned socialgeek's Avatar
    Joined
    Nov 2010
    Posts
    41
    yea, I was supposed to put it on my Pligg site but soon after, I was notified by Google that they have stopped feeding adsense ads to my site due to too many "offensive" content as a result of constant spamming by auto-submission scripts and softwares,

    Well, at least G didn't suspend my account after my lengthy explanation submitted to them. This allows me to put up the G+1 on all my other sites.

    Have a nice day to all

Similar Threads

  1. Google algo change - did your pligg site get hit?
    By PurpleCow in forum Questions & Comments
    Replies: 4
    Last Post: 02-27-2011, 03:23 PM
  2. How to add Facebook Like button to my pligg site?
    By aahna in forum Questions & Comments
    Replies: 5
    Last Post: 06-26-2010, 08:53 AM
  3. Creating a custom Google Toolbar button for your pligg site.
    By chuckroast in forum Questions & Comments
    Replies: 0
    Last Post: 04-27-2009, 01:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Donate to Pligg CMS Dreamhost Web Hosting Host Gator Web Hosting