vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Facebook like button to the left of the connect button? (https://vborg.vbsupport.ru/showthread.php?t=277835)

JJGEight 01-31-2012 06:13 PM

Facebook like button to the left of the connect button?
 
Hey there,

I'm trying to place a like button to the left off the connect button in the header. However I am having some difficulty doing so. So far I have tried placing the like button code before:

Code:

<vb:if condition="$vboptions['enablefacebookconnect']">

{vb:raw facebook_header}
                                </vb:if>

This does place the button to the left of the connect button, however it does also push the connect button down by the height of the like box. This means half the connect button is out out view. How can I stop this from happening?

Any help would be greatly appreciated.

Josh

kh99 01-31-2012 06:22 PM

What does the code for your like button look like?

JJGEight 01-31-2012 08:05 PM

I'm just using the standard iFrame code:

Code:

<iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.facebook.com%2Fpages%2FAppGabble%2F291149524274050&amp;send=false&amp;layout=button_count&amp;width=50&amp;show_faces=true&amp;action=like&amp;colorscheme=light&amp;font&amp;height=21&amp;appId=248697491832660" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px; height:21px;" allowTransparency="true"></iframe>

kh99 01-31-2012 08:14 PM

I'm not an html expert or anything, but it could be because where you're putting it is between two <li> tags. Maybe try putting it in the facebook_header template after the opening <li ... tag? But that will mean that it'll be inside the <vb:if condition="$vboptions['enablefacebookconnect']"> condition.

JJGEight 02-01-2012 04:41 PM

I tried what you said again, but the same affect happens, the Facebook connect button gets pushed down, it's as if the width of the button is the maximum width anything can be in that area before a new line is formed.

kh99 02-01-2012 04:47 PM

Hmm...maybe try adding display:inline; to the iframe style attribute.


All times are GMT. The time now is 08:27 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.01118 seconds
  • Memory Usage 1,716KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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