Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
2 registered (57-Vette, Chosen), 43 Guests and 14 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 03/24/10
Posts: 8
Top Posters (30 Days)
Ruben 50
DennyP 24
Gizmo 23
Dunny 15
SteveS 13
AllenAyres 12
dbremer 10
SD 10
drkknght00 9
doug 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Topic Options
#243732 - 06/08/11 10:53 PM Google +1
cascadeclimbers Offline

member
Registered: 06/02/04
Posts: 195
Loc: Seattle, WA
Info for this can be found here http://www.google.com/+1/button/

However it's pretty simple. Any page you want it you can add the following code. In showflat.tpl with the FB and Twitter icons is an obvious start.

In your header file add the following before the </head> tag...

{literal}
<script type="text/javascript" src="http://apis.google.com/js/plusone.js"></script>
<script type="text/javascript">
function plusone_vote( obj ) {
_gaq.push(['_trackEvent','plusone',obj.state]);
}
</script>
{/literal}

The function plusone_vote is a callback if you use Google Analytics, allows you to track events.

Add the following in your showflat.tpl...
<g:plusone callback="plusone_vote"></g:plusone>
_________________________
Won't you take me to Funkytown?
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#243742 - 06/09/11 03:26 AM Re: Google +1 [Re: cascadeclimbers]
Ian Offline
Registered: 06/05/06
Posts: 4337
Loc: Essex, UK
Just wondering how popular this might be? with facebook & twitter, do we need a third option?
Top
#243751 - 06/09/11 11:03 AM Re: Google +1 [Re: cascadeclimbers]
UBBSystems Offline
Sysop
Registered: 06/02/11
Posts: 70
I would say it's going to much more valuable than Facebook and Twitter.... although the take rate will be slower, most people browsing the web probably don't have google accounts..... google should just buy facebook.... smile


Edited by UBBSystems (06/09/11 11:07 AM)
Top
#243755 - 06/09/11 12:56 PM Re: Google +1 [Re: cascadeclimbers]
gliderdad Offline
Registered: 06/08/06
Posts: 1466
Loc: NY
I do too, but I hope they get their crap together and get it working for google apps people. They always leave them out and the tools become useless to those using google apps email.
Top
#243794 - 06/10/11 08:05 AM Re: Google +1 [Re: cascadeclimbers]
Bad Frog Offline
addict
Registered: 05/13/08
Posts: 596
Loc: Coast of Maine
where exactly on showflat do you put <g:plusone callback="plusone_vote"></g:plusone>?
_________________________
"No matter where you go, there you are."
"If you can't do something smart, Do something right"
"There are three kinds of people in the world, those who can count, and those who can't"
Top
#243795 - 06/10/11 08:16 AM Re: Google +1 [Re: cascadeclimbers]
Bad Frog Offline
addict
Registered: 05/13/08
Posts: 596
Loc: Coast of Maine
nevermind. best place is right above the twitter/facebook block
_________________________
"No matter where you go, there you are."
"If you can't do something smart, Do something right"
"There are three kinds of people in the world, those who can count, and those who can't"
Top
#243833 - 06/11/11 08:48 AM Re: Google +1 [Re: cascadeclimbers]
nims2 Offline
member
Registered: 07/04/07
Posts: 122
I changed my board easily with all the +1 icons you would possible need. There is actually a great service out there called AddThis. http://www.addthis.com

It is capable of wrapping all the add/+1/like/etc service into one block of code.

It is easy to implement. Just open showflat.tpl and look for the face book part.

After this to the following:


Code:
{if $facebook}
<td>
<iframe src="http://www.facebook.com/plugins/like.php?href={$facebookURL}&amp;layout=standard&amp;show_faces=false&amp;width=350&amp;action=like&amp;colorscheme=light&amp;height=24" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:24px;" allowTransparency="true"></iframe>
</td>
{/if}
</div>

<!-- Add this -->
<!-- AddThis Button BEGIN -->
{literal}
<td valign="top">
<div class="addthis_toolbox addthis_default_style ">
<a class="addthis_button_google_plusone"></a>
<a class="addthis_button_live"></a>
<a class="addthis_button_hotmail"></a>
<a class="addthis_button_gmail"></a>
<a class="addthis_button_nujij"></a>
<a class="addthis_button_google"></a>
<a class="addthis_button_googlereader"></a>
<a class="addthis_button_blogger"></a>
<a class="addthis_button_myspace"></a>
</div>
<script type="text/javascript">var addthis_config = {"data_track_clickback":true};</script>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-4de3b33e712ccfab"></script>
<!-- AddThis Button END -->
</td>
{/literal}


And presto. See it in action here:
http://nlforum.merudi.net/ubbthreads.php/topics/119466/1.html

All the icons that you need wink.
Top



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Temporary Password email not being received
by
05/24/12 10:02 PM
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Forum Stats
10492 Members
36 Forums
33842 Topics
181709 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image