Show Thread Enhancements - Social Buttons with Short Share URL
Description:
This Modification will help you to add social buttons in thread conversation toolbar
using your site short urls e.g. http://example.com/node/xxxx
using original social buttons code
only one template modification
supporting vb5 responsive style
supporting LTR and RTL style
supporting style variables
Open your site [Admin CP]
Go to [Styles & Templates] > [Search Templates]
Select your style from [Search in Style]. Put the following code in [Search for Text] and press [Find] button
<vb:if condition="!empty($showSubscriberFilter)">
Select the template named [conversation_toolbar]
Find the above line in the [conversation_toolbar] template code as shown bellow
... ... ...
... ... ...
</vb:if>
</ul>
</div>
<vb:if condition="!empty($showSubscriberFilter)">
<vb:comment>
This form will be hidden and will not be shown at all but this will be programmatically used for paginating and sorting the Subscriber header 'Last Activity' in Subscription widget.
</vb:comment>
... ... ...
... ... ...
Add the the following code above the red line
Note 1: You must replace "EXAMPLE.COM" with your website naked domain. There are 3 links.
Note 2: If your vBulletin files installed inside a folder, add the folder. e.g. example.com/vb
i made a mistake! Maybe i didnt. leaving the bolded did not work for my site(G+). however if i change the bolded to platform.js everything works fine. am not sure which .js google want people to use. in the snippet it was platform.js however in their documentation it is plusone.js.
any way if gplus one does not work for you just substitute the .js and see if it will work.
It works for 5.1.4 thanks :D
Works great in 5.1.1 :D
Nice little add-on, thanks! Works well with vBulletin 5.1.4.
Anyone know how to add this to the article (CMS) conversation bar?
Very nice! Seems to work well on 5.1.4. Thanks!!!
Anyone have any idea how to adjust the code so these DO NOT show up on the floating bar?
Great, this is what I was looking for!
Works in 5.1.5
Thanks
Anyone know how to add this to the article (CMS) conversation bar?
any one have idea about that question , i need this urgently please !
Seems to be working well in 5.1.4. Thanks! :up:
any one have idea about that question , i need this urgently please !
You just need to edit the first line. Change this:
<vb:if condition="$page['view'] == 'thread'">
for this:
<vb:if condition="$page['view'] == 'thread' OR $page['view'] == 'stream'">
Tested en VB 5.1.5 it doesn't works u.u
Upgrade vb 5.1.6 please :)
Can this be restricted to certain forums based on channel permissions? I have some private areas of the board where I wouldn't want this.
Work fine in 5.1.6.
Great! :D
In spanish forums replace this line:
.share-buttons .facebook { width:135px; }
for this:
.share-buttons .facebook { width:175px; }
because Like = "Me gusta" and Share = "Compartir" and 135 px cut the bottons.
Can you help me adding linkedin button?
Regards!
Works well on 5.1.7.
For French, replace
.share-buttons .facebook { width:135px; }
by
.share-buttons .facebook { width:160px; }
Hello,
THose buttons are not asynchronous.
Bellow you will found the code for making them asynchronous (note that I didn't include G+ but can be added).
return t;
}(document, "script", "twitter-wjs"));</script>
</div>
</vb:if>
<vb:comment>END of Social Buttons Code</vb:comment>
does it work with vb 5.1.9 ?
Some reason, the facebook like and share buttons no longer display on my site. Only the tweet or google + 1 does. Version 5.1.9 ....
To note, it was working fine, did Facebook make a change?
Its useful thanks
This one works well on 5.1.9.
I would prefer the little + symbol on the end to give people multiple choice though. It will save room in the toolbar.
I will try that one myself.
Looks like Google Plus changed their code so that doesn't work. I actually prefer @VB_Nils code but am having trouble getting the facebook buttons in english. v5.1.9
Does anyone know how to force or change the image that Facebook grabs on shared threads? This mod works great for me but the Facebook post grabs my logo in the header which isn't a 1:1 ratio so it looks crappy on Facebook.
Example Attached
5.1.10 doesn't work
On vb 5.2 doesn't work
On vb 5.2 doesn't work
Which part doesn't work?
Which part doesn't work?
There doesn't work nothing , idk why ,, I will try again, is that works for you?
There doesn't work nothing , idk why ,, I will try again, is that works for you?
The reason I ask is because the elements all go into position, so that works.
The Tweet aspect also works.. But Facebook, and Google+ have issues. . .
The reason I ask is because the elements all go into position, so that works.
The Tweet aspect also works.. But Facebook, and Google+ have issues. . .
For me doesn't work nothing ,,,, idk why ...
Go to the style you want to add it to. Open the conversation_toolbar template in that style and delete all code there. Then copy and paste the code in the attachment into the conversation_toolbar and save.
Don't forget to change the site name for your site.
I am not sure yet what the node/xxxx stuff means yet.
Go to the style you want to add it to. Open the conversation_toolbar template in that style and delete all code there. Then copy and paste the code in the attachment into the conversation_toolbar and save.
Don't forget to change the site name for your site.
I am not sure yet what the node/xxxx stuff means yet.
Thanks , already fixed :)
I just put code on wrong line
Thanks , already fixed :)
I just put code on wrong line
And how about Facebook and Google+?
And how about Facebook and Google+?
are working ok , just changed a little bit on code there
are working ok , just changed a little bit on code there
Then it would be good to show me the code that you changed in order to make it work don't you think?
Thanks.
I will pm you
Then it would be good to show me the code that you changed in order to make it work don't you think?
Thanks.
I think it would be good for you to show others the code that was changed in order to make it work.
Thanks,
Secret Squirrel
I think it would be good for you to show others the code that was changed in order to make it work.
Thanks,
Secret Squirrel
there is not big deal, I just changed a the width a little bit and that's it
I think it would be good for you to show others the code that was changed in order to make it work.
Thanks,
Secret Squirrel
What would you say was contained within the attachment here (http://www.vbulletin.org/forum/showpost.php?p=2563490&postcount=45). . .?
I tried this and a couple of others. I am sure it isn't the mod that is at fault but no images are pulled from the database when a link is posted to any of the sites.
And this:
http://www.vbulletin.org/forum/showthread.php?t=320779
Basically, when an attachment is quoted or when a link is posted, no images are seen.
vB5 issue I am sure. . . Correct me if I am wrong. . .
Working fine in 5.2.1
But just a quick question here -- how about if I wanted to have this show up in every post so that one could just use it to tweet a link to each individual post rather than tweet the first post of a thread? I tried tinkering around with this code but failed horribly LOL.
Thank you so much. The website is looks really good with this.
Works good with 5.2.3! I don't suppose anyone knows the code to add Linkedin share? This one I can probably figure out through linkedin but I thought I would ask.
It pulls my logo into the posts, but the logo is too big on facebook and google. Any remedies?
Also, I would love to add this into my articles and blogs as well. Thanks so much, this is great, I needed it.
Nevermind about adding to articles and blogs, @justunboxing posted the code above, and that worked too! Marked as installed.
I found the linkedin code from the developer site, <script src="//platform.linkedin.com/in.js" type="text/javascript"> lang: en_US</script>
<script type="IN/Share" data-url="http://www.agentlinkus.com"></script>
Where does it pull the image from on a share to facebook? https://www.vbulletin.org/forum/external/2016/09/3.png
as you can see it just shows a plain white image. How would I change this?
Where does it pull the image from on a share to facebook? https://www.vbulletin.org/forum/external/2016/09/3.png
as you can see it just shows a plain white image. How would I change this?
Your site has to implement Open Graph meta tags in order for social media sites to be able to extract the metadata that includes the image thumbnail to use. I have a mod that does this.
Working just dandy in 5.2.4 along with Glenns Open graph meta tag mod. Highly recommend that to anyone sharing content across social media platforms.
along with Glenns Open graph meta tag mod.
Glad my mod works for your site. :)