![]() |
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 |
Quote:
--------------- Added [DATE]1407274350[/DATE] at [TIME]1407274350[/TIME] --------------- Quote:
Use this test account if you want to take a look: user: support3 pass: P@ssw0rd123! Thanks a bunch for taking the time to check it all out! :up: |
Quote:
|
Quote:
http://dvdimagehosting.altervista.or...immagineee.png |
Quote:
I was following up on this thread with my own question... forum is located here: http://www.dirtyimpreza.com/forums/ |
Quote:
|
getting back to this..
i've experimented and kind of did it.. i've edited the Navbar template, and placed two more elements (a facebook and a twitter button) : Code:
<!-- προσθήκη για facebook like --> just before the first <ul> closes... It looks like this now: https://vborg.vbsupport.ru/ Both buttons seem to work ok. But they are stuck to the top of the navbar. Also, when the window is resized and there's not enough space, they get out of the bar and look messy: http://www.λέσχη.gr/eikones/diafores/fb_btn2.jpg I wonder: a) is there a way to have them vertically align to the middle? b) is there a way to have them placed on the right, just before the search box? c) how can I have them fixed, so that they don't get out of the navbar when the windows gets smaller and there's not enough space? thnx :) |
Quote:
|
i've played around with <div> tags, with no much success..
btw. i've updated the first post (sorry :/ ) |
Quote:
|
Link to the site, with the button enabled so guests can see it.
|
@HM666: not sure what i have to do.. i've tried this and that but the issues I mentioned, remain...
@ozzy47: Here's the link: "Λέσχη του Βιβλίου" |
It maybe the iframe that is causing an issue. Sometimes iframes do not play well with vBulletin. I assume that you are using the Facebook iframe code. Have you tried to use the HTML or div code instead of the iframe?
|
All times are GMT. The time now is 03:28 AM. |
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:
|