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)

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?


All times are GMT. The time now is 03:55 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
  • Page Generation 0.01170 seconds
  • Memory Usage 1,745KB
  • 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
  • (1)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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