Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Google +1 Button for vBulletin Details »»
Google +1 Button for vBulletin
Version: 1.00, by togebi33 togebi33 is offline
Developer Last Online: Oct 2019 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 4.1.4 Rating:
Released: 06-01-2011 Last Update: Never Installs: 39
Template Edits
 
No support by the author.

Hello friends, Google created a new system of turkey today started to use vBulletin's how to add Google button and +1 +1 Button will tell you what it does.

+1 According to the statement on the Google button:

Quote:
The +1 button is shorthand for "this is pretty cool" or "you should check this out."
Click +1 to publicly give something your stamp of approval. Your +1's can help friends, contacts, and others on the web find the best stuff when they search.

Currently available for English searches on Google.com.


See +1's

Sometimes it?s easier to find exactly what you?re looking for when someone you know already found it. Get recommendations for the things that interest you, right when you want them, in your search results.
The next time you?re trying to remember that bed and breakfast your buddy was raving about, or find a great charity to support, a +1 could help you out. Just make sure you're signed in to your Google Account.
Show +1's

In order to +1 things, you first need a public Google profile. This helps people see who recommended that tasty recipe or great campsite. When you create a profile, it's visible to anyone and connections with your email address can easily find it.
Your +1?s are stored in a new tab on your Google profile. You can show your +1?s tab to the world, or keep it private and just use it to personally manage the ever-expanding record of things you love around the web.

Demo : vBulletin 4x i?in Google +1 Butonu

Please read the following description to be able to integrate vBulletin site, a very simple

Installation:

open Postbit_Legacy template

Find Code:

Code:
{vb:raw post.message}
Add Below

Code:
<!-- Place this tag in your head or just before your close body tag -->
<script type="text/javascript" src="http://apis.google.com/js/plusone.js"></script>

<!-- Place this tag where you want the +1 button to render -->
<g:plusone></g:plusone>
or show only first post
Code:
<vb:if condition="$post[postcount] == 1">
<!-- Place this tag in your head or just before your close body tag -->
<script type="text/javascript" src="http://apis.google.com/js/plusone.js"></script>

<!-- Place this tag where you want the +1 button to render -->
<g:plusone></g:plusone>
</vb:if>
or next to facebook like button

open facebook_likebutton templete and Add code to the top or the bottom

Click for the Turkish version of this topic

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
4 благодарности(ей) от:
Gn_Snake, nacaruncr, Toorak Times

Comments
  #22  
Old 08-24-2011, 07:31 AM
ngphuc2k ngphuc2k is offline
 
Join Date: Jun 2009
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would add google + button for title CMS Vbulletin.
Help me
Reply With Quote
  #23  
Old 08-30-2011, 11:39 AM
Gn_Snake Gn_Snake is offline
 
Join Date: Feb 2006
Location: Italy
Posts: 358
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The button has stopped working, perhaps with the upgrade vbulletin?

I have 4.1.5 patch level 1
Reply With Quote
  #24  
Old 09-06-2011, 06:18 PM
doctorsexy's Avatar
doctorsexy doctorsexy is offline
 
Join Date: Mar 2011
Location: earth
Posts: 383
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Working on my 4.1.5
Reply With Quote
  #25  
Old 02-03-2012, 08:28 AM
sevak sevak is offline
 
Join Date: Jan 2012
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

done as you mentioned below [title] in postbit_legecy i paste the link but nothing happened...
Reply With Quote
  #26  
Old 02-06-2012, 05:16 PM
Toorak Times's Avatar
Toorak Times Toorak Times is offline
 
Join Date: Jan 2011
Posts: 436
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks mate, worked a treat! Sent my first G+ straight away
Reply With Quote
  #27  
Old 03-27-2012, 10:51 PM
Mopar1973Man's Avatar
Mopar1973Man Mopar1973Man is offline
 
Join Date: Mar 2007
Location: New Meadows, Idaho
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I put a slight twist on this to fit vB 4.1.11

First off the css...

Find the postbit.css template

Find this line...

Code:
/* CSS Document */
Add below...

Code:
/* google plus one button*/
#plus-one {       
	float: right;
	top: -5px;
	position: relative;
}
Then go find the postbit template.

Find...

Code:
<vb:if condition="$show['messageicon']"><img src="{vb:raw post.iconpath}" alt="{vb:raw post.icontitle}" /> </vb:if>{vb:raw post.title}
Below...

Code:
<vb:if condition="$post['isfirstshown']">
<div id="plus-one"><g:plusone></g:plusone></div>
</vb:if>
This will produce a single Google +1 tag on the first post.



Basically the same thing but slightly tweaked...
Reply With Quote
  #28  
Old 10-25-2012, 10:03 AM
parveznpt parveznpt is offline
 
Join Date: Jul 2009
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks...............Brother


http://www.pakians.com/forum.php
Attached Images
File Type: gif Pakias.gif (43.8 KB, 0 views)
Reply With Quote
  #29  
Old 10-31-2012, 02:08 PM
JAFRI's Avatar
JAFRI JAFRI is offline
 
Join Date: Jun 2009
Posts: 203
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice work...

Code:
<div style="float: right; padding: 0px 0px 0px 0px;">
<!-- Place this tag in your head or just before your close body tag -->
<script type="text/javascript" src="http://apis.google.com/js/plusone.js"></script>
<!-- Place this tag where you want the +1 button to render -->
<g:plusone></g:plusone></div>
and this too.

Code:
.bbcode_container {
    margin: 30px 20px 20px;
}
Reply With Quote
Reply


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 03:43 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04317 seconds
  • Memory Usage 2,319KB
  • Queries Executed 24 (?)
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
  • (9)bbcode_code
  • (1)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
  • (2)pagenav_pagelink
  • (9)post_thanks_box
  • (3)post_thanks_box_bit
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (1)postbit_attachment
  • (9)postbit_onlinestatus
  • (9)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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete