vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Mini Mods - Best Way To Show Google +1 In Forum (https://vborg.vbsupport.ru/showthread.php?t=265192)

VBIran 06-13-2011 10:00 PM

Best Way To Show Google +1 In Forum
 
1 Attachment(s)
Hi,

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

Example For RTL Forum :

http://im.gg/uploaded/14062011-834541.png

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

whitedd 06-14-2011 09:42 PM

great...installed and nominated ;)

nitra1000 06-14-2011 10:37 PM

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

Dr.osamA 06-15-2011 02:19 AM

thank you bro

installed

VBIran 06-15-2011 03:23 AM

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 .

sadiq6210 06-15-2011 10:18 AM

Thanks brother

Installed

nitra1000 06-15-2011 10:46 AM

Quote:

Originally Posted by VBIran (Post 2207915)
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?

MikeF 06-15-2011 02:32 PM

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>


All times are GMT. The time now is 03:04 AM.

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.00953 seconds
  • Memory Usage 1,731KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete