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
Best Way To Show Google +1 In Forum Details »»
Best Way To Show Google +1 In Forum
Version: 1.00, by VBIran VBIran is offline
Developer Last Online: Jul 2012 Show Printable Version Email this Page

Category: Mini Mods - Version: 4.1.4 Rating:
Released: 06-13-2011 Last Update: Never Installs: 10
Code Changes  
No support by the author.

Hi,

We suggest you to use this way to show your G+1 In all of pages with best Efficiency .

Example For RTL Forum :



Step 1 :

Go to this link : http://www.google.com/webmasters/+1/button/ And get your button .

Dont forget to put your site link in advanced settings .

You may get something like this :

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


<!-- Place this tag where you want the +1 button to render -->
<g:plusone href="www.vbulletin.org"></g:plusone>
Step 2 :

First put
Code:
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
In headinclude template After this code
Code:
<script type="text/javascript" src="{vb:raw vboptions.bburl}/clientscript/vbulletin-core.js?v={vb:raw vboptions.simpleversion}"></script>
Step 3 :

Then put This code In the very very top of the header template :

Code:
<style type="text/css">
.kadr {
    background:#f9fbfc;
    border:1px solid #d7dee3;
    color:#7f663a;
    font-size:11px;
    line-height:22px;
    padding-top: 3px;
    padding:5px 14px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;    
    text-align:left;
}
</style>
<div class="kadr" style="position:fixed;left:2px;bottom:2px;z-index:1000;">
+1 Us On Google :
<g:plusone href="www.vbulletin.org"></g:plusone>
</div>
You'r Done .

If you enjoy this quick mod Mark as Installed .

Good luck

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
Kaspersku

Comments
  #2  
Old 06-14-2011, 09:42 PM
whitedd's Avatar
whitedd whitedd is offline
 
Join Date: Jan 2010
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great...installed and nominated
Reply With Quote
  #3  
Old 06-14-2011, 10:37 PM
nitra1000's Avatar
nitra1000 nitra1000 is offline
 
Join Date: Dec 2009
Location: uk
Posts: 312
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Forgive me but doesn't the href attribute fix which page is plussed? I.e you can only plus vbulletin.org with your example code
Reply With Quote
  #4  
Old 06-15-2011, 02:19 AM
Dr.osamA's Avatar
Dr.osamA Dr.osamA is offline
 
Join Date: Aug 2004
Location: Syrie
Posts: 979
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you bro

installed
Reply With Quote
  #5  
Old 06-15-2011, 03:23 AM
VBIran VBIran is offline
 
Join Date: Nov 2010
Location: Iran
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
you can only plus vbulletin.org with your example code
You must get your code from google webmaster site and change the url .

vbulletin.org in code is just for example .
Reply With Quote
  #6  
Old 06-15-2011, 10:18 AM
sadiq6210 sadiq6210 is offline
 
Join Date: Sep 2005
Posts: 684
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks brother

Installed
Reply With Quote
  #7  
Old 06-15-2011, 10:46 AM
nitra1000's Avatar
nitra1000 nitra1000 is offline
 
Join Date: Dec 2009
Location: uk
Posts: 312
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by VBIran View Post
You must get your code from google webmaster site and change the url .

vbulletin.org in code is just for example .
Yes it is just an example but the url you plus is static yes?
Reply With Quote
  #8  
Old 06-15-2011, 02:32 PM
MikeF MikeF is offline
 
Join Date: Jan 2006
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Alternative to save yourself some time:

showthread

Remove:
Code:
<vb:if condition="$show['fb_likebutton']">
            {vb:raw fblikebutton}
       </vb:if>
Replace:
Code:
<vb:if condition="$show['fb_likebutton']">
<table width="100%" border="0">
  <tr>
    <td>{vb:raw fblikebutton}</td>
    <td align="right"><g:plusone size="medium"></g:plusone></td>
  </tr>
</table>    
        </vb:if>
footer

Add to very end:

Code:
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
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 10:04 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.05194 seconds
  • Memory Usage 2,292KB
  • Queries Executed 22 (?)
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
  • (7)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (1)post_thanks_box_bit
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete