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 11-07-2010 03:56 AM

I visited the 4.x site in your signature- I see you have the tweet counter disabled (data-count="none") what was the issue you were having with the counter? Sometimes I've seen twitter themselves show the wrong count for a few hours but eventually it gets 'fixed' - I guess Twitter themselves are still working out the bugs.

You also may want to try the option in post number 42 of this thread if you are having issues with the counter.

oldfan 11-07-2010 06:07 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2118912)
I visited the 4.x site in your signature- I see you have the tweet counter disabled (data-count="none") what was the issue you were having with the counter? Sometimes I've seen twitter themselves show the wrong count for a few hours but eventually it gets 'fixed' - I guess Twitter themselves are still working out the bugs.

You also may want to try the option in post number 42 of this thread if you are having issues with the counter.

i tried #42, once I tweet the post it says (1 tweet) once i surf again and go back to the post it says zero again.

BirdOPrey5 11-07-2010 07:18 PM

OK Try this... replace the existing Twitter code:
Code:

<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="YOUR_TWITTER_USERNAME">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
Replace with:
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>
Be sure to change YOUR_TWITTER_USERNAME to your twitter username and http://www.example.com/forums/ with the URL of your forums...

This *should* fix all issues with the count disappearing when leaving a page and coming back.

oldfan 11-08-2010 01:06 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2119179)
OK Try this... replace the existing Twitter code:
Code:

<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="YOUR_TWITTER_USERNAME">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
Replace with:
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>
Be sure to change YOUR_TWITTER_USERNAME to your twitter username and http://www.example.com/forums/ with the URL of your forums...

This *should* fix all issues with the count disappearing when leaving a page and coming back.

same thing, tweet count disappears
this is the code I used

Quote:

<div id="fb_likeframe" style="border: none; overflow: hidden; height: 27px; width: 95px; vertical-align: text-bottom; padding-top:1px;"><a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="metallitweets" data-url="http://www.metallifukinca.com/{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>{vb:raw fblikebutton}
</vb:if>

BirdOPrey5 11-08-2010 02:16 AM

The code looks absolutely right... I would just remove the canonical link element if you're not using it at this point... the URL showing in the canonical link is different than the url showing in the twitter code, which could be the problem.

oldfan 11-08-2010 04:04 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2119316)
The code looks absolutely right... I would just remove the canonical link element if you're not using it at this point... the URL showing in the canonical link is different than the url showing in the twitter code, which could be the problem.


ga? :eek:

BirdOPrey5 11-08-2010 02:25 PM

Quote:

Originally Posted by oldfan (Post 2119337)
ga? :eek:

I don't understand the question. :confused:

oldfan 11-08-2010 09:29 PM

Quote:

Originally Posted by oldfan (Post 2119337)
ga? :eek:

Basically I don't understand what you mean by

Quote:

I would just remove the canonical link element if you're not using it at this point... the URL showing in the canonical link is different than the url showing in the twitter code, which could be the problem.

BirdOPrey5 11-08-2010 10:43 PM

Ahhh... OK basically I went to this thread on your forum: http://www.metallifukinca.com/showthread.php?14228-test

And then I went to "View Source" in my browser.
Then on line 15 of the source you have this line:
Code:

<link rel="canonical" href="http://www.metallifukinca.com/showthread.php?14228-test" />
This is the canonical link element. I assume you added it when you followed the instructions in post 42... since it didn't solve the problem you should probably remove it. I think it would be in your headinclude template.

oldfan 11-09-2010 05:16 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2119678)
Ahhh... OK basically I went to this thread on your forum: http://www.metallifukinca.com/showthread.php?14228-test

And then I went to "View Source" in my browser.
Then on line 15 of the source you have this line:
Code:

<link rel="canonical" href="http://www.metallifukinca.com/showthread.php?14228-test" />
This is the canonical link element. I assume you added it when you followed the instructions in post 42... since it didn't solve the problem you should probably remove it. I think it would be in your headinclude template.

I removed the code from the headinclude, once you tweet the thread it goes to 1, once you refresh the 1 disappears again


All times are GMT. The time now is 10:36 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.01335 seconds
  • Memory Usage 1,756KB
  • 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
  • (6)bbcode_code_printable
  • (8)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