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 08-26-2010 05:24 PM

Quote:

Originally Posted by zelnik (Post 2089910)
Perhaps it's something to do with vbseo?

BTW: when you click the number (which is 0 most of the time) it does take you to the tweeted link on Twitter.com

That's my guess as well but I don't have vbseo... I'm trying to see if I can replicate it with what I have.

That's good it does, probably because of that link you added.

zelnik 08-27-2010 06:34 PM

Heard back from the vbseo guys and they said it is nothing to do with vbseo!

eternal_ 08-27-2010 08:06 PM

Quote:

Originally Posted by zelnik (Post 2089777)
Well I thought I had it working but the counter seems to mess up?!

When I tweet something the counter will say "1" hit refresh and it will go back to "0" and each and every time after still "0" Any ideas?

I'm having the same problem, also with wordpress, always says 0. Annoying.

eternal_ 08-27-2010 08:18 PM

Where is the headerinclude template, can't find it in my ftp client to make the change?

Quote:

Originally Posted by BirdOPrey5 (Post 2087821)
That's weird but this should fix it...

Edit your headerinclude template:

Find:
Code:

                <meta name="description" content="{vb:raw vboptions.description}" />
</vb:if>

Below it Add:
Code:

<vb:if condition="THIS_SCRIPT == 'showthread'">
<link rel="canonical" href="http://www.example.com/forum/{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_post}}" />
</vb:if>

Make sure you change http://www.example.com/forum/ to the URL to your own forums, whatever is before "showthread.php..." when you are viewing a thread. (In the example given it would be: http://www.baghdad4ever.net/vb/)

This will include a canonical link on your threads (and only threads) which over-rides the URL passed to Twitter, with hopefully, the right one now...

If this doesn't work please give me a link to your forums so I can see what is up...


eternal_ 08-27-2010 08:34 PM

Oh I found it! It's not headerinclude, it's headinclude

BirdOPrey5 08-27-2010 09:07 PM

Whoops... my bad... will fix the instructions- thanks.

tommac3 08-28-2010 02:13 AM

I dont see the code ... {vb:raw fblikebutton}

in SHOWTHREAD ... did this change in 4.0.6 ?

BirdOPrey5 08-28-2010 03:54 AM

No, I use 4.0.6 so it's definitely there... It may only be there if you have Facebook Integration turned on- not sure... if you don't use the facebook like button there are alternate instructions listed...

Also make sure there's no spaces before or after "{vb:raw fblikebutton}" in your search... Look for this code before it:
Code:

<vb:if condition="$show['fb_likebutton']">

zelnik 08-29-2010 08:33 AM

Quote:

Originally Posted by zelnik (Post 2089777)
Well I thought I had it working but the counter seems to mess up?!

When I tweet something the counter will say "1" hit refresh and it will go back to "0" and each and every time after still "0" Any ideas?

It seems to fix itself after a certain amount of hours after you click the tweet button!??!

If I go back to the thread the next day the indicator is correct (it also counts retweets which is nice)

Now the only issue is which i'm sure can't be worked around is that if the thread is multipaged the indicator only shows on one of the pages.

BirdOPrey5 08-29-2010 04:54 PM

Each page has it's own URL so if someone tweets page 2 people will be linked directly to the second page... the page # can be removed from the canonical link expression so it's always the first page that gets tweeted, but that could hurt the SEO of your forums because you giving the link to a different page then the actual content it on...If someone tweets page 2 instead of page 1 maybe the 'good' post is on the 2nd page anyway.

If it's 'fixing itself' it sounds like a Twitter server issue not keeping up with the counts... this is still new to them so maybe they will figure it out.


All times are GMT. The time now is 11:51 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.01207 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
  • (3)bbcode_code_printable
  • (4)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