Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-21-2010, 12:44 PM
The_Big_K's Avatar
The_Big_K The_Big_K is offline
 
Join Date: Jan 2006
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How to integrate Facebook like & Twitter Buttons DigitalPoint Forums Style?

Hello,

I really like the way Facebook Like & Twitter buttons have been integrated in DigitalPoint Forums.

It'd be really nice if someone can explain how to do it.

--------------- Added [DATE]1285162959[/DATE] at [TIME]1285162959[/TIME] ---------------

Anyone?
Reply With Quote
  #2  
Old 11-11-2010, 10:57 PM
Foxx.'s Avatar
Foxx. Foxx. is offline
 
Join Date: Oct 2010
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

>Bump<
Reply With Quote
  #3  
Old 11-20-2010, 08:25 AM
satlazone satlazone is offline
 
Join Date: Mar 2008
Location: Israel
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

bump
Reply With Quote
  #4  
Old 11-21-2010, 12:03 AM
Foxx.'s Avatar
Foxx. Foxx. is offline
 
Join Date: Oct 2010
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No one at all?
Really?
Reply With Quote
  #5  
Old 12-03-2010, 09:57 PM
weindians weindians is offline
 
Join Date: Sep 2006
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi

i think they have the code in navbar_link in navigation/breadcrumb template.... add your code there. if u need code use one below and add your own details

Code:
<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="YOUR TWITTER ACC NAME">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="YOUR FORUM URL" layout="button_count" show_faces="true" font="trebuchet ms"></fb:like>
Reply With Quote
  #6  
Old 12-03-2010, 10:26 PM
thespi thespi is offline
 
Join Date: Oct 2010
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ukindian View Post
hi

i think they have the code in navbar_link in navigation/breadcrumb template.... add your code there. if u need code use one below and add your own details

Code:
<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="YOUR TWITTER ACC NAME">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="YOUR FORUM URL" layout="button_count" show_faces="true" font="trebuchet ms"></fb:like>
Will that cause it to tweet/like your main page or the forum you are viewing?
Reply With Quote
  #7  
Old 12-04-2010, 01:42 AM
The_Big_K's Avatar
The_Big_K The_Big_K is offline
 
Join Date: Jan 2006
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yep, can someone confirm this please?

Thank you for your responses, folks!
Reply With Quote
  #8  
Old 12-04-2010, 05:53 AM
seite7 seite7 is offline
 
Join Date: Jul 2010
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I guess they always pass on the current URL of the page to the Facebook widget. But I am also curious how to achieve that for the whole site and not just the forum view.

Twitter will pick this up itself. You just can use the code Ukindian provided and edit your Twitter name.
For Facebook in threads view, this works for me
HTML Code:
<fb:like href="{vb:raw href}"></fb:like>
but I can't get that to work in other places like albums.
Reply With Quote
  #9  
Old 12-04-2010, 07:29 AM
The_Big_K's Avatar
The_Big_K The_Big_K is offline
 
Join Date: Jan 2006
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, I implemented this. How can I modify the look of the Facebook button? Is that possible. Also, the Facebook button looks bit misaligned (not in straight line with Twitter button). Is there any fix for this?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:31 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06068 seconds
  • Memory Usage 2,243KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)bbcode_html
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete