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)

SouthEastSxS 08-09-2010 01:45 PM

Hi all,

I only use FaceBook and so I thought I would just use the FB part of this. Here is small piece of code I added and it worked.

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 -->

Dunno why it worked but it does. I am not a coder but I thought I would share this. My setup is in my signature.

ROTPAR 11-05-2010 11:13 PM

Works in 4.0.6 but I have a problem with the Title and Thread Preview.....when I click on the share link for facebook, it all the time shows the plain URL and nothing more. I also don't know how I can add my forum logo picture into this. THX Great mod

Popa Andrei 11-10-2010 11:30 AM

in 4.0.8 and the code above
Code:

<li class="popupmenu" id="threadtools">
PS anyone knows how to make the twitter icons show in the menu?

customcolor 11-12-2010 04:04 AM

well i found another place to put this that looks great....

go to the SHOWTHREAD template

find this line..

PHP Code:

<div id="pagination_top" class="pagination_top"

and right under it put....

PHP Code:

Share this Thread &nbsp;

<!-- 
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 -->

<
span class="seperator">&nbsp;</span>

<!-- 
Facebook Share -->
          
          <
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>
          
          <!-- / 
Facebook Share --> 



https://vborg.vbsupport.ru/external/2010/11/32.jpg

BlueCheri 02-06-2011 01:39 PM

1 Attachment(s)
Yes it's working fine :)

And how about the image of Twitter?

Also I have seen one forum, who has Digg link button also.





Quote:

Originally Posted by stormzone (Post 2120184)
in 4.0.8 and the code above
Code:

<li class="popupmenu" id="threadtools">
PS anyone knows how to make the twitter icons show in the menu?


Merenguista 02-08-2011 09:13 PM

thanks

cpvrx 03-24-2011 04:51 AM

Do you have the code for this to work in the cms/blog system?

edie 05-06-2011 07:33 PM

Does this apply to adding a Twitter button to blog and article posts (like Facebook currently)
Is this for the latest VBulletin 4?

Thank you.
- Edith Williams

zonaenlinea 05-09-2011 01:43 PM

thanks

crazymilk 05-19-2011 11:49 AM

Facebook links works but the twitter link just takes me to twitter but does not post on my twitter page

cdj 06-10-2011 08:57 PM

Quote:

Originally Posted by crazymilk (Post 2197514)
Facebook links works but the twitter link just takes me to twitter but does not post on my twitter page

Great mod, but mine is doing the same thing. The URL on the Chrome browser has the info, but it is not going into the "What's Happening?" box. We are using vB 4.1.3.

khader8888 06-11-2011 06:45 AM

can i use this mode to Vbullten 4.1.2 ??????????

fanhockeycoach 04-29-2012 04:02 PM

I have 4.1.12 Patch Level 1 and I can't find this code "<div id="pagination_top" class="pagination_top"> " anywhere in SHOWTHREAD

RichieBoy67 05-01-2012 01:50 PM

Quote:

Originally Posted by fanhockeycoach (Post 2324648)
I have 4.1.12 Patch Level 1 and I can't find this code "<div id="pagination_top" class="pagination_top"> " anywhere in SHOWTHREAD


Try searching for this instead in 4.1.12

PHP Code:

<li class="popupmenu" id="threadtools"

and then post the code above as instructed..

420 05-08-2012 07:20 PM

Will this add-on automatically post threads from a specific forum, to our Facebook page, like an RSS feed?

Thank you.


All times are GMT. The time now is 06:46 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.01611 seconds
  • Memory Usage 1,763KB
  • 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
  • (3)bbcode_php_printable
  • (3)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
  • (15)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