vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   How to integrate Facebook like & Twitter Buttons DigitalPoint Forums Style? (https://vborg.vbsupport.ru/showthread.php?t=250922)

The_Big_K 09-21-2010 12:44 PM

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?

Foxx. 11-11-2010 10:57 PM

>Bump<

satlazone 11-20-2010 08:25 AM

bump

Foxx. 11-21-2010 12:03 AM

No one at all?
Really?

weindians 12-03-2010 09:57 PM

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>


thespi 12-03-2010 10:26 PM

Quote:

Originally Posted by ukindian (Post 2128991)
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?

The_Big_K 12-04-2010 01:42 AM

Yep, can someone confirm this please?

Thank you for your responses, folks!

seite7 12-04-2010 05:53 AM

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.

The_Big_K 12-04-2010 07:29 AM

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?


All times are GMT. The time now is 12:11 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.01120 seconds
  • Memory Usage 1,728KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete