![]() |
Simple Facebook "like" button on the navbar
Hi,
Recently I've put a facebook button in my forum regarding my facebook page. First I've tried placing it in the logo (using the ad managment) but didn't like it much, there. Now I have it below the navbar, as you can see in the first image, but I don't like it much there, either. It takes too much space altogether (including the white space). http://www.λέσχη.gr/eikones/diafores/fb_button1.jpg I think I'd prefer a simple button on the navbar next to the rest of the tabs like you can see here below: http://www.λέσχη.gr/eikones/diafores/fb_button2.jpg Is there a way to do so? thx :) |
depends what vb version
|
vBulletin v 4.2.2
|
dimitrisvb-
Did you ever get this figured out? I am trying to do something very similar in vB4.2 as well. I would like to know what you did to get this done. Thank you. |
Quote:
See template: "facebook_header", look for the following two lines. Code:
<img id="fb_squarepic" width="16" height="16" alt="{vb:rawphrase facebook_connect}" src="{vb:raw squarepicurl}" /> |
1 Attachment(s)
Quote:
Here is where I inserted my facebook like code (in the facebook_header template): Code:
<li id="fb_headerbox" class="hidden"> How do i get the "Like" button to appear to the left of the facebook connect icon, and have them all lined up in a wonderfully horizontal flow? p.s. I appreciate your confidence in my ability to work with vB... LOL :D:up: |
Quote:
You can use two different tricks: 1) float-left / float-right CSS property 2) display: inline-block CSS property I recommend you to use the float-left CSS property because this facebook "like" button code is too messy and it should be too difficult use inline-block! Try this: PHP Code:
You're welcome ;) |
Quote:
Thanks for the tip about float left, it seems to keep the formatting on the rest of the page correct (in Chrome at least) but still the like button is on top of the facebook connect functions. I'm trying to get this to appear to the left... so everything is in a single row. Having a tough time with this! |
Yeah, the CSS here can get a bit tricky. On top of that the selector names are inconsistent, some use "fb-" others use "fb_". Even if you do not use some of the selectors below keep them handy for the future. Alter the margins to your layout.
I modified the HTML structure just a bit with a container class ".fb_custom_container". Code:
<style> |
Quote:
---------------- Edit: Ok, i have found it with the link of your screenshots! But i can't see the connect button! :S |
All times are GMT. The time now is 07:06 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|