Google + 1 and PhpBB3

Modifications for phpBB3.
Try the Mods here and share Your own Mods
Forum rules
You dont have to use ModX or make your mod AutoMod compatible. A simple textfile is fine
But if you post Mods here You also have to give support

Google + 1 and PhpBB3

Post by Terr0r »

it is about there are many many js files of this

Code: Select all

<!-- IF SCRIPT_NAME == "viewtopic" or SCRIPT_NAME == "viewforum" -->
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
<!-- ENDIF -->
state in the overall_header.html

and no one of the js files state in the overall_footer.html that is why it is loading better and faster

Google + 1 and PhpBB3

Post by Stoker »

By placing it in the footer the entire site will load before the script.
The you wont notice the load from the script.

Google + 1 and PhpBB3

Post by Vox Populi »

It did not make much difference via the footer or header. Very slight at the most.

Heads up for others. This snippet works in Subsilver2 styles also. Logged in as an admin or moderator it's a bit ugly as its just a hair above the Mod Panel link and it crowds it a bit but it's fine for regular users.

Google + 1 and PhpBB3

Post by Stoker »

This is how it looks for me:
ss.png
You do not have the required permissions to view the files attached to this post.

Google + 1 and PhpBB3

Post by Vox Populi »

It looks like that for me too but in a subsilver 2 style it looks like this (not to the regular user though). I'll tidy it up later.
Screenshot_1.png
Trust me. I don't use Subsilver anything but this here on my site for those that do which is currently ZERO. :shock:
You do not have the required permissions to view the files attached to this post.

Google + 1 and PhpBB3

Post by Stoker »

Oh, subsilver2. Edits probably have to be tweaked a bit.

Google + 1 and PhpBB3

Post by neuropass »

it does not pass the xhtml validation though. to pass the validation you need to escape the edits with java script. ;)

Google + 1 and PhpBB3

Post by Nully »

Hello,
what do you mean by "escape the edits with java script" ?

Google + 1 and PhpBB3

Post by Stoker »

Neuropass is wrong, this version validates just fine ;)

Google + 1 and PhpBB3

Post by Nully »

Fine.
It works! It is validated by W3C.

It seams fast also, meanwhile I have 2 others scripts (Google analytics and Tapatalk detect).
I inserted the code both in overall_footer of Prosilver and Prosilver_SE.