Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

Reply
 
Thread Tools
[Mod-Mall] Google +1 - Googles 'like' equivilent Details »»
[Mod-Mall] Google +1 - Googles 'like' equivilent
Version: 1.00, by nitra1000 nitra1000 is offline
Developer Last Online: Jun 2012 Show Printable Version Email this Page

Category: Mini Mods - Version: 4.1.4 Rating:
Released: 06-01-2011 Last Update: 06-23-2011 Installs: 100
Uses Plugins Template Edits
 
No support by the author.

Already using this modification? Nominate it for Mod of the Month!

What +1 Does
+1 is basicly Googles answer to Facebooks Like button, it's just been released so there will be alot of hype and movement over it in the coming days.

What This Mod Does
This mod inserts the javascript before your header making the script load faster, all you then have to do is insert a small tag where ever you want the button to show up
  • Some template hooks (automaticly installed without template edits)
  • Guest on/off
  • Usergroup on/off
  • Choose style of plus button
  • Allow users to disable

Installation
Installation documents can be found in the zip file attached (two steps - install XML, change settings) and online

Releases
V1.0 - Initial Release
V1.5 - Rewrote installation documents, added troubleshooting

To Do List
  • +1 individual posts
  • Style checks
  • Hooks for blogs
  • Hooks for CMS

Notes
I will support this modification but not +1...

I have nothing to do with Google

Like it? Nominate it for Mod of the Month!

Download Now

File Type: zip Product-PlusOne.zip (6.0 KB, 530 views)

Screenshots

File Type: jpg showthread1.jpg (31.0 KB, 0 views)
File Type: jpg forumhome.JPG (24.2 KB, 0 views)
File Type: jpg forumhome_tabled.JPG (21.2 KB, 0 views)
File Type: jpg postbit_underuser.JPG (57.2 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
9 благодарности(ей) от:
dilbert, emperatour, HoSStiA, Khaleal, kleidaras, mohammadxxx, nacaruncr, Taurus1

Comments
  #62  
Old 06-27-2011, 09:07 AM
nitra1000's Avatar
nitra1000 nitra1000 is offline
 
Join Date: Dec 2009
Location: uk
Posts: 312
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Seems to be working fine on your website, was it one of your settings?
Reply With Quote
  #63  
Old 06-28-2011, 03:34 AM
Apolo. Apolo. is offline
 
Join Date: Sep 2007
Location: Colombia
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

I'm not currently using this mod, but I would like to use it provided it solves these two issues I'm currently facing on one of my forums:

Issue #1

For Google +1, these are all different links:

domain.com
www.domain.com
domain.com/index.php
www.domain.com/index.php

So no matter they are in fact the same page, you can add +1 to each of them and Google will treat them as 4 different pages for their +1 count.

For Facebook, these are the same links:

domain.com/index.php
www.domain.com/index.php

So the Likes count will be the same either case.

But if you remove the "index.php" at the end, Facebook will treat them as different pages.

Issue #2

When your thread has more than one page, Both Google +1 and Facebook will treat them as different pages. I know in this case they are really different pages, but it would be nice if both Google +1 and Facebook Likes would count for the whole thread, as it is a single topic either way.

Thank you!!
Reply With Quote
  #64  
Old 06-30-2011, 09:44 AM
emperatour emperatour is offline
 
Join Date: Sep 2008
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kether1 View Post
Doesn't seem to work if you have facebook connect disabled. Will only show on forum home. When facebook connect is enabled, it shows above the threads as expected.
Quote:
Originally Posted by nitra1000 View Post
Had to use a facebook hook for the threads, you can insert it manually if you follow the manual template edits.
Everything in the template edits manual is either related to postbit or forumhome.

Could you please tell me what should be inserted to where in order to have the button above threads?
Reply With Quote
  #65  
Old 06-30-2011, 04:33 PM
nitra1000's Avatar
nitra1000 nitra1000 is offline
 
Join Date: Dec 2009
Location: uk
Posts: 312
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Look for the where it mentions facebook in the SHOWTHREADS template and add after it ...
Code:
<div style="text-align: right; width:100%; height:27px;"><g:plusone></g:plusone></div>
It's untested but should work.
Reply With Quote
  #66  
Old 06-30-2011, 04:36 PM
nitra1000's Avatar
nitra1000 nitra1000 is offline
 
Join Date: Dec 2009
Location: uk
Posts: 312
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry I don't own Google so can't fix either of these for you, but look at your source and see if this is in your templates...

Code:
<link rel="canonical" href="{vb:raw vboptions.bburl}/{vb:raw thread_url}" />
I think Plus One respects this tag so should figure out that two pages are infact the same if this is setup correctly.

Quote:
Originally Posted by Apolo. View Post
Hi,

I'm not currently using this mod, but I would like to use it provided it solves these two issues I'm currently facing on one of my forums:

Issue #1

For Google +1, these are all different links:

domain.com
www.domain.com
domain.com/index.php
www.domain.com/index.php

So no matter they are in fact the same page, you can add +1 to each of them and Google will treat them as 4 different pages for their +1 count.

For Facebook, these are the same links:

domain.com/index.php
www.domain.com/index.php

So the Likes count will be the same either case.

But if you remove the "index.php" at the end, Facebook will treat them as different pages.

Issue #2

When your thread has more than one page, Both Google +1 and Facebook will treat them as different pages. I know in this case they are really different pages, but it would be nice if both Google +1 and Facebook Likes would count for the whole thread, as it is a single topic either way.

Thank you!!
Reply With Quote
  #67  
Old 07-01-2011, 03:33 AM
emperatour emperatour is offline
 
Join Date: Sep 2008
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nitra1000 View Post
Look for the where it mentions facebook in the SHOWTHREADS template and add after it ...
Code:
<div style="text-align: right; width:100%; height:27px;"><g:plusone></g:plusone></div>
It's untested but should work.
Thank you for your answer.

To have a 20px button in the same line with thread title, I added the following:
HTML Code:
<g:plusone size="medium"></g:plusone>
After
HTML Code:
<vb:if condition="$show['fb_likebutton']">
			{vb:raw fblikebutton}
		</vb:if>
Works like a charm
Reply With Quote
  #68  
Old 07-01-2011, 11:18 AM
nitra1000's Avatar
nitra1000 nitra1000 is offline
 
Join Date: Dec 2009
Location: uk
Posts: 312
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by emperatour View Post
Thank you for your answer.

To have a 20px button in the same line with thread title, I added the following:
HTML Code:
<g:plusone size="medium"></g:plusone>
After
HTML Code:
<vb:if condition="$show['fb_likebutton']">
			{vb:raw fblikebutton}
		</vb:if>
Works like a charm
Have you got a website so people can take a look? and okay if I quote you for others that want to do this? :up:
Reply With Quote
  #69  
Old 07-02-2011, 09:40 AM
Taurus1's Avatar
Taurus1 Taurus1 is offline
 
Join Date: Dec 2009
Posts: 648
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How can I add the google button here:

Attachment 130634

Thanks!
Reply With Quote
  #70  
Old 07-03-2011, 08:31 AM
emperatour emperatour is offline
 
Join Date: Sep 2008
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nitra1000 View Post
Have you got a website so people can take a look? and okay if I quote you for others that want to do this? :up:
Our website is in Persian language (right-to-left) however, you make take a look at the English style through this link or the attachment.

And sure, you can quote me for others.
Attached Images
File Type: png thread+.PNG (35.9 KB, 0 views)
Reply With Quote
  #71  
Old 07-04-2011, 11:36 AM
nitra1000's Avatar
nitra1000 nitra1000 is offline
 
Join Date: Dec 2009
Location: uk
Posts: 312
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks will put it on the instructions tonight.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:38 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04820 seconds
  • Memory Usage 2,362KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (4)bbcode_html
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (8)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (6)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete