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 - Twitter - Tweet Button in SHOWTHREAD (https://vborg.vbsupport.ru/showthread.php?t=248569)

BirdOPrey5 06-11-2011 04:49 PM

Quote:

Originally Posted by TWood (Post 2206296)
Heh,

I also submitted this as a bug report to vBulletin and they acknowledged the bug but downgraded it from my "Major" rating to "Minor". Not being able to let your Twitter users with a large number of followers share a link to your forum is minor?

Well there is a "fix" in post # 143 that will let you use this mod- it just takes a little extra code. So I can understand why it's not major... Major is: Oh crap, the new editor doesn't work on iPhones and iPads. That's major.

scubasteve3 06-13-2011 11:21 PM

I've followed your instructions and I am getting a few errors. For some reason "[/CODE] " Shows up next to my facebook like button now. Anyway to get rid of this?
Is there anyway to make it so that the twitter link is shortened or truncated automatically? Right now its a long and nasty URL.

Unfortunately the twitter count fix in post #147 did not work for me :(

Brandon Sheley 06-14-2011 03:02 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2127153)
OK... use this code... remember to replace the username with your own...

This should remove all the special characters from your URL so it should work with twitter... please let me know.

Code:

<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="YOUR_TWITTER_USERNAME" data-url="{vb:raw vboptions.bburl}/showthread.php?t={vb:raw threadid}">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>

Hello
I have 2 issues with this code, one it's not showing all the past "tweets" our home page has over 100..

Also the link didn't include the thread ID eg..

general-forums.com/showthread.php?t=

Thanks for the code

BirdOPrey5 06-14-2011 10:24 AM

Quote:

Originally Posted by scubasteve3 (Post 2207375)
I've followed your instructions and I am getting a few errors. For some reason "[/CODE] " Shows up next to my facebook like button now. Anyway to get rid of this?
Is there anyway to make it so that the twitter link is shortened or truncated automatically? Right now its a long and nasty URL.

Unfortunately the twitter count fix in post #147 did not work for me :(

If [/code] is showing up next to your facebook button you must have accidentally copied "[/code]" from somewhere. Search your template for [/code] and simply delete it.

The twitter link should automatically be shortened using a built in URL shortener. Can I get a link to a page with this problem?

BirdOPrey5 06-14-2011 10:26 AM

Quote:

Originally Posted by Brandon Sheley (Post 2207428)
Hello
I have 2 issues with this code, one it's not showing all the past "tweets" our home page has over 100..

Also the link didn't include the thread ID eg..

general-forums.com/showthread.php?t=

Thanks for the code

This mod doesn't show tweets anywhere so I don't understand how that could be a problem. It only allows people to send tweets. And they aren't tweeting AS you, they tweet as themselves, but with a link to your forum page.

As for the no threadid is your button in the SHOWTHREAD template? The code I give ONLY works in the SHOWTHREAD template.

If it is in SHOWTHREAD what version of vBulletin are you using?

TWood 06-30-2011 11:05 PM

I see you switched to Add This as a solution. I compared that to Share This and went with them instead. Six to one half dozen of the other I suppose, but Share This just felt better, for me.

I considered adding it to the bottom of the navbar so it would be on every page, but then decided to add it to only a few templates, since there was no reason to 'share' every page.

BirdOPrey5 07-01-2011 02:37 PM

I checked out Share This- it looked good initially but what I don't like about it is that you need to give permission for Share This to interface it's own app with Facebook and Twitter whereas AddThis works directly with their API's and no special permission is needed. I for one basically never give 3rd party apps permission to work with my facebook or twitter accounts and I know that would stop a lot of people from sharing content on my site if they had to.

Sage Knight 07-02-2011 03:26 PM

Sir, I've been searching this for a while now, but I'm running 4.1.3

Do you plan on updating soon?

TWood 07-02-2011 03:53 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2215478)
I checked out Share This- it looked good initially but what I don't like about it is that you need to give permission for Share This to interface it's own app with Facebook and Twitter whereas AddThis works directly with their API's and no special permission is needed. I for one basically never give 3rd party apps permission to work with my facebook or twitter accounts and I know that would stop a lot of people from sharing content on my site if they had to.

Yeah, I understand what you mean. So I've placed both of them for now, using the text versions so maybe it won't confuse people too much.

https://vborg.vbsupport.ru/external/2011/07/52.png

What I don't like about AddThis is that is doesn't show you the actual URL that it is sharing in the interface window for Facebook or Twitter (maybe others), just the shortened version. So you have make the link then click on it in your FB/Twitter page to test it. ShareThis shows both the actual URL and the shortened one in the interface window.

BirdOPrey5 07-02-2011 03:54 PM

Quote:

Originally Posted by Sage Knight (Post 2215891)
Sir, I've been searching this for a while now, but I'm running 4.1.3

Do you plan on updating soon?

I'm glad you brought this up.

Today I released this mod: https://vborg.vbsupport.ru/showthread.php?t=266159

Adds the Twiitter, Google, Digg, and more share buttons to vBulletin and is compatible with all 4.0.x and 4.1.x versions.

I will be ending support for this mod as it is now out-dated.

Fudgyyy 02-14-2012 05:29 AM

tagged


All times are GMT. The time now is 01:28 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.01300 seconds
  • Memory Usage 1,751KB
  • 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
  • (6)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
  • (11)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