vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Show Thread Enhancements - Twitter - Tweet Button in SHOWTHREAD (https://vborg.vbsupport.ru/showthread.php?t=248568)

BirdOPrey5 08-17-2010 11:48 PM

I'd bet the SEO is the problem... the link being submitted to twitter is the non SEO link, but when you visit the thread you are visiting from a different URL so the counter is zero and always will be.

I noticed the same issue if you tweet a post immediately after you submit it... when you submit a post the URL has the post number appended to the end of the URL, when you browse the thread from a forum though there is no post number just thread id so it's a different URL so the counter is different.

The way around this I believe would be to use a canonical link tag in the header but that would be very bad for your SEO purposes because you want the 'seo optimized' url not the vb default one.

MylesM 08-18-2010 08:28 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2085534)
I'd bet the SEO is the problem... the link being submitted to twitter is the non SEO link, but when you visit the thread you are visiting from a different URL so the counter is zero and always will be.

I noticed the same issue if you tweet a post immediately after you submit it... when you submit a post the URL has the post number appended to the end of the URL, when you browse the thread from a forum though there is no post number just thread id so it's a different URL so the counter is different.

The way around this I believe would be to use a canonical link tag in the header but that would be very bad for your SEO purposes because you want the 'seo optimized' url not the vb default one.

Thanks for the reply.

For now, I've removed the counter from the Tweet button. It's still a great modification none the less.

ShawneyJ 08-18-2010 08:38 AM

this is great thanks ;)

BirdOPrey5 08-21-2010 06:46 PM

If anyone is using this like I do with the Facebook Like button I added the following code so that the tweet button is centered vertically with the facebook button...

put a <div> around the tweet button code-
Code:

<div style="padding-bottom:8px;"> Original Tweet Button Code Here </div>

Eryeal 08-29-2010 09:32 PM

I have a very odd problem .. The twitter icon doesn't show up in 2 of my forums on any threads .. there is absolutely no difference in these forums in the Forum Manager, or Forum Permissions. They are set up the exact same way - the only difference is the name of the forum that I can tell. The icon just doesn't show up at all. Any ideas?

BirdOPrey5 08-29-2010 10:06 PM

Quote:

Originally Posted by Eryeal (Post 2091298)
I have a very odd problem .. The twitter icon doesn't show up in 2 of my forums on any threads .. there is absolutely no difference in these forums in the Forum Manager, or Forum Permissions. They are set up the exact same way - the only difference is the name of the forum that I can tell. The icon just doesn't show up at all. Any ideas?

If you look at the code you use there's this line:
Code:

<if condition="!in_array($GLOBALS[forumid], array(X, Y, Z))">
You need to replace X, Y, and Z with forumid numbers of forums in which you don't want to show the tweet button, like for example:

Code:

<if condition="!in_array($GLOBALS[forumid], array(11, 12, 20, 58))">
or if just 1 forum to not display the button in, for example:

Code:

<if condition="!in_array($GLOBALS[forumid], array(6))">
My guess is the forum's it's not showing for are listed in your IF statement...

If you don't have any forums in which you don't want to display the tweet button I give yo the two lines to remove in the instructions.

metalguy639 09-04-2010 10:35 AM

Thanks this is cool. I instantly got traffic when I tweeted my threads. not sure if they are bots or real people but at least the links are getting out there :)

Prisoner 09-05-2010 10:38 PM

I added this and the Facebook button at the same time and people freaked out at seeing their Facebook (Real) name on the forum. Even though only their friends can see that, it made them uncomfortable.

I may add the Tweet button back on.

BirdOPrey5 09-05-2010 10:55 PM

Quote:

Originally Posted by Prisoner (Post 2094324)
I added this and the Facebook button at the same time and people freaked out at seeing their Facebook (Real) name on the forum. Even though only their friends can see that, it made them uncomfortable.

I may add the Tweet button back on.

Some people will complain about anything- if they really understood that only people who ALREADY knew their name would see their name they'd have nothing to complain about... but that said the Twitter button doesn't show any personal info to anyone besides the twitter account of the forum admin which you want people to know.

Prisoner 09-05-2010 11:04 PM

I know and I tried to explain it, but I know that if they aren't comfortable with it, they won't use it.

On my forum, there are a lot of local teachers and city workers who post about their jobs and they are just paranoid that their bosses and co-workers will be able to identify them. If the Facebook note showed that their Username liked it, they would probably be ok with it.

I was hoping to use it to generate traffic to the site.

Adding the Tweet link back now.

Thanks


All times are GMT. The time now is 09:12 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.01069 seconds
  • Memory Usage 1,742KB
  • 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
  • (4)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (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