vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Show Thread Enhancements - Submit to Twitter and Facebook (https://vborg.vbsupport.ru/showthread.php?t=228610)

dannefaerd 01-15-2010 05:50 AM

Loving it.

Is there an option/chance to have something like this for Articles in CMS?

vivamexico55 01-17-2010 02:47 PM

Is this still supported on 4.01?

I'd like to try it but I'm afraid it will break with one of the frequent vb4 patches...

ericgtr 01-17-2010 02:54 PM

Yes, it still works just fine. It's simply a template addition and hasn't broken anything that I am aware of yet.

3DUInc 01-19-2010 04:28 AM

Thank you very much! Works perfectly! :D



Quote:

Originally Posted by dannefaerd (Post 1956247)
Loving it.

Is there an option/chance to have something like this for Articles in CMS?

Yes this would be very cool as well and blogs. :)

movslow 01-21-2010 02:45 PM

Tagged for future releases once the glitches are iron'd out.
:up:

ericgtr 01-22-2010 12:28 PM

Quote:

Originally Posted by movslow (Post 1962408)
Tagged for future releases once the glitches are iron'd out.
:up:

What glitches? This mod functions exactly as intended.

dangerin 01-22-2010 12:29 PM

really good mod but it do not work with facebook.
with twitter it's allo ok but is use really more facebbok.
Thanks

ericgtr 01-22-2010 12:31 PM

Quote:

Originally Posted by dangerin (Post 1963324)
really good mod but it do not work with facebook.
with twitter it's allo ok but is use really more facebbok.
Thanks

I would double check you installation because both of these work. :)

dangerin 01-22-2010 12:50 PM

what do you mean with double check? the firs sharing with fb has gone ok but now all the others no.
with twitter it's alal perfect

ericgtr 01-22-2010 01:46 PM

Quote:

Originally Posted by dangerin (Post 1963341)
what do you mean with double check? the firs sharing with fb has gone ok but now all the others no.
with twitter it's alal perfect

Do you have a link to your forum?

ericgtr 01-22-2010 01:57 PM

Thanks for PMing me a link... I tested it out on your site and was able to both Twitter and Facebook one of your posts. Make sure your users are logged into those sites as well, this is functioning as it should on your board though.

dangerin 01-22-2010 02:03 PM

if they do not log in it do not go?
my users difficult like to register and to log in..
Thank to you to have seen site and tested your mod ( i've translated share with social networks .. is possible ? )

dangerin 01-22-2010 02:11 PM

Excuse me..
an other question : This mod can be used also in cms or in blog? i do not need for blog but cms really a lot because all mi site work around the cms and for forum the user do not post and i'm trying to connect with more people .
Thanks newly

CFodder 01-23-2010 05:58 AM

1 Attachment(s)
Mod appeared to work okay, but when trying to submit to facebook all it ever puts is our little blurb about our site, please see image attached. For Twitter it just gives the thread title then a link to the thread, is it supposed to do this or have text in the thread there as well?

Have tried submitting various threads and have re-edited showthread to no avail. Using VB 4.01.

S.McAvoy 01-27-2010 04:05 PM

Works like a charm! Thank you

vivamexico55 01-29-2010 02:43 PM

I installed it on 4.01 and it works =)

Buuuut... Right now I think it only shares the first post in the thread?

How can I make it so I can share individual posts out of a thread?

Thanks ! =)

ahmedipa 01-30-2010 04:16 AM

good I will test it thank you very much

cloferba 01-30-2010 11:35 AM

Quote:

Originally Posted by vivamexico55 (Post 1969831)
I installed it on 4.01 and it works =)

Buuuut... Right now I think it only shares the first post in the thread?

How can I make it so I can share individual posts out of a thread?

Thanks ! =)

im looking for the same please!

ericgtr 02-01-2010 02:18 PM

Quote:

Originally Posted by vivamexico55 (Post 1969831)
I installed it on 4.01 and it works =)

Buuuut... Right now I think it only shares the first post in the thread?

How can I make it so I can share individual posts out of a thread?

Thanks ! =)

Quote:

Originally Posted by cloferba (Post 1970401)
im looking for the same please!

Unfortunately it's designed to pull the title and URL from the thread itself so I don't think there's any way to get the code to pull individual posts out of it.

cloferba 02-01-2010 03:45 PM

and what about the url for each post...for example

https://vborg.vbsupport.ru/showpost....5&postcount=60

ericgtr 02-02-2010 04:19 PM

Quote:

Originally Posted by cloferba (Post 1972271)
and what about the url for each post...for example

https://vborg.vbsupport.ru/showpost....5&postcount=60

Actually that could probably work, all you would really need to do is add the code to your showpost template. I'm just thinking out loud but I don't see why not.

CFodder 02-02-2010 05:15 PM

Quote:

Originally Posted by CFodder (Post 1964099)
Mod appeared to work okay, but when trying to submit to facebook all it ever puts is our little blurb about our site, please see image attached. For Twitter it just gives the thread title then a link to the thread, is it supposed to do this or have text in the thread there as well?

Have tried submitting various threads and have re-edited showthread to no avail. Using VB 4.01.

Any ideas on this?

Gamempire 02-06-2010 12:37 AM

my mod with automatic tweet icon (no need to upload nothing):
Code:

                                        <!-- Facebook Share -->
          <li>
          <a name="fb_share" type="icon_link" href="http://www.facebook.com/sharer.php">Facebook</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
          </li>
          <!-- / Facebook Share -->
                                        <li>
                                                <img src="http://a1.twimg.com/a/1265328866/images/favicon.ico" align="left" style="margin:5px 5px 0 10px;" />
          <!-- Twitter Share -->
          <script type="text/javascript">
          var twtTitle  = document.title;
          var twtUrl    = location.href;
          var maxLength = 140 - (twtUrl.length + 1);
          if (twtTitle.length > maxLength) {
          twtTitle = twtTitle.substr(0, (maxLength - 3))+'...';
          }
          var twtLink = 'http://twitter.com/home?status='+encodeURIComponent(twtTitle + ' ' + twtUrl);
          document.write('<a href="'+twtLink+'" target="_blank"'+'>Tweet This!<'+'/a>');
          </script>
          <!-- / Twitter Share -->
          </li>
                                </ul>
                        </li>
      <!-- End Share FB -->


dangerin 02-07-2010 07:15 AM

and where we must put this code?

ericgtr 02-08-2010 07:33 PM

Quote:

Originally Posted by dangerin (Post 1976480)
and where we must put this code?

Please see the first post in this thread for full instructions.

is_it_me 02-09-2010 08:13 AM

This looks interesting, I am new to all this so excuse me for being a bit think, but can you confirm a couple of things:

1 - I am assuming this doesn't auto-tweet/facebook new threads, is that correct?

2 - Assuming someone has to click on it to share with twitter/FB, is it:

(a) Just the thread starter that can manually share the new thread with their twitter/FB account?

(b) Or can any registered users use it to share it with their twitter/FB account?

(c) Or is it just the thread starter and/or mods that can?

(d) Or some other combination that I haven't thought of?

Thanks in advance for any help. :)

ericgtr 02-09-2010 01:30 PM

Quote:

Originally Posted by is_it_me (Post 1978139)
This looks interesting, I am new to all this so excuse me for being a bit think, but can you confirm a couple of things:

1 - I am assuming this doesn't auto-tweet/facebook new threads, is that correct?

2 - Assuming someone has to click on it to share with twitter/FB, is it:

(a) Just the thread starter that can manually share the new thread with their twitter/FB account?

(b) Or can any registered users use it to share it with their twitter/FB account?

(c) Or is it just the thread starter and/or mods that can?

(d) Or some other combination that I haven't thought of?

Thanks in advance for any help. :)

Right, one must click on the modification in order to submit to either FB or Twitter, anyone who can view the thread can submit it to their respective account.

is_it_me 02-09-2010 04:27 PM

Quote:

Originally Posted by ericgtr (Post 1978296)
Right, one must click on the modification in order to submit to either FB or Twitter, anyone who can view the thread can submit it to their respective account.

That's what I thought/hoped - excellent & thanks. :)

As soon as vb4.02 is released and my site is upgraded I'll add in this mod. :cool:

benative 02-19-2010 02:38 AM

this works 100% fine with VB 4.0.1 but I want to get this slye on vb 4.0.1https://vborg.vbsupport.ru/attachmen...6&d=1245952051 instead of dropdown. what code should I use and where do i paste it?

Joseph Witchard 03-11-2010 02:13 AM

Does this work on vBulletin 4.0.2?

ericgtr 03-12-2010 03:54 PM

Quote:

Originally Posted by Joseph Witchard (Post 2001280)
Does this work on vBulletin 4.0.2?

Yes it still works for 4.02.

Joseph Witchard 03-14-2010 06:02 PM

Quote:

Originally Posted by ericgtr (Post 2002246)
Yes it still works for 4.02.

Awesome, thanks:D

hydn 04-06-2010 03:11 PM

How much does adding twitter java script affect page load?

Quote:

Originally Posted by Gamempire (Post 1975733)
my mod with automatic tweet icon (no need to upload nothing):
Code:

                                        <!-- Facebook Share -->
          <li>
          <a name="fb_share" type="icon_link" href="http://www.facebook.com/sharer.php">Facebook</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
          </li>
          <!-- / Facebook Share -->
                                        <li>
                                                <img src="http://a1.twimg.com/a/1265328866/images/favicon.ico" align="left" style="margin:5px 5px 0 10px;" />
          <!-- Twitter Share -->
          <script type="text/javascript">
          var twtTitle  = document.title;
          var twtUrl    = location.href;
          var maxLength = 140 - (twtUrl.length + 1);
          if (twtTitle.length > maxLength) {
          twtTitle = twtTitle.substr(0, (maxLength - 3))+'...';
          }
          var twtLink = 'http://twitter.com/home?status='+encodeURIComponent(twtTitle + ' ' + twtUrl);
          document.write('<a href="'+twtLink+'" target="_blank"'+'>Tweet This!<'+'/a>');
          </script>
          <!-- / Twitter Share -->
          </li>
                                </ul>
                        </li>
      <!-- End Share FB -->



glen290 04-16-2010 09:45 AM

Does this work with VB4.03 as i cant find "<li class="popupmenu nohovermenu" id="threadtools">"in the showthread template

sebaxtian 04-18-2010 05:01 PM

very good.. thanks

sebaxtian 04-18-2010 05:01 PM

very good.. thanks :up:
installed now..

Peter Lo 04-28-2010 12:41 AM

Can this work to also post to Facebook Group and Fan Page Walls rather than just User Walls?

justinnethers 05-31-2010 08:27 PM

Quote:

Originally Posted by glen290 (Post 2022086)
Does this work with VB4.03 as i cant find "<li class="popupmenu nohovermenu" id="threadtools">"in the showthread template

Just find "id="threadtools"" and you'll be good.

AURFSCAN 06-01-2010 03:02 AM

1 Attachment(s)
thanks ericgtr.

I just wanted facebook without the dropdown and wanted to only show it in certain forums.

- highlighted is forums to exclude

Code:


<!-- Begin Share FB -->
<vb:if condition="in_array($thread['forumid'],array(136,85,99,167,102,168,103,93,123,121,171,172,88,179,173))">

<vb:else />
<li class="popupmenu nohovermenu" id="sharefb">
<h6><a name="fb_share" type="icon_link" href="http://www.facebook.com/sharer.php">Share to Facebook</a> &nbsp;
<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script></h6>
<ul class="popupbody popuphover">       
</ul>
</li>
</vb:if>


<!-- End Share FB -->


SouthEastSxS 08-09-2010 01:05 PM

Thats doesn't exist in 4.04 either so no good to me, I wanted to use it too LOL


All times are GMT. The time now is 11:19 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01339 seconds
  • Memory Usage 1,837KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete