Date: 30-04-24  Time: 20:26 pm

Author Topic: Petrolhead-O-Meter :)  (Read 1564 times)

mickvp

  • Global Moderator
  • GP Hero
  • *****
  • Posts: 2,246
    • Main bike:
      FZS 1000 Gen1
    • View Profile
Petrolhead-O-Meter :)
« on: 11 November 2013, 10:09:16 pm »
got a wee coding issue I could do with some help with. I cant get a HTML page ive made to link to Facebook. even though I C&P the proper code from Facebook  :'(

EDIT

Code is now fixed and working - linky for anyone who wants a wee shot (feel free to post up your score/share the link with anyone you think will get a laugh out it):

Petrolhead-O-Meter

 8)
« Last Edit: 13 November 2013, 09:59:06 pm by mickvp »

Dead Eye

  • GP Hero
  • ******
  • Posts: 3,753
  • What doesn't kill me, will only make me stronger.
    • Main bike:
      FZS 1000 Gen1
    • - FZS600 00-01
    • View Profile
Re: Any HTML/Javascript Guru's on here?
« Reply #1 on: 12 November 2013, 02:41:34 am »
What is the problem exactly? HTML I can do in my sleep - Javascript I tend not to say anything nice about as it has a habit of biting me but I have plenty of experience with it :P

mickvp

  • Global Moderator
  • GP Hero
  • *****
  • Posts: 2,246
    • Main bike:
      FZS 1000 Gen1
    • View Profile
Re: Any HTML/Javascript Guru's on here?
« Reply #2 on: 12 November 2013, 08:35:17 am »
The page has a button at the end to "share" on facebook. However, it doesn't work. Everything else works fine.

beach700

  • Cager in Training
  • Posts: 9
    • Main bike:
      Other
    • View Profile
Re: Any HTML/Javascript Guru's on here?
« Reply #3 on: 12 November 2013, 12:20:05 pm »
I believe, there are two parts of the Facebook code you have to copy/paste.


One part goes inside the <head>
and the other part goes where ever you want the FB-Share button on the page (inside <body>).

Did you copy both parts?
Or does it work differently?

mickvp

  • Global Moderator
  • GP Hero
  • *****
  • Posts: 2,246
    • Main bike:
      FZS 1000 Gen1
    • View Profile
Re: Any HTML/Javascript Guru's on here?
« Reply #4 on: 12 November 2013, 02:17:25 pm »
Yes, your spot on, one part initializes the SDK, the other is for the button.

I'm informed I got it working by someone who uses fb, but for some reason it only works on ie/ff/chrome, not safari. Not a major issue for me really, but still, I wish there were more compatibility between browsers.

mickvp

  • Global Moderator
  • GP Hero
  • *****
  • Posts: 2,246
    • Main bike:
      FZS 1000 Gen1
    • View Profile
Re: Any HTML/Javascript Guru's on here?
« Reply #5 on: 12 November 2013, 07:09:39 pm »
just incase anyone was interested. the page I was working on was the Petrolhead-o-meter. found here:

http://www.vivapotenza.com/petrolhead-o-meter/petrolhead-o-meter.htm

 8)

mickvp

  • Global Moderator
  • GP Hero
  • *****
  • Posts: 2,246
    • Main bike:
      FZS 1000 Gen1
    • View Profile
Re: Petrolhead-O-Meter :)
« Reply #6 on: 13 November 2013, 10:12:53 pm »
well this seems to have gone down pretty well so far - although I think we will need to do a V2 with proper difficult questions as most people seem to score high on this one. cant have that.

rustyrider

  • GP Hero
  • ******
  • Posts: 1,057
    • Main bike:
      FZS600 98-99
    • View Profile
Re: Petrolhead-O-Meter :)
« Reply #7 on: 13 November 2013, 10:50:06 pm »
I got 95% and I think that is only because two out of my three cars are on LPG.  14-16mpg on petrol would be just too much of a pain in the wallet!  Mind you, the one on petrol only does 18mpg......

Yup, make the questions harder.

ChristoT

  • Alleged Foc-u Daphnis & Chloe expert
  • GP Hero
  • ******
  • Posts: 5,207
  • Fluent in English, French and bullshit!
    • Main bike:
      FZS600 98-99
    • - Saab 9-3, caravan, hang glider
    • View Profile
Re: Petrolhead-O-Meter :)
« Reply #8 on: 14 November 2013, 01:33:14 am »
90%. Therein lies my problem.

Oh, for question 1 - add the option "can I race it?" :evil
The Deef's apprentice

Dead Eye

  • GP Hero
  • ******
  • Posts: 3,753
  • What doesn't kill me, will only make me stronger.
    • Main bike:
      FZS 1000 Gen1
    • - FZS600 00-01
    • View Profile
Re: Petrolhead-O-Meter :)
« Reply #9 on: 15 November 2013, 04:37:24 pm »
100% obviously ;)

mickvp

  • Global Moderator
  • GP Hero
  • *****
  • Posts: 2,246
    • Main bike:
      FZS 1000 Gen1
    • View Profile
Re: Petrolhead-O-Meter :)
« Reply #10 on: 15 November 2013, 05:25:36 pm »
90%. Therein lies my problem.

Oh, for question 1 - add the option "can I race it?" :evil

If i make another one for bikers ill bear that in mind.  :thumbup