While installing Drupal for Facebook,
"In order to display FBML tags, IE requires the attribute: xmlns:fb="http://www.facebook.com/2008/fbml" in the tag"
But can not find the tag inside ../themes/at-commerce/templates/page.tpl.php
And it seems conflict if I added...
print $language " lang=" print $language " xmlns:fb="http://www.facebook.com/2008/fbml">
Thanks,
Sam
Comments
Comment #1
stan turyn commentedadaptivetheme/templates/html.tpl.php
Comment #2
Jeff Burnz commentedThanks Steve.
Comment #3
mubiesam commentedFound it here, but no matter where I add the needed code, IE still can not display FBML tags...(cache cleared)
Is there anything else I need to do...
Thanks,
Sam
sites/all/themes/adaptivetheme/adaptivetheme/at_core/templates/html.tpl.php
Comment #4
mubiesam commentedSeems need to change the status for your attention...Sam
Comment #5
Jeff Burnz commentedOK, couple of things:
1. Copy html.tpl.php to your subtheme and clear the cache, then modify it. In general don't hack the core themes files.
2. What do you mean "IE still can not display FBML tags"? Please explain in detail.
Looking at this issue I can see we have the $html_attributes variable but its a string, I think we should turn this into structured data and make it a proper attributes array, this would make things like this very easy to do in preprocess.
Comment #6
mubiesam commented1. Copied html.tpl.php to ../sites/all/themes/at-commerce/templates/ and added xmlns:fb="http://www.facebook.com/2008/fbml" to every line of $html_attributes variable accordingly, but "IE still can not display FBML tags", means there should be a button to click for login into Drupal using FB account, but IE can not display that button, only a plain text "Connect" which has no function at all.
2. Another problem for IE is the slideshow, instead of the slideshow rotating, there are 3 separate photos displayed.
Can you guide me more detail for how to "make it a proper attributes array"...
Thanks,
Sam
Comment #7
Jeff Burnz commentedmubiesam - ok, I understand now. Can you tell how to reproduce this, is it some module or code you use from Facebook? Is this http://drupal.org/project/fb? A few words on how I can reproduce this would be very useful.
Don't worry about the attributes array thing, its not going to help you in this instance, it will produce the same output you are doing manually.
Comment #8
mubiesam commentedHi Jeff,
You can use IE to take a look here...http://www.insync-asia.com/ifood/
It is installed with module Drupal for Facebook http://drupal.org/project/fb
In the installation guide http://drupal.org/node/923804 , there is a Theme change
In order to display FBML tags, IE requires the attribute: xmlns:fb="http://www.facebook.com/2008/fbml" in the tag, which is part of your theme. Manually edit your theme's page.tpl.php file, adding that attribute alongside the others in the .
Another problem related to fb module, it will show these error message on FB Canvas page, but nothing wrong in Drupal site...
Notice:Undefined index: content 於 fb_example_preprocess_page() (/home3/insyncas/public_html/ifood/sites/all/modules/fb/contrib/fb_example.module 中的第 328 行)。
Notice:Undefined index: header 於 fb_example_preprocess_page() (/home3/insyncas/public_html/ifood/sites/all/modules/fb/contrib/fb_example.module 中的第 328 行)。
Notice:Undefined index: footer 於 fb_example_preprocess_page() (/home3/insyncas/public_html/ifood/sites/all/modules/fb/contrib/fb_example.module 中的第 328 行)。
Notice:Undefined index: left 於 fb_example_preprocess_page() (/home3/insyncas/public_html/ifood/sites/all/modules/fb/contrib/fb_example.module 中的第 328 行)。
Notice:Undefined index: preface_first 於 fb_example_preprocess_page() (/home3/insyncas/public_html/ifood/sites/all/modules/fb/contrib/fb_example.module 中的第 328 行)。
Notice:Undefined index: preface_middle 於 fb_example_preprocess_page() (/home3/insyncas/public_html/ifood/sites/all/modules/fb/contrib/fb_example.module 中的第 328 行)。
Notice:Undefined index: preface_last 於 fb_example_preprocess_page() (/home3/insyncas/public_html/ifood/sites/all/modules/fb/contrib/fb_example.module 中的第 328 行)。
Thanks,
Sam
Comment #9
Jeff Burnz commentedThis is what I see when I view your site, so this would only work in IE10+ and Windows mobile 8+.
Comment #10
mubiesam commentedYou mean even with these changes, it still will not work with IE under 9...
Comment #11
Jeff Burnz commentedYou haven't made any changes, that is my point - LOOK at the code from your site - there needs to be one attribute for each line to target all versions of IE:
I was able to get this working immediately, simply by adding xmlns:fb="http://www.facebook.com/2008/fbml" in an html.tpl.php template override in my subtheme, you can do the same in AT Commerce. I tested with IE8 and IE9, both worked fine. This took me about an hour because I had to go setup all this Facebook rubbish to test it. Frankly I hate Facebook, so this was not fun for me.
Comment #12
mubiesam commentedNow I got the point...
I had made a copy of html.tpl.php from adaptivetheme/at_core/templates/ to themes/at-commerce/templates, and tried to modify the code in at_commerce...but some how, this is wrong, the site is still using the code from adaptivetheme/at_core/templates/
So, after adding in at_core, the IE is working correctly, but supposedly I should not do this in at_core, how can I make it override in at-commerce...
p.s. Sorry to cost you an hour to do this, I don't like FB neither, but people here are quite crazy using it, it helps to promote the website, so still need to include...
Thanks,
Sam
Comment #13
Jeff Burnz commentedProbably you just need to clear the cache so Drupal see's the new template.
Comment #14
Jeff Burnz commentedHere is a better way than hardcoding this: http://adaptivethemes.com/how-to-add-xmlns-attribute-for-facebook-in-ada...