The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Javas and html code dont work

View previous topic View next topic Go down

Javas and html code dont work

Post by EORGamez on January 30th 2012, 11:46 pm

I'm trying to put a twitter widget and facebook like box on my website on forumotion. But, everytime I put the html code in the html box in forumotion widget and save it it dont show up.

Here are the html for my facebook page and twitter:

FACEBOOK
Code:
<div class="fb-like-box" data-href="http://www.facebook.com/eorgamez" data-width="292" data-colorscheme="dark" data-show-faces="true" data-stream="true" data-header="true"></div>

TWITTER
Code:
<script charset="utf-8" src="http://widgets.twimg.com/j/2/widget.js"></script>
<script>
new TWTR.Widget({
  version: 2,
  type: 'profile',
  rpp: 6,
  interval: 30000,
  width: 'auto',
  height: 300,
  theme: {
    shell: {
      background: '#a80000',
      color: '#ffffff'
    },
    tweets: {
      background: '#000000',
      color: '#ffffff',
      links: '#a60303'
    }
  },
  features: {
    scrollbar: true,
    loop: false,
    live: true,
    behavior: 'all'
  }
}).render().setUser('EORGamez').start();
</script>

Can someone help me because I believe you guy need to update your html and java code pages here at forumotion.

EORGamez
New Member

Posts : 23
Reputation : 1
Language : EORGamez

Back to top Go down

Re: Javas and html code dont work

Post by ProphecyCSS on January 31st 2012, 12:07 am

well it depends on the code and how u insert it did u insert both in the same box or diffrent boxes?
tell me how u inserted it

ProphecyCSS
Forumember

Posts : 97
Reputation : 7
Language : English

Back to top Go down

Re: Javas and html code dont work

Post by EORGamez on January 31st 2012, 12:14 am

I put them in different boxs, then put them in the box in html code mode, and save it. Once I got done with that I when to my portal page to check to see if the widgets are working and nothing shows.

EORGamez
New Member

Posts : 23
Reputation : 1
Language : EORGamez

Back to top Go down

Re: Javas and html code dont work

Post by ProphecyCSS on January 31st 2012, 12:28 am

did u drag the widgets into the blank white spaces?

ProphecyCSS
Forumember

Posts : 97
Reputation : 7
Language : English

Back to top Go down

Re: Javas and html code dont work

Post by EORGamez on January 31st 2012, 12:33 am

yes i did.

EORGamez
New Member

Posts : 23
Reputation : 1
Language : EORGamez

Back to top Go down

Re: Javas and html code dont work

Post by EORGamez on January 31st 2012, 12:46 am

ok i got my twitter working but my facebook html code still not working also the java code version.

EORGamez
New Member

Posts : 23
Reputation : 1
Language : EORGamez

Back to top Go down

Re: Javas and html code dont work

Post by EORGamez on January 31st 2012, 11:56 pm

it look like this but to dont show up on the website with the html and java code. =(


EORGamez
New Member

Posts : 23
Reputation : 1
Language : EORGamez

Back to top Go down

Re: Javas and html code dont work

Post by ProphecyCSS on February 1st 2012, 12:04 am

neat looking widget can u make me an acc and pm it with a link to ur website sometimes it depends on forum version

ProphecyCSS
Forumember

Posts : 97
Reputation : 7
Language : English

Back to top Go down

Re: Javas and html code dont work

Post by EORGamez on February 1st 2012, 12:33 am

I'm using the phpbb 2 verison so it should show up i believe that forumotion need to update their html and java code pages. But here the java code verison for my website:

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";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

EORGamez
New Member

Posts : 23
Reputation : 1
Language : EORGamez

Back to top Go down

Re: Javas and html code dont work

Post by LGforum on February 1st 2012, 12:40 am

It won't matter what forum version.
It also has nothing to do with forumotion.

Try changing the script to 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 = "http://connect.facebook.net/en_US/all.js#xfbml=1";
          fjs.parentNode.insertBefore(js, fjs);
        }(document, 'script', 'facebook-jssdk'));</script>

Also, it needs to go where HTML is alowed, not in a javascript file.

And finally, Java is not Javascript.

LGforum
Hyperactive

Male Posts : 2254
Reputation : 254
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Re: Javas and html code dont work

Post by EORGamez on February 1st 2012, 12:58 am

still dont work but thanks for trying to help me.

EORGamez
New Member

Posts : 23
Reputation : 1
Language : EORGamez

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum