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)

acezakj 08-15-2010 06:35 PM

Could you make a identical facebook one right next to the twitter one? It would be greatly appreciated

BirdOPrey5 08-15-2010 07:12 PM

Doesn't VB4 have facebook integration built in already? You just go to the admin cp -> vbulletin options -> Facebook Options to set it up...

If you are using VB3.x then I recommend this mod, it's what I use in my 3.8 board:
https://vborg.vbsupport.ru/showthread.php?t=243319

For the most part it would work on VB4 if it had to, just put the code in SHOWTHREAD so you don't need those conditionals.

Gleedo 08-17-2010 06:02 AM

Quote:

Originally Posted by CMSTemplateZ (Post 2083730)
Thanks bud for a quick reply... i worked it out.... See Here: http://battlefield3forums.com/content/

I added it to the start of the breadcrumb div and wrapped it in my own custom div to style it a little better... because the facebook like text color can not be changed it's kinda hard to see i will keep playing around with it.

Thanks for this, just hope people still click these buttons, now that every site seems to have them numbers have dropped alot, hopefully the tweet button gets people clicking it.

Cheers again for posting this

I clicked your tweet button as im a member of your forum :)

sbsforum.us 08-18-2010 04:50 AM

Thanks

zelnik 08-18-2010 11:57 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2083924)
Honestly I don't have Facebook integration installed on mine so that might be what is causing the problem... however zurrie reported changing the div height to 50 seemed to fix this problem.

It does work but it bloats the display too much as it goes above the FB and page 123 select.

Look forward to you having 4.0.6 installed and turning on the fb as it will be a lovely addition to my site!

Thanks!

Crowza 08-18-2010 08:09 PM

1 Attachment(s)
Here is what I did to fix the sizing issues for 4.0.6:

1. Find the following code in SHOWTHREAD:

Code:

<vb:if condition="$show['fb_likebutton']">
2. After that line insert your Twitter button code:

Code:

<vb:if condition="!in_array($GLOBALS[forumid], array(21, 22))">   
                                  <div id="mytweetbutton" align="right" style="height:15px;">
                                  <a href="http://twitter.com/share" class="twitter-share-button" data-count="none" data-via="crowzacom" data-related="EdCrowza">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
                                  </div>
                          </vb:if>

3. Make sure you replace the correct variables, per the original instructions (I also added the 'data-related' option for it to recommend more than one Twitter account). Notice, the height is set to '15px;'.

If you do that, it should look like the attached image:

zelnik 08-19-2010 01:39 PM

Quote:

Originally Posted by Crowza (Post 2085964)
Here is what I did to fix the sizing issues for 4.0.6:

1. Find the following code in SHOWTHREAD:

Code:

<vb:if condition="$show['fb_likebutton']">
2. After that line insert your Twitter button code:

Code:

<vb:if condition="!in_array($GLOBALS[forumid], array(21, 22))">   
                                  <div id="mytweetbutton" align="right" style="height:15px;">
                                  <a href="http://twitter.com/share" class="twitter-share-button" data-count="none" data-via="crowzacom" data-related="EdCrowza">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
                                  </div>
                          </vb:if>

3. Make sure you replace the correct variables, per the original instructions (I also added the 'data-related' option for it to recommend more than one Twitter account). Notice, the height is set to '15px;'.

If you do that, it should look like the attached image:

thanks for that is there anyway to get it next to the fb like button?

xtremecoders 08-20-2010 09:30 PM

Nice MOD but i have also Facebook enabled and causing some Overlap with pages display.

http://img3.imageshack.us/img3/8664/clip25.png

UPDATE....

Fixed by Changing Possition of code.....

1. Find the following code in SHOWTHREAD:

Code:

            <div id="postpagestats_above" class="postpagestats">
                {vb:rawphrase showing_results_x_to_y_of_z, {vb:raw pagenumbers.first}, {vb:raw pagenumbers.last}, {vb:raw totalposts}}
            </div>

2. After that line insert your Twitter button code:

Code:

<vb:if condition="!in_array($GLOBALS[forumid], array(X, Y, Z))">
<div id="mytweetbutton" align="right" style="height:50px;">
<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>
</vb:if>


http://img96.imageshack.us/img96/6833/clip26.png

zelnik 08-21-2010 08:51 AM

1 Attachment(s)
Quote:

Originally Posted by xtremecoders (Post 2087081)
Fixed by Added bellow.....

Unfortunately that doesn't fix it properly, the pagination is not correct as the " Results 1 to 10 of 17" should be next to the pagination and now it is under the facebook connect.

Also it looks a little odd as it doesn't line up (twit button) should be a couple of pixels higher or ultimately it would look better next to the fb icon I think...

Have a look at the attachments to see what I mean.

xtremecoders 08-21-2010 09:05 AM

Why for me is Just fine ?

https://vborg.vbsupport.ru/

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


All times are GMT. The time now is 03:32 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.01140 seconds
  • Memory Usage 1,751KB
  • 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
  • (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