I have a series of mp3 files that I would like to would like to output to facebook using views.

I have created a view block which I can display on my canvas. I can manually type

<fb:mp3 src="<i>file src</i>"></fb:mp3>

onto the canvas and this works, but when I try to output the url with views and wrap the fbml tag around using the views 'change html output', I get nothing at all. It seems to filter out the fbml.

Any suggestions?

Comments

mbiddlecombe’s picture

sorry thought the < i > tags would produce italic above rather than be visible*

Dave Cohen’s picture

It is probably an input filter. By default they usually strip fbml tags.

tommy kaneko’s picture

Component: Canvas Pages (FBML) » Code

I had the issue with Views stripping out FBML. The workaround I used was to add the field displays the link to the file, then "exclude from display". Then create another field "Global: PHP", and put the FBML into the Output code. You can use the values from other fields within the output code.

So, your "Output Code" would probably look something like this:
<fb:mp3 src=""<?php print $row->src; ?>"></fb:mp3>
You would replace $row->src with the variable holding the link to the file.

Dave Cohen’s picture

Status: Active » Fixed

This is an old issue and sounds fixed to me. Thanks for sharing that tip.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.