![]() |
Submit to Twitter, Facebook and Digg
1 Attachment(s)
I have been adding these as I go and decided to share, I am sure there are other versions out there but this is how I do it. See screenshot for example of where it goes and how it looks. Keeping up with the latest in social networking keeps traffic flowing to your site.
This can all be added at once or you may add only the one's you want. Additionally, this will probably work in any version of vB. In the SHOWTHREAD template find: Code:
<td class="vbmenu_control" id="threadtools" nowrap="nowrap"> Code:
<!-- Facebook Share --> enter the forum id's of the forums where you do not want it to show <if condition="in_array($forum['forumid'], array(1,2))"> You will also see that in the digg section there is an option to change the background color and you will need to add your site URL. The tweet image is attached, upload to your forum and change the path in the "Twitter Share" section. Update: This has also been updated to vB4 Beta 3 here https://vborg.vbsupport.ru/showthread.php?t=228610 |
nice
thank you |
thanks! One question though: what do you mean by "forumid" ?
sorry for the lack of knowledge...i'm still learning a lot of this stuff |
Quote:
Each forum has a forumid number associated with it. To see which number is associated with which forum go to your Admin CP Forums & Moderators > Forum Manager and click on any forum, on the very top title bar it will give the forumid number. If you want it visible in all forums you can simply remove the numbers, for example change: <if condition="in_array($forum['forumid'], array(1,2))"> to <if condition="in_array($forum['forumid'], array())"> |
Installed and working perfectly! Awesome mod.
Want to take it a step further? Why not make it a drop down box instead of a row of buttons. Maybe a button or the text Share and you when you click on it a drop down box appears with all the different choices. Thoughts? |
Quote:
I thought about that, it wouldn't be hard but I wanted them easily noticeable. |
True. Maybe make a second mod or add on to this one for those who want a drop box instead?
Or PM me with it? :cool: |
Quote:
https://vborg.vbsupport.ru/showthread.php?t=187190 |
That looks tacky (to me). I think something as simple as what you have, but with a drop down box with the different icons.
|
1 Attachment(s)
Quote:
Knowing this, if you want to add it here's what you do... In the showthread template find: Code:
<td class="vbmenu_control" id="threadtools" nowrap="nowrap"> Add this above it: Code:
<!-- social networking menu setup --> Find: Code:
<!-- thread tools menu --> Add this above it: Code:
<!-- social networking menu --> |
I think if you remove the Submit to Twitter and Submit to Digg text it will look perfect.
|
Quote:
|
<a href="https://vborg.vbsupport.ru/showthread.php?p=1783648#post1783648" target="_blank">https://vborg.vbsupport.ru/showt...48#post1783648</a> look this
|
i need facebook.
Thanks ^^ |
I'd recommend tweaking the optional dropdown a bit so that the button and the description are in different columns within the dropdown. Much cleaner that way IMHO.
|
Quote:
|
works great, thanks
|
Cool mod. Is there any way to get it working with vBSEO?
|
Quote:
|
Pretty sweet, thanks.
|
using this code for the menu, it's not showing the words "Submit to Twitter"....
Code:
<!-- social networking menu --> tks. (plus where is it getting the image for FaceBook, it's showing images from my forums like avatars :} |
Quote:
It's grabbing the images from Facebook and Digg directly from their sites, the image for Twitter needs to be uploaded to your forum. |
Quote:
|
Quote:
As for Facebook taking images from the thread, it does that by default but you can check no image and it will ignore it. |
Quote:
|
Great mode. Thank you very much - sending good karma your way!
|
Can the url automatically be shortened using one of the services that does that - I've seen a mod for wordpress that does that. I'd definitely want to use this then.
|
Are you referring to the Twitter section? It changes the URL automatically upon submission.
For example, when I click the twitter button in this link http://www.politicalgroove.com/news/...es-u-turn.html the it grabs the post title and the URL and looks like this (in the box before you submit): north korean ship does a u-turn - PoliticalGroove Forums http://www.politicalgroove.com/news/...es-u-turn.html Then after you submit, it automatically changes the URL to shorten it, like this: http://bit.ly/OH0tU |
oh nice :)
|
Nice mod, using the second one. Scrapped the digg button & kept Facebook & Twitter, works like a charm after some modification to images.
Thanks |
i have some error and dunno where i must fix about the code, sometimes successfull, sometimes came like this when i press the button SHARE |F| (the pop up windows came up to share to FB but cannot got the info about thread that i wanna to share) :
(Must be at least 4 characters, letters and numbers only.) Email Address: (We’ll send your password to this address, so triple-check it.) so....error in where code? cause some times is successful in other thread when i press the button, came with the title post and image from my forum, can u tell me how to fix about this? i use the code from the Thread Starter and my forum using the VBSEO, and about the link to twitter is great, i had tried and successfull but some problem in share to FB. regards yossie3660 |
Quote:
|
Had a user call me today and ask for something like this.
Easy to install. Mike |
Good Stuff, Always looking for ways the members can help promote. Putting this in there face may work. *Installed*
|
I read and reread and tried to place the code, but I am showing nothing. I am not sure I am placing the code in the right place. Can you lead a poor site owner to the water? LOL! Thanks.
|
I would like to ask, can I move the image "http://b.static.ak.fbcdn.net/images/...share_icon.gif" to my own host ?
|
Great job on putting this block of code together for easily sharing the content. I know VBulletin already has Digg and StumbleUpon built in but having Twitter as part of the services to share too is key these days. I'm using the drop down menu version and it works a treat.
|
Quote:
|
Nice Mod, installed.
I would like to see something similar someday, but be able to do an inclusive array, not an exclusive one, meaning to be able to select JUST the forums we want this to display rather than entering all the forumids where you don't want it. However I appreciate the free code and will use it and thanks for all the time you put into it. Nice work. |
FaceBook doesn't have the thread URL.
|
All times are GMT. The time now is 04:30 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|