PDA

View Full Version : Mini Mods - Google Plusone Button [Thread, CMS and BLOG]


QuocBaoNet
07-09-2011, 10:00 PM
Info:

Mod automatically add the Google plusone button (http://www.google.com/+1/button) (in Thread, CMS and BLOG) for the vBB 4.x

Mod Options (ACP):
On Off mod
On Off in in: Thread, CMS, BLOG
Options Excluded Forums
Options button sizesInstall:

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

<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
there's a hack already posted and with more options

https://vborg.vbsupport.ru/showthread.php?t=266159I 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

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

To

<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
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

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

<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:
<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
useful for cms and blogs... thankyou.

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

<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
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?