The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
v3 Arcade Share Tools - Facebook, Google+, Twitter and More Details »» | |||||||||||||||||||||||||||||||||||||
v3 Arcade Share Tools - Facebook, Google+, Twitter and More
Developer Last Online: Nov 2023
This is loosely based on my v3 Arcade Integrate Facebook and Twitter Add-on.
This template modification will add submit buttons to Facebook, Twitter, Google +1, StumbleUpon and Pinterest. 1. Open v3ARCADE_PLAY template Find: Code:
{vb:raw headinclude_bottom} Code:
<meta property="fb:app_id" content="xxxxxxxxxxxxxxx" /> <meta property="og:title" content="{vb:raw game.title}" /> <meta property="og:type" content="website" /> <meta property="og:description" content="{vb:raw game.description}" /> <meta property="og:url" content="{vb:raw vboptions.bburl}/arcade/game-{vb:raw game.gameid}/" /> <meta property="og:image" content="{vb:raw vboptions.bburl}/images/arcade/{vb:raw game.stdimage}" /> Find: Code:
<div class="blockrow" align="center"> <vb:if condition="!$show['challenge'] AND !$show['tournament']"> <img src="{vb:raw vboptions.arcadeimages}/backtip.gif" border="0" alt="" /> <vb:else /> {vb:rawphrase challenge_warning} </vb:if> </div> Code:
<div class="collapse"><h3 class="blockhead">Share and Bookmark</h3> <div class="blockrow" align="center"> <div> <table width="300" height="75" border="0" align="right"> <tr bgcolor="#d2e7fd"> <td width="60" align="center"> <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> <g:plusone size="tall" count="true"></g:plusone> </td> <td width="60" align="center"> <script src="http://widgets.fbshare.me/files/fbshare.js" type="text/javascript"> </script> </td> <td width="60" align="center"> <script src="http://tweetmeme.com/i/scripts/button.js" type='text/javascript'></script> </td> <td width="60" align="center"> <script src="http://www.stumbleupon.com/hostedbadge.php?s=5" type="text/javascript"> </script> </td> <td width="60" align="center"> <a href="http://pinterest.com/pin/create/button/?url={vb:raw vboptions.bburl}/arcade/game-{vb:raw game.gameid}&media={vb:raw vboptions.bburl}/images/arcade/{vb:raw game.stdimage}&description={vb:raw game.title} -- {vb:raw game.description}" class="pin-it-button" count-layout="vertical" target="_blank"><img border="0" src="//assets.pinterest.com/images/PinExt.png" title="Pin It" /></a> </td> </table> </div> 2. Still in v3ARCADE_PLAY Find: Code:
<!-- main --> <div class="blockrow">{vb:raw flashcode}</div> Code:
<!-- main --> <vb:if condition="$show['guest']"> <div class="standard_error"> <h2 class="blockhead">Arcade Error Message</h2> <div class="blockbody formcontrols"> <p class="blockrow">Sorry, guests cannot play games in the arcade, you must be a registered member of {vb:raw vboptions.bbtitle} to play games and submit scores.<br/><br/> This will also allow you to compete on our arcade leaderboards, play tournaments or challenge other players to a 1v1 match.<br/><br/> Registration is quick, free and simple. Click <a href="register.php">HERE</a> to join our site.</p> </div> </div></vb:if> <vb:if condition="$show['member']"><div class="blockrow">{vb:raw flashcode}</div></vb:if> 3. Open your footer template and add this to the bottom Code:
<script type="text/javascript" src="//assets.pinterest.com/js/pinit.js"></script> 4. Open your v3arcade_headinclude template and at the bottom add this: Code:
<script>var fbShare = {url: '{vb:raw href}',size: 'large',badge_text: 'fff',badge_color: '6666CC',google_analytics: 'true'}</script> History 11.05.12 - v1.04 - Revised code and some additional Facebook integration code 13.04.12 - v1.03 - Added Pinterest Integration. Removed support for Facebook Comments 19.12.11 - v1.02 - Fixed Facebook Comments 05.07.11 - v1.01 - Fixed problem with Twitter counter not updating 20.06.11 - v1.00 - Initial release How To Add 'Pin It' button if upgrading (www.pinterest.com) - https://vborg.vbsupport.ru/showpost....8&postcount=12 If anyone wants to further develop any of my addons, you are free to do so. Screenshots
Show Your Support
|
Comments |
#2
|
|||
|
|||
A note on above...only one of the 3 options needed right?
I tried all 3 and realized you only need one of them. Had to back some of the code out. Might clear the instructions a bit Gemma, but very good work otherwise. I love it. |
#3
|
||||
|
||||
I thought they were clear and simple
I've made them as clearer I think. :erm: |
#4
|
||||
|
||||
Thank you!
/me clicks install |
#5
|
||||
|
||||
I'm getting reports of the twitter counter not updating (or staying at 0) even though the tweets are being sent to the twitter page so I've changed the twitter code to fix this.
In your v3ARCADE_PLAY template find: Code:
<td width="60" align="center"> <a href="http://twitter.com/share" class="twitter-share-button" data-count="vertical">Tweet</a> <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script> </td> Code:
<td width="60" align="center"> <script src="http://tweetmeme.com/i/scripts/button.js" type='text/javascript'></script> </td> |
#6
|
||||
|
||||
Something has gone skew-whiff with the Twitter button, seems like they have changed it and the alignment is all wrong.
If it is a problem for you, you may want to revert to using this alternative until I fix it up. https://vborg.vbsupport.ru/showpost....39&postcount=5 |
#7
|
||||
|
||||
THanks Gemma,works perfectly on 4.1.10.
But I have a question : sharing any game with my profile facebook,it links my homepage forum not the game Something to fix? |
#8
|
||||
|
||||
I'll look into it when I get time.
|
#9
|
||||
|
||||
Ok thanks
|
#10
|
||||
|
||||
Something new?
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|