1 stk Feb 23, 2005 00:46
3 stk Feb 23, 2005 02:24
We MUST be on the same wavelength! ;)
I saw that yesterday, downloaded the flashObject code (again don't have Macromedia Flash authoring software), but you can still implement the code. DID. Plan on using it for video. (Got a digital camera that takes AVI files ... found AVIedit to really do them up correctly, then swftools - command line dealie - to convert straight to SWF).
Works like a charm.
Just need to get it into b2evo.
NEVER THOUGHT ABOUT USING IT FOR AUDIO!!
Wonder if it will work?
Thanks for the memory jog. :D
4 stk Feb 23, 2005 03:03
I remember what it was about this technique that I didn't like - no controls. There's no way to start/stop the SWF file ... it just plays (which, I suppose, is FINE, if you're using it to embed a flash header or something).
I figured for video, I'd just link to a new page. (Though I'd really RATHER have a viewer embedded into the main page, with start/stop controls).
For audio, controls are necessary ... otherwise I'm right back where I started ... MP3 files that open windows.
Still Looking for a Solution....
5 village_idiot Feb 23, 2005 04:22
i embeded flash last night in a post ..
<object type="application/x-shockwave-flash" data="http://www.village-idiot.org/idiot.swf" height="180" width="240"><param name="movie" value="http://www.village-idiot.org/idiot.swf"></param></object>
no embed, and it works fine in firefox
6 stk Feb 23, 2005 04:47
That's great! How do you control the start/stop? I don't want the audio/video to start until the reader clicks "start", a button, graphic, or something else.
I tried the code you posted and it DOES work, but it plays the video as soon as the page is loaded.
Same with audio.
7 stk Feb 23, 2005 04:56
Ahah! :D
I got the audio to work with the control button I have. Thank you, thank you, thank you!!!!
<object type="application/x-shockwave-flash" data="blue_button.swf?mp3file=animals.swf" width="100" height="35"><param name="movie" value="blue_button.swf?mp3file=animals.swf"></param></object>
I tried it with video, but no go (maybe because "mp3file" doesn't quite cut it? :roll: ) Now all I need to do is find a similar, generic, start-stop button for video, as well.
Any ideas?
8 john Feb 23, 2005 06:29
I can't get <object> accepted as valid code in a post... how do you manage it?
9 stk Feb 23, 2005 07:22
There's a couple of places you need to put it in the formatting.php file.
1) FIRST ... it needs to be recognized as a valid TAG (with any subtags, it might have) ... and, as a little hint, it'll barf even after that, because "object" is not one of the expected <div> subtags ... so I added THAT too. :)
// Array showing what tags are allowed and what their allowed subtags are.
$allowed_tags = array
(
'body' = > E_Flow, // Remember this is not a true body, just a post body
'div' = > E_Flow.' object ',
.
.
.
bunch of others
.
.
.
'object' = > E_Iinline.' param ',
'param' = > E_Iinline,
Honestly, I don't know what the whole "E_Iinline" thing is ... I'm guessing that "E"=Entity class I=Inline (as opposed to block) and then spelled out ... but that's only a guess. Since most had it, I used it, it worked. (Sometimes knowing only a little pays off)!
(2) Now that b2evo knows the TAG, you still have to specify what ATTRIBUTES the tag can have. A little further down, you'll see:
// Array showing what tags are allowed and what their allowed subtags are.
$allowed_tags = array
(
.
.
. lots of 'em w/lots of the strict and/or transitional commented out.
.
.
.
'object' = > E_Iinline.' param ',
'param' = > E_Iinline,
Just add them.
Blammo. You should be done. (If you use a CLASSID number CLSID:D15097-a;dfja0-q5987 ... whatever ... you MAY find that it barfs on a "BAD URI" ... if that's the case, you can go a bit further down the list and see a [very narrow] list of accepted URI's ... you can add 'CLSID', to get over that little hump. (Just make sure your not adding your stuff for COMMENTS ... because it has its own set of TAGS, ATTRIBUTES and URIs.
Good luck.
PS - I had a very nasty time at the very end. b2evo kept wanting to put in a </p> after my <object> tag (which was very long). WTF?! Thought I was going mad (too late ;) ) I ended up jamming the end of the <object> tag smack up against the <param> tag (no spaces). STILL ... it put in a <br /> ... but at least THAT didn't mess up the page and ultimately, I got it all to validate.
If you want to check out the final sound dealie (and have a peek at the code and/or CSS) head over to [url=http://www.randsco.com/index.php/2005/02/16/alex_on_animals]HERE[/url]
10 stk Feb 23, 2005 19:51
Still looking for a way to CONTROL a SWF video file on a page (start/stop & a viewing window, sized to the file).
Anyone know of a way? :?:
11 phishin4dmb Feb 26, 2005 06:38
STK:
Well thanks for the info on embeding. I will work out the video controls and get the info back to you. Flash scripting is more my style. You will need flash 2004 pro if you are to get into video control through.
I will let you know what I come up with
12 village_idiot Feb 26, 2005 10:12
this isnt specific to blogging... however,
controls are accomplished using the media playback component on a .flv (flash video file) and like said above thats found in MX 2004 these days.
heres a rough example -- [removed]
thats not to size, and its not tweeked to do much more than show control of the "movie" (which isnt really a movie in this case), also theres no sound, but if there were that would be controlled too
once thats done, its embedded the same way i showed above
Ive done a fair amount of screwing around in flash mx, I could have answered this a while ago had I actually paid attn, sorry.
PS: If you have a video file, like a .mov, etc.. most video editing software proggys will output to .flv
Also, In case you dont have a .fla already of audio controls i can email or make one available to you for download to look at in MX. Theyre great for little personalized messages -> [removed]
:lol: that used to look so kickass on my long forgotten other site, whaaa.
I didnt read up before deciding to mention this so bear with me if im off, but you or someone else mentioned opening up .swfs using javascript .. thats actually done as a hack for MT and wordpress, so the code is out there.. if this is a repost, sorry, http://blog.deconcept.com/2004/10/14/web-standards-compliant-javascript-flash-detect-and-embed/
(oops it is a repost) well at any rate there are two working plugins available for wordpress that do this with quicktags, theres yet a 3rd -- the flash satay plugin that I understand is buggy. I looked at converting one of them to b2evo but wasnt willing to grapple with the lack of hooks. (pun intended)
13 stk Feb 28, 2005 02:04
Who - 4dmb ...
I've learned an awful lot about SWF, AVI, FLV and whatnot in the past couple of days. I did find a nice encoder (free download ... like most) that put up a very nice SWF that I can embed in my blog. [url=http://www.randsco.com/index.php/2005/02/25/testing_video]HERE[/url] is a first-pass.
A couple of comments.
1) Yes, whoo ... you had it correct. The code to "embed" (wrong terminology if you ask me, because the embed tag is DEAD in XHTML) ... is very straightforward:
<div class="Czoom Video Cleft w200 t100 Brdr Cap noLink"> <object type="application/x-shockwave-flash" data="http://randsco.com/_img/video/001/testIntro.swf"><param name="movie" value="http://randsco.com/_img/video/001/testIntro.swf"></param></object> </div>
and all those class names are leftovers from my photo zoom and not used in this case.
2) I CAN stop a SWF before play, by using a <param name="play" value="0"> tag. However, the results are not satisfactory, as the user must RIGHT-CLICK, then select PLAY from the FLASH general menu (NOT intuitive).
3) I'm thinking that you are using the RIVA Producer product to generate the http://www.village-idiot.org/stk.html example that you posted. Am I correct? (The controls look familiar). (And thanks for the "idiot" dude ... is there a hidden meaning in there? ;) ) Anyway, RIVA is an interesting product because they use SWF and FLV to "stream" the video, thus circumnavigating the need to hire a 'streaming Flash' service.
4) If you look at the example video (above), you will see that the Turbine Video Encoder (by Blue Pacific in Lisbon, Portugal) can OVERLAY controls, on top of the SWF file, which is nice. What it CAN'T do, is combine overlays/preloaders, so *unless you have MacroExpensivia MX 2004 @$899us per copy 8|* (or something similar) you can't edit a THING, and you're stuck with what they give you - like ME! Also, they don't call a FLV from a SWF, which means that they're not STREAMING anything ... you've got to download the WHOLE SWF file and (nothing but the file) before you can view the movie.
My first sample movie worked out OKAY, but then again, it's only 300k in size. (Dear old dad says that it still took 2 minutes between clicking the calling SWF, before he saw the main SWF ... with a blank screen in between ... too bad I can't put a prelaoder in there!!! ... too bad I don' t have the s/w to edit the SWF or FLA files!!!
Did I say aargh already? :roll:
What would be NICE, would be an embedded player that allows a choice: "low bandwidth video" or "broad bandwidth video" ... playing in the same space, called with the same "object" tag. (Am I dreaming?)
Anyway ... I TRY SO hard to make my site available to "the masses", only to learn that mass#10456 has problems with X, while mass#7568f has a specific problem with Y. What's a web site dude to do? Drink?
(Headed to the liquor store as I sign off!)
14 village_idiot Feb 28, 2005 02:20
the controls in my example are right out of macromedia flash MX 2004. the only thing I used a riva product for was to convert the original animated .gif into a .flv ...
the idiot reference is just for my site. :)
15 stk Feb 28, 2005 07:26
I can only wish that I had Macromedia MX 2004. Don't have the $$ to buy it. Are there any [less expensive] solutions out there that anyone can recommend?
16 polyxena Feb 28, 2005 08:19
stk wrote:
Are there any [less expensive] solutions out there that anyone can recommend?
Swish - www.swishzone.com does everything for me, although I must confess I loathe flash with a passion. I also find M's products expensive, overrated and computer-breakers, but there you go...
17 village_idiot Feb 28, 2005 08:33
expensive, yes. overrated, no ..not for the faint of heart though, i dare say, as they can be a bit intimidating to use @ first
18 toddpedlar Jun 15, 2005 14:09
stk wrote:
There's a couple of places you need to put it in the formatting.php file.
Okay... I've tried making these changes (in the attributes part did you
really mean 'object' => E_Iinline, or did you mean A_attrs?) but still get the "Illegal markup: object" error... any other places to change?
Todd
19 stk Jun 16, 2005 03:17
OKAY ... wow. I'm going crazy here because I replied to your post several HOURS ago. (Actually, I was in the middle of something, took the time to reply, checked my post ... all looked good).
Weird. (Unhappy smilie, displayed as such because I have to turn OFF the smilies so that => gets rendered properly ) >:-<
Anyway ... to reiterated (as succinctly as I can)
There are THREE things you need to tell the _formatting.php file (or the HTML checker) whichever you prefer:
1) What TAGS are legal.
2) What tags are allowed inside the legal TAGS
3) What attributes are allowed for each tag
So ... for me ... the OBJECT tag is first defined here (look for the beginning, ..then add the appropriate stuff)
/**
* Allowed Entity classes
*/
'object' => E_Iinline.' param ',
'param' => E_Iinline,
Now that you've defined the legal TAGS and what tags they may contain, the next step is to define the attributes allowed for each tag.
A bit further down in the _formatting.php file, you'll find the following and (agian) add what is appropriate to you
// Array showing allowed attributes for tags
$allowed_attribues = array
(
'object' => A_attrs.' style id classid type data flashvars ',
'param' => A_attrs.' style name value ',
That's it.
-stk (very happy smilie face, because I think that I have solved your problem, but -of course- smilie faces are OFF because I want the => to be rendered properly) :D
(for the SECOND BLOODY TIME)
(very unhappy face because the thought of doing something TWICE, when I already did it once, is very frustrating). :<
20 personman Sep 12, 2005 20:33
I followed your instructions for changing the _formatting.php file to allow objects. But now I get this message when I try to post:
Tag object must occur inside another tag
21 stk Sep 12, 2005 20:51
Personman,
That may very well be, as our <object> tag IS normally inside a <div> tag.
Our XHTML code for videos currently looks like this:
<div class="Cright Video w320">
<object type="application/x-shockwave-flash" data="http://randsco.com/_img/video/008/rivawebplayer.swf">
<param name="movie" value="http://randsco.com/_img/video/008/rivawebplayer.swf"></param>
<param name="flashvars" value="input=fortedmonton.rvml&path=http://randsco.com/_img/video/008/&buffertime=0.01"></param>
</object>
</div>
So you can see that the DIVision the video (object tag) is in tells the CSS file to put the video left|right, (flash) audio|video & (width) 240|320|etc.
I'd have to look at the XHTML specs for the <object> tag, as it might be an XHTML requirement that the tag is contained within another? Dunno.
Anyway ... just try putting it into a DIV and I bet it'll work!
-stk
22 personman Sep 12, 2005 20:54
Yes, that fixed it. Thanks a lot!
23 personman Sep 12, 2005 21:39
I was able to post your example without getting any errors. But I'm trying to post a video that I've uploaded to YouTube.com (think Flickr with videos). They do a video player that you can embed in your site, but they use the embed tag, which I know is depreciated. I haven't found a way to show the youtube movie without the embed tag, but I did disable the checker and post the movie [url=http://www.brendoman.com/dbc/2005/09/12/emma_s_new_video_again]here[/url]. If anyone can figure out how to show a youtube movie without the embed tag, please let me know how you did it.
24 stk Sep 12, 2005 22:18
Personman,
Easy ... I posted your video, as a test, on our site. Here's the xhtml (1.1) - valid code:
<div style="text-align:center"><object type="application/x-shockwave-flash" style="width:425px; height:350px" data="http://www.youtube.com/v/DyKFztw6Oow"><param name="movie" value="http://www.youtube.com/v/DyKFztw6Oow"></param></object></div>
Please note: I've had difficulty with b2evo shoving a <p> and </p> into inappropriate places. Namely, between the ending ">" of the <object> tag and the first "<" of the <param> tag. (The W3C validator says "no no").
The solution? Jam the ">" and "<" together in the code, so that there isn't any "space" for b2evo to add a </p> tag.
Anyway ... should work!
-stk :D
Send me an email, so I know you've seen it - you're happy - it works - etc ... and I'll delete your video from our site.
PS ... that emma is a cutie, looks like a year older than Alex (and she has a TON more hair!)
PPS ... Checked out YouTube. Saw the other vids. Liked the 9 month, particularly the "walking" episode. Nice memories captured there. (Esp. your body English, helping Emma walk!)
25 personman Sep 12, 2005 22:34
My webhost is down hard at the moment, so I can't test it, but it looks like it works great, so you don't have to keep the video up. I'll try the code when my host decides to plug in whatever cable got kicked out. You should check out YouTube. Add me as a friend when you do so I can see what you post. You may also be interested in getting a [url=http://www.youtube.com/developers_intro.php]developer id[/url] so you can code against their API. I would love to see some kind of youtube plugin for b2evo. Thanks for your help on this!
26 personman Sep 13, 2005 14:15
Ok, the web host is back and it works. The only error it gave me when I tried to post was: "tag div does not accept attribute style". I know there shouldn't be a problem with that. Isn't style one of those attributes that any tag should take (like title)? But I changed it to align="center" and it worked fine. Thanks again for your help.
27 stk Sep 13, 2005 15:48
Personman,
You've hit upon one of my b2evo pet peeves ... that "style" isn't (by default) a core attribute. >:(
No problem - A quick edit of the conf/_formatting.php file can remedy this shortcoming. ;)
Around line 102 in _formatting.php change:
// Allowed Attribute classes
define('A_coreattrs', 'class title');
to:
// Allowed Attribute classes
define('A_coreattrs', 'class title style');
-stk
28 personman Sep 13, 2005 15:57
I added style to the core attribute list like this:
// Allowed Attribute classes
define('A_coreattrs', 'class title style');
define('A_i18n', 'lang xml:lang dir');
define('A_attrs', A_coreattrs.' '.A_i18n);
But I still get the error. Is there something else I need to do?
29 stk Sep 13, 2005 16:05
Hmm... shouldn't.
I tested it and it seemed to work fine for me. (Although, I must admit, that I had already added "style" as an allowed attribute to a number of tags. It wasn't until this morning, that I got the idea to add it as a core attribute.)
I did, however, DELETE all of those other "style" attribute entries and it still worked fine, for me, when I tested it.
How about adding it directly to the <div> tag?
30 personman Sep 13, 2005 16:09
I tried it again before making any more changes, and it works now. Sorry to trouble you. I think my host is still recovering from the LA power outage. This is sweet. Now I can give your example code to my users and any of us can embed youtube movies in our posts. What's more, my new video camera should be delivered today. vlogging, here I come!
31 spasmface Sep 15, 2005 04:57
hey i just tried this, im getting these errors.
I've updated _formatting.php as described
Cannot update, please correct these errors:
Tag object is not allowed within tag div
Found invalid URL: Invalid URL
and my post looks like this
<div>
<object type="application/x-shockwave-flash"
data="preload.swf?path=http://www.lungshrimp.com/media/unexpectednews.jpg"
width="430" height="608">
<param name="movie"
value="preload.swf?path=http://www.lungshrimp.com/media/unexpectednews.jpg"></param>
</object>
</div>
i tried <p> as well instead of div, and without either
i get "needs to be inside a tag".
32 stk Sep 15, 2005 05:32
Hey spasmFace ...
Hmmm. The problem is in Step 2 (because I didn't completely describe EVERYTHING that needs to be done). My bad.
There are THREE things you need to tell the _formatting.php file (or the HTML checker, whatever you prefer to call it):
1) What TAGS are legal.
2) What tags are allowed inside these legal TAGS
3) What attributes are allowed for each tag
1) Add the <object> and <param> tags
2) Add <param> as a sub-tag of <object> AND modify the <div> line to allow [u]both[/u] <object> and <param> as sub-tags:
// Array showing what tags are allowed and what their allowed subtags are.
'div' => E_Flow.' object param ', <-- modify
'object' => E_Iinline.' param ', <-- ADD
'param' => E_Iinline, <-- ADD
Now that you've defined the legal TAGS and what tags they may contain, step 3 is to define the attributes allowed for each tag.
A bit further down in the _formatting.php file, you'll find the following and (agian) add what is appropriate for you:
// Array showing allowed attributes for tags
$allowed_attribues = array
(
'object' => A_attrs.' id type data flashvars ',
'param' => A_attrs.' name value ',
That's it.
Hope this helps!
-stk http://forums.b2evolution.net/images/smilies/icon_biggrin.gif
33 spasmface Sep 15, 2005 05:52
that works great! but
Found invalid URL: Invalid URL
why is this happening?
'object' => A_attrs.' style id classid type data flashvars width height ',
'param' => A_attrs.' style name value ',
<div>
<object type="application/x-shockwave-flash" data="preload.swf" width="430" height="608">
<param name="movie"
value="preload.swf"></param>
</object></div>
[/code]
34 stk Sep 15, 2005 06:03
I recently added a hack that provides more feedback to the "Invalid URL" error. You might like to have a look at it - http://forums.b2evolution.net/viewtopic.php?t=5291
With respect to your particular "Invalid URL" (assuming it's the only link-URL in your post) ...
You might try changing data="preload.swf" to be a fully qualified URL path, like data="http://yoursite.com/folderName/preload.swf", because I know that the HTML-checker barfs when I put in <a href="www.site.com">, needing <a href="http://www.site.com">.
Just a thought. (But the hack I mentioned might shed more light on the specific thing it's choking on. I recommend the hack, even if my suggestion works.)
-stk :D
35 spasmface Sep 15, 2005 06:08
Thank-you very much!!! that was precisely why it wasnt working, it couldnt find preloader.. im adding your hack now! thanks again!
36 spasmface Sep 15, 2005 06:20
oh no.. noo =/
Found invalid URL: Invalid URL - [preload.swf?path=http://www.lungshrimp.com/media/unexpectednews.jpg]
well yes, but i dont know what the full url is.. =/
and if i add http://www.lungshrimp.com/ infront of preload.swf, it posts, but its posts the code.. and doesnt embed swf
37 stk Sep 15, 2005 06:50
I can only recommend these steps:
1) Turn OFF the HTML-checker and insert the code you KNOW will display the SWF file (whether or not it's XHTML-valid and uses the embed tag).
This way, you'll know that you can get your VID to show on the page.
2) Then, play with the code, to make it XHTML-valid. (Which I've been able to do, using some of the ideas in this thread).
3) Once it's XHTML-valid AND plays ... THEN turn the HTML-checker back on and make sure that it's b2evo-compatible (maybe making some/all of the edits/addtions to the _formatting.php file).
I tried playing the video using variations of your URL, but something seems to be wrong. Most SWF files will play if you plug the corresponding URL directly into the address bar of a flash-enabled browser, but (using a variety of url combos) I can't seem to get the preload.swf to do anything but show some picture of a strange "frogs head"? (Can't seem to play any video).
Good luck. Dunno what else to suggest.
38 spasmface Sep 15, 2005 07:13
sorry how do you turn off the html checking?? (im new to this)
the swf works fine.. as like this..
http://www.lungshrimp.com/preload.swf?path=media/unexpectednews.jpg
or this
http://www.lungshrimp.com/preload.swf?path=http://www.lungshrimp.com/media/unexpectednews.jpg
I will have a play and keep you notified.
Im thinking that b2evolution cant find preload.swf ... but tis in my skins dir an don root as well.. soo
-- Edit:
If I insert the code directly into html it works fine!
<div>
<object type="application/x-shockwave-flash"
data="preload.swf?path=http://www.lungshrimp.com/media/unexpectednews.jpg"
width="430" height="608">
<param name="movie"
value="preload.swf?path=http://www.lungshrimp.com/media/unexpectednews.jpg"></param>
</object>
</div>
39 stk Sep 15, 2005 07:56
Hmm. Neither of those links work for me in IE or FireFox. (IE just returns a blank screen & "done"; FireFox returns the 'frogshead' thing, but doesn't play a vid.)
You can turn off the HTML-checker in the _formatting.php file. It's near the top ... just turn "use-html-checking" from 1 (on) to 0 (off).
Good luck.
-stk
40 spasmface Sep 15, 2005 08:25
i fixed it
http://www.lungshrimp.com/
works in opera and firefox, ie doesnt seem to like it but thats becasue IE is wrong... tho i can fix that up :P
thank-you very much.
the problem was with the autoparsing of linebreaks.. which i had in the code.. =/
41 stephenr Sep 19, 2005 01:03
Excellent thread here gentleman! This hammers out some issues I was having difficulties with. B2 community kicks arse!
42 steviespin Aug 17, 2006 01:21
Hey!
I'v ebene trying to edit my _formatting.php file but apparently i'm not quite getting it cause when i upload my edits i can't even load the page anymore :\
Could someone possibly post an edited _formatting.php file that allows for OBJCT and the insertion of Flash movies?
it would be a HUGE help to me and lots of other too I imagine :)
thanks!
43 stk Aug 17, 2006 03:15
steviespin,
Unfortunately, there's not a _formatting.php file that would work in all cases. The minute you post one, there'd be someone with a different subtag or attribute and it wouldn't work for them.
The key is to learn the basics of how the _formatting.php file works (tags, subtags, attributes). Once you've grokked that, then yer good to add whatever and whenever you need.
I still like the idea of turning OFF the html-checker FIRST ... getting your code to work, making sure it's XHTML-valid ... THEN dink with the _formatting.php file so that b2evo passes it without complaining.
If you want, just post the <object> that you want (with all the correct XHTML) and I'll be happy to help you customize the _formatting.php file.
Cheers,
44 steviespin Aug 17, 2006 19:30
stk wrote:
steviespin,
Unfortunately, there's not a _formatting.php file that would work in all cases. The minute you post one, there'd be someone with a different subtag or attribute and it wouldn't work for them.
The key is to learn the basics of how the _formatting.php file works (tags, subtags, attributes). Once you've grokked that, then yer good to add whatever and whenever you need.
I still like the idea of turning OFF the html-checker FIRST ... getting your code to work, making sure it's XHTML-valid ... THEN dink with the _formatting.php file so that b2evo passes it without complaining.
If you want, just post the <object> that you want (with all the correct XHTML) and I'll be happy to help you customize the _formatting.php file.
Cheers,
is this enough info?
i want to be able to embed flash (using the object tag, not embed) flash in my blog. i'm a flash designer and will be doing it often. that's really the only change to the file I am doing at this point.
Coudl you possibly suggest the right code to put in to accomplish this as well :)?
I've seen a few different ways and am getting more and more confused.
thanks SO much!!
SS
45 john Aug 17, 2006 23:09
@steviespin
This may help you...
http://forums.b2evolution.net/viewtopic.php?t=7818
46 stk Aug 18, 2006 01:01
flash video FLV or shock wave flash SWF file extension?
do you want to detect if the user has Adobe installed and send them to a download site if they don't?
do you have any parameters you want set at the beginning of the flash movie (sound on, auto-play on|off) etc?
In a word, no. That's not enough information.
47 steviespin Aug 18, 2006 13:21
stk wrote:
flash video FLV or shock wave flash SWF file extension?
do you want to detect if the user has Adobe installed and send them to a download site if they don't?
do you have any parameters you want set at the beginning of the flash movie (sound on, auto-play on|off) etc?
In a word, no. That's not enough information.
hi
I'm talking swf here. and since I author these, I can control the playing and volume from that side, so that interactivity will be required to start an anim. I could use the regular swf extension by embedding a flv inside an empty flash movie so that takes care of that. It would be helpful to know what choices and parameters there are but the basics are all I really need at this point.
thanks very much. Do you need any further info?
SS
48 stk Aug 18, 2006 17:41
Basic object insert:
<object type="application/x-shockwave-flash" data="blah.swf" style="width:288px; height:128px;">
<param name="movie" value="blah.swf" />
</object>
49 steviespin Aug 20, 2006 20:07
stk wrote:
Basic object insert:
<object type="application/x-shockwave-flash" data="blah.swf" style="width:288px; height:128px;"> <param name="movie" value="blah.swf" /> </object>
Yes, but the original issue was that the object tag is not allowed. I haven't had any luck editing my php files which is why I asked if you were able to supply one since you seem to have a good handle on these things.
thx
S
50 stk Aug 20, 2006 20:39
Stevespin,
LOL. I'm not trying to put you off. Posting a _formatting.php file won't help. There's no way to include all the tags, sub-tags, attributes and parameters that would work for you and/or everyone - without knowing what code you're using.
The html-checker can be turned OFF (in the _formatting.php file).
The html-checker, regarding posts, is supposed to HELP you make valid code, not GET IN THE WAY. So just turn it OFF ... put in the code you want ... then verify that (a) IT WORKS and (b) is XHTML-valid (if you're concerned about web standards).
ONCE you have settled on the code you KNOW you want to use to post your videos, come back and PASTE IT IN HERE and I'll THEN help you make yourself a customized _formatting.php file that will allow those specific tags, subtags and attributes. (The ones you know that you're for SURE going to use. Not a test, not a "one-size-fits-all", bunch of code ... but the ACTUAL code you're going to use).
51 xyber Sep 03, 2006 20:07
Guys does any of you know how to stream contents from supload?
http://www.supload.com/listen?s=S2zrjgjDMI1
THanks
-Xyber.
52 stk Sep 03, 2006 22:08
Well, one way would be just to put the link in your blog. :p
Personally, I'd download the MP3 file, convert it to a Flash file, add it to a blog post, with a control much like on [url=http://randsco.com/index.php/2005/02/16/alex_on_animals]this post[/url]
(I've downloaded a shareware program that does the converting. If this is the route you're interested in going, let me know and I'll hunt down the link for you, if it's still around. - Been a while since I used the workflow).
Boom ... streaming audio on your site, hosted by your site. :D
Hope this helps.
53 xyber Sep 04, 2006 11:01
Well the thing is i want it to be hosted on supload... And i don't want to just place a link. Was hoping there is way to let viewers just stream it from the blog. That way they can just choose which they want and play it online.
Thanks alot mate.
-Xyber.
54 stk Sep 04, 2006 18:33
Hmmm ... don't know a way to do that.
Generally speaking, I don't recommend that folks host stuff on 3rd-party servers (b/c then your content, accessiblity is dependent on another server ... which may be down, or content moved, etc., etc.)
Good luck. If you find a way, please come back and let us know. ;)
55 xyber Sep 05, 2006 19:25
Well you did mate.. Youtube...
Guess i'll have to try figure this oneout myself. Thanks fer all the help...
-Xyber.
56 stk Sep 08, 2006 00:38
Hopefully, to your benefit. :D
Thanks for saying, as I was getting a tad depressed that this thread was "degrading" into oblivion.
57 village_idiot Sep 08, 2006 00:51
hk996 is a spammer, i dlt'd his post, sorry scott
58 stk Sep 08, 2006 01:30
LOL ... there I go. :|
Back to the Valium. :p
59 papzadsl Sep 09, 2006 08:46
stk wrote:
Personally, I'd download the MP3 file, convert it to a Flash file, add it to a blog post, with a control much like on [url=http://randsco.com/index.php/2005/02/16/alex_on_animals]this post[/url]
(I've downloaded a shareware program that does the converting. If this is the route you're interested in going, let me know and I'll hunt down the link for you.
Hi Stk,
I'm very interested in embedding a "play&pause" sound interface. I extremely like [url=http://www.1pixelout.net/code/audio-player-wordpress-plugin/]the one so popular for Wordpress[/url], and I wonder if it could be b2evo compliant some day. It is really stunning: simple to use and nice to see.
So, after I read all this long thread, there isn't a way to upload play an mp3; do I have to convert into a swf file and then somehow insert that mask with buttons in the post, don't I?
Please, let me know something about that, and also about the shareware converter.
60 stk Sep 09, 2006 17:13
Papzadsl,
Interesting and thanks for the link.
1) That IS a nice looking interface and (I would imagine) that something similar can be done for b2evo.
2) It "appears" that the WP plugin uses an MP3 file (but I haven't determined if it's truly streamed or if it's pre-loaded). I've not seen MP3 streamed before and would be VERY interested if this is the case.
3) My workflow (developed a couple of years ago) was to convert to Flash and insert the controls you see in the linked post on our blog. The key features were (a) true streaming, (b) xhtml-valid & (c) no client-side pop-ups (Flash).
4) The shareware program for converting MP3 to SWF files is put out by [url=http://www.guangmingsoft.net/msc/]Guangming Software[/url] and is called "MP3 Stream Creator".
Unfortunately, we're in the middle of a move and I don't have time to look into a WP->b2evo conversion. Perhaps, after the dust settles, in a couple of months, I can. (Feel free to send me a PM or contact us, via our site, as a reminder).
Hope this helps.
61 steviespin Sep 13, 2006 15:19
Hi there. Took me ages to get back to this. Was so busy with work. So here I am. I was going to post the tag that i am hoping to be able to use and I think you were going to tell me how to tweak my files to allow the object tag.
here it is!
<embed src='http://www.makaimedia.com/liquid/wow/wow_quiz.swf?r=0.635831720195711' FlashVars='m=humanPriest1' quality='high' bgcolor='#000000' width='300' height='250' name='World of Warcraft' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />
thanks for any help!
62 stk Sep 13, 2006 15:41
Unfortunately, we're in the middle of moving and I don't have time to help.
However, you may find [url=http://www.randsco.com/blogD/index.php/2006/05/07/adding_the_embed_tag_to_b2evolution]these instructions[/url] useful. ;)
Hope this helps.
63 wayfinder Sep 16, 2006 18:35
I've found this very helpful, thank you. I can post Flash on my blog now, that's great :)
I'm just wondering: is there any way to automatically adjust the size of the object? I'm also currently trying to set up a button in the post editor, I hope that works out :)
edit: lovely, that was easier than I thought! See it in action here: http://yfinder.de/driven/index.php/2006/09/16/not_quite_a_mario_yet
edit2: careful, the quicktags plugin might disable itself if you rummage around in it enough. Gave me quite a scare :)
64 green_claws Feb 13, 2010 03:48
hey
im new to b2, never dealt with php before so im just trying to get my head around things. Basically i want to show some you tube videos on a particular blog and im running into the "embed" and "object" error
<object width="445" height="364"><param name="movie" value="http://www.youtube.com/v/GaHkqcXRGWo&hl=en_GB&fs=1&rel=0&color1=0x234900&color2=0x4e9e00&border=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/GaHkqcXRGWo&hl=en_GB&fs=1&rel=0&color1=0x234900&color2=0x4e9e00&border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="445" height="364"></embed></object>
this is what im trying to embed
<?php
/**
* This is b2evolution's formatting config file.
*
* This file sets how b2evolution will parse and format texts (posts, comments, etc.)
* Last significant changes to this file: version 1.6
*
* @todo Move as much as possible to $Settings / $UserSettings
* @package conf
*/
if( !defined('EVO_CONFIG_LOADED') ) die( 'Please, do not access this page directly.' );
/**
* Automatically balance unmatched tags in posts and comments.
*
* Choose the formatting options for your posts:
* 0 to disable
* 1 to ensable
*
* @todo fp>This should be moved to the backoffice. Checkbox in group settings?
*
* @global integer 0|1
*/
$use_balanceTags = 1;
/*
* Disabling XHTML checking for posts is now a Group permission in b2evo's user management
*/
/**
* Set this to true if you want to enforce XHTML strict
*
* @todo fp> Should probably be an additional radio option in group permissions.
*/
$use_strict = false;
/**
* Choose formatting options for comments
* 'never' : option will never be used
* 'opt-in' : option will be used only if user explicitely asks for it
* 'opt-out' : option will be used by default, but user can refuse
* 'always' : option will always be used
*
* @todo fp> remove and let Auto-P handle the comment formatting.
*/
$comments_use_autobr = 'opt-out'; // automatically change line breaks to <br />
/**
* Do we want to use XHTML validation for comments?
*
* TODO: use this for anonymous comments only.
*/
$use_xhtmlvalidation_for_comments = true;
/**
* set this to true to allow id && style as core attributes for comments
* WARNING : This would allow spammers to post hidden content in comments
* enable it at your own risk !
*/
$comments_allow_css_tweaks = false;
/**
* DEPRECATED!!!
*
* here is a list of the tags that are allowed in the comments.
* If XHTML validation is disabled all tags not in this list will be filtered out anyway before we do any checking
*/
$comment_allowed_tags = '<p><ul><ol><li><dl><dt><dd><address><blockquote><ins><del><span><bdo><br><em><strong><dfn><code><samp><kdb><var><cite><abbr><acronym><q><sub><sup><tt><i><b><big><small>';
/**
* Translation of HTML entities and special characters.
*
* You should not have to change this.
*
* @global array
*/
$b2_htmltrans = array(
// '–' => ' ', '—' => ' ', '‘' => ' ', '’' => ' ',
// '“' => ' ', '”' => ' ', '•' => ' ', '€' => ' ',
'<' => '<', '>' => '>',
'&sp;' => ' ', '!' => '!', '"' => '"', '#' => '#',
'$' => '$', '%' => '%', '&' => '&', ''' => ''',
'(' => '(', ')' => ')',
'*' => '*', '+' => '+', ',' => ',', '‐' => '-',
'−' => '-', '.' => '.', '/' => '/', ':' => ':',
';' => ';', '<' => '<',
'=' => '=', '>' => '>', '?' => '?', '@' => '@',
'[' => '[', '\' => '\', ']' => ']', 'ˆ' => '^',
'_' => '_', '―' => '_',
'`' => '`', '{' => '{', '|' => '|', '}' => '}',
'˜' => '~', '‚' => '‚', '„' => '„',
'&ldots;' => '…', 'Š' => 'Š', '‹' => '‹', 'Œ' => 'Œ',
'‘' => '‘', '’' => '‘', '’' => '’',
'“' => '“', '”' => '“', '”' => '”', '•' => '•',
'–' => '–', '&endash;' => '–', '—' => '—', '&emdash;' => '—',
'˜' => '˜', '™' => '™',
'š' => 'š', '›' => '›', 'œ' => 'œ', 'Ÿ' => 'Ÿ',
' ' => ' ', '¡' => '¡', '¢' => '¢', '£' => '£',
'¤' => '¤', '¥' => '¥',
'¦' => '¦', '&brkbar;' => '¦', '§' => '§', '¨' => '¨',
'¨' => '¨', '©' => '©', 'ª' => 'ª', '«' => '«',
'¬' => '¬', '­' => '',
'®' => '®', '¯' => '¯', '&hibar;' => '¯', '°' => '°',
'±' => '±', '²' => '²', '³' => '³', '´' => '´',
'µ' => 'µ', '¶' => '¶',
'·' => '·', '¸' => '¸', '¹' => '¹', 'º' => 'º',
'»' => '»', '¼' => '¼', '½' => '½', '½' => '½',
'¾' => '¾', '¿' => '¿',
'À' => 'À', 'Á' => 'Á', 'Â' => 'Â', 'Ã' => 'Ã',
'Ä' => 'Ä', 'Å' => 'Å', 'Æ' => 'Æ', 'Ç' => 'Ç',
'È' => 'È', 'É' => 'É',
'Ê' => 'Ê', 'Ë' => 'Ë', 'Ì' => 'Ì', 'Í' => 'Í',
'Î' => 'Î', 'Ï' => 'Ï', 'Ð' => 'Ð', 'Ñ' => 'Ñ',
'Ò' => 'Ò', 'Ó' => 'Ó',
'Ô' => 'Ô', 'Õ' => 'Õ', 'Ö' => 'Ö', '×' => '×',
'Ø' => 'Ø', 'Ù' => 'Ù', 'Ú' => 'Ú', 'Û' => 'Û',
'Ü' => 'Ü', 'Ý' => 'Ý',
'Þ' => 'Þ', 'ß' => 'ß', 'à' => 'à', 'á' => 'á',
'â' => 'â', 'ã' => 'ã', 'ä' => 'ä', 'å' => 'å',
'æ' => 'æ', 'ç' => 'ç',
'è' => 'è', 'é' => 'é', 'ê' => 'ê', 'ë' => 'ë',
'ì' => 'ì', 'í' => 'í', 'î' => 'î', 'ï' => 'ï',
'ð' => 'ð', 'ñ' => 'ñ',
'ò' => 'ò', 'ó' => 'ó', 'ô' => 'ô', 'õ' => 'õ',
'ö' => 'ö', '÷' => '÷', 'ø' => 'ø', 'ù' => 'ù',
'ú' => 'ú', 'û' => 'û',
'ü' => 'ü', 'ý' => 'ý', 'þ' => 'þ', 'ÿ' => 'ÿ',
'Œ' => 'Œ', 'œ' => 'œ', 'Š' => 'Š', 'š' => 'š',
'Ÿ' => 'Ÿ', 'ƒ' => 'ƒ',
'ˆ' => 'ˆ', '˜' => '˜', 'Α' => 'Α', 'Β' => 'Β',
'Γ' => 'Γ', 'Δ' => 'Δ', 'Ε' => 'Ε', 'Ζ' => 'Ζ',
'Η' => 'Η', 'Θ' => 'Θ',
'Ι' => 'Ι', 'Κ' => 'Κ', 'Λ' => 'Λ',
'Μ' => 'Μ', 'Ν' => 'Ν', 'Ξ' => 'Ξ',
'Ο' => 'Ο', 'Π' => 'Π', 'Ρ' => 'Ρ', 'Σ' => 'Σ',
'Τ' => 'Τ', 'Υ' => 'Υ', 'Φ' => 'Φ',
'Χ' => 'Χ', 'Ψ' => 'Ψ', 'Ω' => 'Ω',
'α' => 'α', 'β' => 'β', 'γ' => 'γ', 'δ' => 'δ',
'ε' => 'ε', 'ζ' => 'ζ', 'η' => 'η',
'θ' => 'θ', 'ι' => 'ι', 'κ' => 'κ', 'λ' => 'λ',
'μ' => 'μ', 'ν' => 'ν', 'ξ' => 'ξ',
'ο' => 'ο', 'π' => 'π', 'ρ' => 'ρ', 'ς' => 'ς',
'σ' => 'σ', 'τ' => 'τ', 'υ' => 'υ', 'φ' => 'φ',
'χ' => 'χ', 'ψ' => 'ψ',
'ω' => 'ω', 'ϑ' => 'ϑ', 'ϒ' => 'ϒ', 'ϖ' => 'ϖ',
' ' => ' ', ' ' => ' ', ' ' => ' ', '‌' => '',
'‍' => '', '‎' => '',
'‏' => '', '–' => '–', '—' => '—', '‘' => '‘',
'’' => '’', '‚' => '‚', '“' => '“', '”' => '”',
'„' => '„', '†' => '†',
'‡' => '‡', '•' => '•', '…' => '…', '‰' => '‰',
'′' => '′', '″' => '″', '‹' => '‹', '›' => '›',
'‾' => '‾', '⁄' => '⁄',
'€' => '€', 'ℑ' => 'ℑ', '℘' => '℘', 'ℜ' => 'ℜ',
'™' => '™', 'ℵ' => 'ℵ', '←' => '←', '↑' => '↑',
'→' => '→', '↓' => '↓',
'↔' => '↔', '↵' => '↵', '⇐' => '⇐', '⇑' => '⇑',
'⇒' => '⇒', '⇓' => '⇓', '⇔' => '⇔', '∀' => '∀',
'∂' => '∂', '∃' => '∃',
'∅' => '∅', '∇' => '∇', '∈' => '∈', '∉' => '∉',
'∋' => '∋', '∏' => '∏', '∑' => '∑', '−' => '−',
'∗' => '∗', '√' => '√',
'∝' => '∝', '∞' => '∞', '∠' => '∠', '∧' => '∧',
'∨' => '∨', '∩' => '∩', '∪' => '∪', '∫' => '∫',
'∴' => '∴', '∼' => '∼',
'≅' => '≅', '≈' => '≈', '≠' => '≠', '≡' => '≡',
'≤' => '≤', '≥' => '≥', '⊂' => '⊂', '⊃' => '⊃',
'⊄' => '⊄', '⊆' => '⊆',
'⊇' => '⊇', '⊕' => '⊕', '⊗' => '⊗', '⊥' => '⊥',
'⋅' => '⋅', '⌈' => '⌈', '⌉' => '⌉', '⌊' => '⌊',
'⌋' => '⌋', '⟨' => '〈',
'⟩' => '〉', '◊' => '◊', '♠' => '♠', '♣' => '♣',
'♥' => '♥', '♦' => '♦'
);
?>
this is the code i have on the _formatting page. What do i change??
Many thanks in advance
Damian[/quote]
65 mariaespana Sep 08, 2010 04:11
my winff works fine but it seams I cannot integrate .swf AND .flv
[url=http://blog.deconcept.com/2004/10/14/web-standards-compliant-javascript-flash-detect-and-embed/]Standards compliant Flash detect and embed[/url]
Maybe of some interest.