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)

123_y_321 11-29-2010 01:34 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2127141)
Do you have accented/non-english characters in your URL? Some people have mentioned problems with that before... in any case try this:

Code:

<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="YOUR_TWITTER_USERNAME" data-url="http://www.example.com/forum/{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_post}}">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div>
Replace "YOUR_TWITTER_USEENAME" and also replace http://www.example.com/forum/ with the URL to your forums.

Thanks for your reply! Yes, there are non-English chars in my urls. And I have tried your way; replace everything that I support to. But no luck.

BirdOPrey5 11-29-2010 01:41 PM

OK, I got 1 more trick up my sleeve... Give me a few minutes to test it... will reply back once I make sure it works.

BirdOPrey5 11-29-2010 01:56 PM

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>

123_y_321 11-29-2010 02:15 PM

you are the best. It works like a charm. Thank you very much.

BirdOPrey5 11-29-2010 02:47 PM

Glad to hear it... :up:

123_y_321 11-29-2010 04:20 PM

I tweet just fine but the count just stay as 0. Can you please review this once more time? Thank you.

BirdOPrey5 11-29-2010 04:38 PM

Yeah the count issue is a widely reported problem, some people are affected some aren't, there so far doesn't seem to be a rhyme or reason to it. One option is to disable the count completely by changing "horizontal" to "none" in the code.

One thing I would try first though is this code which tells it to specifically count the URL you're twittering:

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}" data-counturl="{vb:raw vboptions.bburl}/showthread.php?t={vb:raw threadid}">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>

123_y_321 11-29-2010 08:21 PM

wont work; i think I will disable the count completely. Thank you for your help.

oldfan 12-11-2010 01:23 PM

still no luck with this?

BirdOPrey5 12-11-2010 10:03 PM

nothing yet. :(


All times are GMT. The time now is 11:58 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.01202 seconds
  • Memory Usage 1,736KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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