Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: SMFHacks.com Team on June 13, 2011, 08:24:46 PM

Title: Google +1 Topics
Post by: SMFHacks.com Team on June 13, 2011, 08:24:46 PM
Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=3053)

Google +1 Topics

Adds an icon on the start of each topic for Google +1

Works for SMF 2.0.x and SMF 1.1.x
Title: Re: Google +1 Topics
Post by: piers38 on June 13, 2011, 08:49:21 PM
Brilliant mod thank you.
Title: Re: Google +1 Topics
Post by: DrBermant on June 14, 2011, 10:54:54 AM
Very nice mod. Thank you.

This is how it integrates with the Share this Mod when both are applied:

http://www.abodybeautiful.com/forum/index.php/topic,11.0.html

Share this Mod:
http://custom.simplemachines.org/mods/index.php?mod=2111

The Share this Mod required a hand code fix due to conflicts with the mod Anti Spam Links used on this forum we are posting on.

http://custom.simplemachines.org/mods/index.php?mod=2404

Your mod works fine without any fixes or changes. I am a soon to be retired Plastic Surgeon and not skillful enough in coding to understand the refinements behind the mods, but thought the experiences of its implementation might be of interest. I also do not mind stimulating cross mod cooperation and mutual improvements.

Thank you for your addition. It works flawlessly from what I have seen on my site.

Michael Bermant, M.D.
Title: Re: Google +1 Topics
Post by: vbgamer45 on June 14, 2011, 10:58:42 AM
Thanks you have a nice site. What mod is the creating the digg/twitter/google buzz icons in the top right corner.
Title: Re: Google +1 Topics
Post by: tabletsdroid on June 16, 2011, 09:14:15 AM
Nice website DrBermant.

I can't get this mod to work, every time I click the +1 to register a point it goes red with a 0 - my google profile is public.
Title: Re: Google +1 Topics
Post by: Bugo on June 20, 2011, 02:37:00 AM
What about W3C Validation after installing this mod (in topics)?
Title: Re: Google +1 Topics
Post by: vbgamer45 on June 20, 2011, 08:18:47 AM
Quote from: Bugo on June 20, 2011, 02:37:00 AM
What about W3C Validation after installing this mod (in topics)?
Should be ok?
Title: Re: Google +1 Topics
Post by: kenboldt on June 21, 2011, 09:19:43 AM
Is there any way to limit which boards the button will show up on?  For example, I have a couple boards that are private and limited to a select few people.  There is no need for the button to be on these boards. 
Title: Re: Google +1 Topics
Post by: vbgamer45 on June 21, 2011, 09:22:17 AM
Not at the moment. Currently it shows on all boards. Would either need to add admin option to choose which boards to show it on.
Title: Re: Google +1 Topics
Post by: briggz5d on July 15, 2011, 12:58:47 PM
This mod works only on the core / Default theme i assume since it refused to work on my theme after successfully installing and turning on the settings.

I posted a code snippet once and it displayed - cant seem to remember where on what i posted.
A work around would be appreciated.
Title: Re: Google +1 Topics
Post by: ChaosEnergy on July 29, 2011, 09:11:35 PM
Just installed version 1.0 when I saw 1.1 announced in admin center
so installed 1.1

now i get +1 in first and second post, but not all, like enabled
Title: Re: Google +1 Topics
Post by: vbgamer45 on July 29, 2011, 09:30:36 PM
It should just be in the very post of each topic.
Title: Re: Google +1 Topics
Post by: clothahump on August 01, 2011, 04:21:05 PM
Any chance of moving it above the "Like" button I have installed and maybe just a little bigger?
Title: Re: Google +1 Topics
Post by: petlv on August 02, 2011, 02:03:12 PM
Hello,

I am trying to change the language of the Google +1button to Bulgarian but everytime when I place the new code for Bulgarian from the Google website:
<script type="text/javascript" src="https://apis.google.com/js/plusone.js">
  {lang: 'bg'}
</script>


over your code in the googleplusone.XML file in the Mod
<script type="text/javascript" src="http://apis.google.com/js/plusone.js"></script>

I got a message on my site that there is a syntax error (' or ; ). However, I have not deleted or added anything to your code, just replaced the second code with the first one. Can you advise me how to make it work?
Title: Re: Google +1 Topics
Post by: vbgamer45 on August 02, 2011, 02:07:59 PM
Replace

{lang: 'bg'}

with

{lang: \'bg\'}

Title: Re: Google +1 Topics
Post by: petlv on August 02, 2011, 04:15:14 PM
That worked! Thank you so much  :)
Title: Re: Google +1 Topics
Post by: vbgamer45 on August 02, 2011, 04:24:11 PM
Quote from: petlv on August 02, 2011, 04:15:14 PM
That worked! Thank you so much  :)
Glad you got it working.
Title: Re: Google +1 Topics
Post by: Bob Mueller on October 08, 2011, 03:19:58 PM
Couple of questions:

This mod should work out-of-the-box, right? Install it, and it runs? No permission changes, database refreshes or anything like that? Should it appear on existing posts and everything?

I've looked at existing posts, and it's not showing up. I've tried a new post on my test board (not viewable by guests) and I can't see it there. Adblock is set to green-light my entire domain, so that shouldn't be it, either.

Running SMF 2.0.1 and Core theme.
Mods:
RSS Feed Poster    3.0.2a     
Pretty URLs    1.0RC5.1
6 Custom buttons / tabs with Sub Menus (4)    0.5
Google Analytics Code    1.4
Welcome Topic Mod    2.1
Google +1 Topics    1.0
Stop Spammer    2.3.9
RSS Feeder    1.1.5
SimplePortal    2.3.3
Ad Managment    3.0.1
Simple Twitter    1.0 
Title: Re: Google +1 Topics
Post by: vbgamer45 on October 08, 2011, 03:22:44 PM
Should work out of the box. Only appears in the very first post of each topic.
Title: Re: Google +1 Topics
Post by: Bob Mueller on October 08, 2011, 03:46:26 PM
Meant to say existing threads. I understand that it only shows on one post.

But can you see it? Pick a thread. http://mwf.ravensbeak.com/forum/index.php?action=forum

Willing to PM you a login to see the admin side if you think that will help. Scratching my head here.
Title: Re: Google +1 Topics
Post by: vbgamer45 on October 08, 2011, 04:03:25 PM
Using core theme for 2.0 looks like you need to apply the theme edit to your core theme in the display.template.php check the mod site for manual install details for this mod and use that code in your theme's display.template.php file.
Title: Re: Google +1 Topics
Post by: Bob Mueller on October 08, 2011, 04:15:35 PM
Ah, interesting. For some reason, even though the Package Manager says it installed correctly, it didn't modify /Themes/core/Display.template.php at all.

It did however modify /Themes/default/Display.template.php.

Edit: We figured it out at about the same time. I'll make the manual edits and let you know.
Title: Re: Google +1 Topics
Post by: Bob Mueller on October 08, 2011, 04:19:55 PM
Yup, that was it. Thanks for your usual quick response!
Title: Re: Google +1 Topics
Post by: vbgamer45 on October 08, 2011, 04:26:45 PM
No problem glad you were able to get it to work on your theme.
Title: Re: Google +1 Topics
Post by: Skylined on November 27, 2011, 12:15:00 PM
Great mod.

As it has already been requested, it would be great if you add the option to select in which boards the button should appear.


Taken from Google +1 FAQ (http://www.google.com/support/webmasters/bin/answer.py?answer=1140194)
When you add the +1 button to a page, Google assumes that you want that page to be publicly available and visible in Google Search results. As a result, we may fetch and show that page even if it is disallowed in robots.txt.
Title: Re: Google +1 Topics
Post by: vbgamer45 on November 27, 2011, 01:43:56 PM
Good idea will look into adding a board setting in the future.
Title: Re: Google +1 Topics
Post by: Skylined on January 05, 2012, 04:59:44 PM
Have you added that in your last update?
Title: Re: Google +1 Topics
Post by: vbgamer45 on January 05, 2012, 05:01:56 PM
Not yet
Title: Re: Google +1 Topics
Post by: Skylined on January 05, 2012, 10:49:11 PM
OK, I'll just wait. :)
Title: Re: Google +1 Topics
Post by: Morphies on February 04, 2012, 12:03:38 PM
Help!

I've installed this on www.bkksys.co.uk but not seeing the +1 image.

Any clues please?

Version 1.1.16
Title: Re: Google +1 Topics
Post by: vbgamer45 on February 04, 2012, 05:29:01 PM
Does not look like the install took I do not see it on the theme or any code loaded on the page for it.
Title: Re: Google +1 Topics
Post by: marcosbr on October 18, 2020, 11:28:35 AM
It's on the list of updated today!
Title: Re: Google +1 Topics
Post by: vbgamer45 on October 18, 2020, 11:37:48 AM
I moved it to the archived list. No longer in use
Title: Re: Google +1 Topics
Post by: marcosbr on October 18, 2020, 12:48:24 PM
OK!