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-21-2010 10:34 AM

I agree the tweet button would look better a couple pixels higher but haven't figured that put yet,

zelnik 08-21-2010 11:05 AM

Quote:

Originally Posted by xtremecoders (Post 2087281)
Why for me is Just fine ?

http://img594.imageshack.us/img594/3470/clip27.png

Maybe you don't place it at the right place.
Place the code after the first </div>, NOT the second....

I will give it another try would be be very difficult to get it onto the same line as the fb connect?! as then you would have the 2 social networking sites next to one another?!

Thanks

BirdOPrey5 08-21-2010 12:14 PM

OK, I have figured out the best place to use this if you also use the Facebook Like button which I guess most do. I have updated the first post with new instructions.

Screen Shot of new location below:

https://vborg.vbsupport.ru/attachmen...1&d=1282396257

zelnik 08-21-2010 01:51 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2087343)
OK, I have figured out the best place to use this if you also use the Facebook Like button which I guess most do. I have updated the first post with new instructions.

Screen Shot of new location below:

Works great however the Twitter box with the number of tweets is cut off on the right so if you change the entry from 90px width to 92px it fixes it.

Is there an easy way of flipping them around to the Twitter button is on the left of the FB button!?

BirdOPrey5 08-21-2010 03:07 PM

Quote:

Originally Posted by zelnik (Post 2087377)
Works great however the Twitter box with the number of tweets is cut off on the right so if you change the entry from 90px width to 92px it fixes it.

Is there an easy way of flipping them around to the Twitter button is on the left of the FB button!?

Thanks I will update the instructions...

I haven't tested this but I'd imagine putting the {vb:raw fblikebutton} code before the twitter code instead of after it, it may work... such as:

EDIT- I did test it and it does work, however the width should be even longer, 95px works nicely.

Code:

{vb:raw fblikebutton}<div id="fb_likeframe" style="border: none; overflow: hidden; height: 27px; width: 95px; vertical-align: text-bottom;"><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></div>

vivamexico55 08-21-2010 04:15 PM

Doesn't work with 4.06 and FB Connect enabled, gives me this error:

URL required

'url' parameter does not contain a valid URL.

BirdOPrey5 08-21-2010 04:31 PM

Hmmm... it's definitely working for me... where are you getting this error, in the pop-up window? Is there anything else?

Can you give a link to your forum?

zelnik 08-21-2010 06:11 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2087406)
Thanks I will update the instructions...

I haven't tested this but I'd imagine putting the {vb:raw fblikebutton} code before the twitter code instead of after it, it may work... such as:

EDIT- I did test it and it does work, however the width should be even longer, 95px works nicely.

Thanks works nicely but sods law the icons/buttons are different heights.

Would it be difficult to be able to add the twitter button 1 or 2 pixels lower?

Thanks and marked installed.

BirdOPrey5 08-21-2010 06:32 PM

Quote:

Originally Posted by zelnik (Post 2087464)
Thanks works nicely but sods law the icons/buttons are different heights.

Would it be difficult to be able to add the twitter button 1 or 2 pixels lower?

Thanks and marked installed.

Yeah good call... if you add the code: padding-top:2px; to the style attribute of the <div> tag it perfectly centers the tweet button with the facebook button. I have updated the code in the top post to reflect this change.

zelnik 08-21-2010 07:58 PM

thanks works perfectly!


All times are GMT. The time now is 10:05 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.01412 seconds
  • Memory Usage 1,744KB
  • 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
  • (5)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