Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 24 Jul 2012, 00:20
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
facebook fan box

I inserted the code for facebook fan box in one of the forum blocks.

Problem is that it causes the horizontal scrollbar in the site to appear. Once the FB code is removed entirely, scrollbar disappears too. Reducing the width in the code doesn't do anything odd enough. I've tried widths as small as 200.

Using this code:

<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

<div class="fb-like-box" align="center" data-href="http://www.facebook.com/talkjesus" data-width="230" data-height="480" data-show-faces="true" data-border-color="#ffffff" data-stream="false" data-header="false"></div>
__________________
...............................
Talk Jesus Forums: Christian Chat
games . chat . gallery . bible . videos
18,000 members
Reply With Quote
  #2  
Old 26 Jul 2012, 21:06
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Would appreciate help on this. Thanks
__________________
...............................
Talk Jesus Forums: Christian Chat
games . chat . gallery . bible . videos
18,000 members
Reply With Quote
  #3  
Old 26 Jul 2012, 22:05
ForceHSS's Avatar
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
HTML or php what one did you pick
Reply With Quote
  #4  
Old 26 Jul 2012, 22:12
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
I chose html since there is no php in the code
__________________
...............................
Talk Jesus Forums: Christian Chat
games . chat . gallery . bible . videos
18,000 members
Reply With Quote
  #5  
Old 13 Aug 2012, 14:13
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Can someone please assist me on this? Thank you
__________________
...............................
Talk Jesus Forums: Christian Chat
games . chat . gallery . bible . videos
18,000 members
Reply With Quote
  #6  
Old 13 Aug 2012, 16:18
ForceHSS's Avatar
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
I know there is no php in it but I am sure there is a php version
Reply With Quote
  #7  
Old 13 Aug 2012, 16:46
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
I can tell you right off the bat that that code will cause issues on your site if you are also using Facebook Connect. You cannot have two tags with the same id on a page.
__________________
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #8  
Old 18 Aug 2012, 16:26
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Thanks Lynne. Any way to work around this?
__________________
...............................
Talk Jesus Forums: Christian Chat
games . chat . gallery . bible . videos
18,000 members
Reply With Quote
  #9  
Old 18 Aug 2012, 16:50
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Just change the id on this snippet. That may mean you need to write some custom css since there may be css written for that id already.

I just tried your code on my test site and I do not get a scroll bar at all. Can we get a link to see the problem on your site?
__________________
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #10  
Old 18 Aug 2012, 17:07
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
http://www.talkjesus.com/forum.php

Problem fixed. (Thanks Lynne)

Changed

<div id="fb-root"></div>

To

<div id="fb-root2"></div>
__________________
...............................
Talk Jesus Forums: Christian Chat
games . chat . gallery . bible . videos
18,000 members
Reply With Quote
  #11  
Old 18 Aug 2012, 18:34
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
It looks fine to me on your site.

You've done a nice job with your site.
__________________
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #12  
Old 18 Aug 2012, 19:14
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Thank you Lynne for your kind words
__________________
...............................
Talk Jesus Forums: Christian Chat
games . chat . gallery . bible . videos
18,000 members
Reply With Quote
Reply


Similar Threads
Thread Thread Starter Forum Replies Last Post
FACEBOOK Fan BOX - from - British Expats Australia TimberFloorAu vBulletin 3.8 Add-ons 18 24 Jan 2010 18:47

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

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


New To Site? Need Help?

All times are GMT. The time now is 19:03.

Layout Options | Width: Wide Color: