vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Mini Mods - Google Plusone Button [Thread, CMS and BLOG] (https://vborg.vbsupport.ru/showthread.php?t=266590)

QuocBaoNet 07-09-2011 10:00 PM

Google Plusone Button [Thread, CMS and BLOG]
 
1 Attachment(s)
Info:

Mod automatically add the Google plusone button (in Thread, CMS and BLOG) for the vBB 4.x

Mod Options (ACP):
  1. On Off mod
  2. On Off in in: Thread, CMS, BLOG
  3. Options Excluded Forums
  4. Options button sizes
Install:

1. Import XML

History:

1.0
- First release for 4.1.4

Downloads :

In Attachments

puertoblack2003 07-10-2011 08:09 PM

there's a hack already posted and with more options

https://vborg.vbsupport.ru/showthread.php?t=266159

Rekinek 07-10-2011 10:19 PM

Simplicity. THX, very nice mod. Installed, 5 stars.

AURFSCAN 07-10-2011 10:36 PM

useful for cms and blogs... thankyou.


just need ability to select which forum id's to insert into. Im doing threads manualy using

Code:

<vb:if condition="in_array($thread['forumid'],array(*,*,*))"><g:plusone size="small"></g:plusone></vb:if>
no point inserting plus1 into private forums :)

Dr.osamA 07-10-2011 11:27 PM

installed

thank you

Juggernaut 07-11-2011 12:27 AM

Quote:

Originally Posted by puertoblack2003 (Post 2219068)
there's a hack already posted and with more options

https://vborg.vbsupport.ru/showthread.php?t=266159

I don't know, I think this one is a bit different.

Graptes 07-11-2011 01:41 AM

Thank you very practical

Randomm 07-11-2011 02:47 AM

not showing up in my forum

StonePilot 07-11-2011 05:38 AM

I've got a custom theme, I guess I'll have to put in the plusone placement myself. This works on the default theme though.

QuocBaoNet 07-11-2011 08:17 AM

Mod works fine with the default style.
With a custom style, it may not work as expected.

Taggy 07-11-2011 08:25 AM

Ive just posted this fix in another mod but i will put it here as well.

When a user clicks the plus one button Google automatically redirects the javascipt from a http URL to a https URL which can add up to 5 seconds on a users page load time.

By changing

Code:

<script src=”http://apis.google.com/js/plusone.js” type=”text/javascript”></script>
To

Code:

<script src=”https://apis.google.com/js/plusone.js” type=”text/javascript”></script>
it will stop Google from making the redirect and shave valuable seconds of the page load time.

QuocBaoNet 07-11-2011 12:29 PM

Quote:

Originally Posted by Taggy (Post 2219227)
Ive just posted this fix in another mod but i will put it here as well.

When a user clicks the plus one button Google automatically redirects the javascipt from a http URL to a https URL which can add up to 5 seconds on a users page load time.

By changing

Code:

<script src=?http://apis.google.com/js/plusone.js? type=?text/javascript?></script>
To

Code:

<script src=?https://apis.google.com/js/plusone.js? type=?text/javascript?></script>
it will stop Google from making the redirect and shave valuable seconds of the page load time.

Thank you but I don't think so.
1. The code:
Code:

<script src=?http://apis.google.com/js/plusone.js? type=?text/javascript?></script>
provided by Google.

2. The button it is located on a frame and this frame has url is https://plusone.google.com/u/0/_/+1/button....

QuocBaoNet 07-11-2011 12:36 PM

Quote:

Originally Posted by AURFSCAN (Post 2219097)
useful for cms and blogs... thankyou.

just need ability to select which forum id's to insert into. Im doing threads manualy using

Code:

<vb:if condition="in_array($thread['forumid'],array(*,*,*))"><g:plusone size="small"></g:plusone></vb:if>
no point inserting plus1 into private forums :)

Updated, reinstall please :cool:

nitra1000 07-23-2011 10:44 PM

I've noticed you've used my Plusone if statements to set the size, would you mind listing me as a co-author at least?

p.s Okay if I borrow your code in return?

Randomm 07-24-2011 04:03 AM

Sucks this wouldn't work on my forum (custom)
Great mod though

AURFSCAN 07-24-2011 05:40 AM

Quote:

Originally Posted by QuocBaoNet (Post 2219290)
Updated, reinstall please :cool:

will do.. thankyou :up:

caglar_berke 07-24-2011 08:48 PM

installed

thank you

pokesph 08-02-2011 06:24 PM

any chance of you back-porting this to vB3.8.x?


All times are GMT. The time now is 07:13 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.01100 seconds
  • Memory Usage 1,752KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (18)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