Facebook Fan Script link <solved>

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
trogfish
New Member
New Member
Posts: 8
Joined: Fri Feb 20, 2009 2:21 am

Facebook Fan Script link <solved>

Post by trogfish »

Sorry if this is answered elsewhere.... But I am simply trying to include the FaceBook link button to our business' facebook fan page  it isn't basic HTML.  I tried setting up an UDT, but I cant' get it to work.  If it matters, I am trying to place it in the Global "Footers" area so that it will appear on every single page.  The face book supplied code looks like this:

';
echo '//


I am not interested in the plugin modules that offer lots of other networks, etc.  Besides, I am unclear on EXACTLY what the modules such as "social bookmarking" are doing???  It appears those modules are for submitting the CMSMS page to the users FB/Social network site????...  I think I am doing the opposite; I am simply trying to include the link to my FB page from my CMSMS pages?

Or am i missing something conceptually?  Some better docs for the existing plugins/ modules would sure be a help..

Thanks in advance!
Last edited by trogfish on Tue Mar 09, 2010 10:48 pm, edited 1 time in total.
uniqu3

Re: Facebook Fan Script link

Post by uniqu3 »

wrap the script in {literal} tags.

Code: Select all

{literal}
<__script__ src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php/en_US"type="text/javascript"></__script>';
echo '<__script__ type="text/javascript">// <![CDATA[
FB.init("343937f1f2fb6fbcbe66edc7580694d1");
// ]]></__script>
{/literal}
trogfish
New Member
New Member
Posts: 8
Joined: Fri Feb 20, 2009 2:21 am

Re: Facebook Fan Script link

Post by trogfish »

Does the

Code: Select all

<literal>
tags work the same WITHIN a user created Global content block and/or the UDT the same as page content?

I can get it to work when it's in a page content;  but I cannot get it to work in the footer, where I actually want it:

http://www.crptruck.com/facebook.html
trogfish
New Member
New Member
Posts: 8
Joined: Fri Feb 20, 2009 2:21 am

Re: Facebook Fan Script link <solved>

Post by trogfish »

A WYSWYG type of error?  TinyMCE kept Tidy-ing / Mangling my code when trying to post the

Code: Select all

Facebook <__script__> code, even when contained within <lieratal>
  I was using the HTML button on TinyMCE.  It looked right, but upon saving, and re-opening the page, TinyMCE had mangled it......

Works if you disable WYSWYG for the page/ block/ etc.
Post Reply

Return to “Modules/Add-Ons”