SWF audio embedding on blog page
Goto page Previous  1, 2, 3, 4, 5  Next
 
Post new topic   Reply to topic   printer-friendly view    b2evolution Forum Index -> b2evolution Support
View previous topic :: View next topic  
Author Message
polyxena
New Poster
New Poster

Joined: 13 Feb 2005
Posts: 17
Reputation: 15.2Reputation: 15.2 add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Mon Feb 28, 2005 2:19    Post subject: Reply with quote

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...

_________________
minerva victrix, poetry blogs
Back to top
View user's profile Send private message
whoo
High Priestess
High Priestess

Joined: 25 Dec 2004
Posts: 1293
Reputation: 100.1 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 19

PostPosted: Mon Feb 28, 2005 2:33    Post subject: Reply with quote

expensive, yes. overrated, no ..not for the faint of heart though, i dare say, as they can be a bit intimidating to use @ first
_________________

Do you use last.fm?
Try out my nifty badge generator!
Back to top
View user's profile Send private message Visit poster's website
toddpedlar
New Poster
New Poster

Joined: 30 Apr 2005
Posts: 10
Reputation: 44Reputation: 44Reputation: 44Reputation: 44 add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Wed Jun 15, 2005 7:09    Post subject: Still can't get <object> markup to take Reply with quote

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

_________________
--------------------------------------------------------
Todd K. Pedlar
Assistant Professor of Physics
Luther College
Decorah, IA
pedlto01@luther.edu
http://semperubi.rtrc.net
--------------------------------------------------------
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
stk
Guru
Guru

Joined: 30 Dec 2004
Posts: 1147
Reputation: 147.4 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 13

PostPosted: Wed Jun 15, 2005 20:17    Post subject: Reply with quote

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)
Code:
/**
 * 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
Code:
// 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). :<
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
personman
SuperGuru
SuperGuru

Joined: 09 Feb 2005
Posts: 2178
Reputation: 116.9 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 15

PostPosted: Mon Sep 12, 2005 13:33    Post subject: Reply with quote

I followed your instructions for changing the _formatting.php file to allow objects. But now I get this message when I try to post:
Quote:
Tag object must occur inside another tag

_________________
RTFM
Back to top
View user's profile Send private message Visit poster's website
stk
Guru
Guru

Joined: 30 Dec 2004
Posts: 1147
Reputation: 147.4 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 13

PostPosted: Mon Sep 12, 2005 13:51    Post subject: Reply with quote

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:
Code:
<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&amp;path=http://randsco.com/_img/video/008/&amp;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
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
personman
SuperGuru
SuperGuru

Joined: 09 Feb 2005
Posts: 2178
Reputation: 116.9 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 15

PostPosted: Mon Sep 12, 2005 13:54    Post subject: Reply with quote

Yes, that fixed it. Thanks a lot!
_________________
RTFM
Back to top
View user's profile Send private message Visit poster's website
personman
SuperGuru
SuperGuru

Joined: 09 Feb 2005
Posts: 2178
Reputation: 116.9 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 15

PostPosted: Mon Sep 12, 2005 14:39    Post subject: Reply with quote

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 here. If anyone can figure out how to show a youtube movie without the embed tag, please let me know how you did it.
_________________
RTFM
Back to top
View user's profile Send private message Visit poster's website
stk
Guru
Guru

Joined: 30 Dec 2004
Posts: 1147
Reputation: 147.4 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 13

PostPosted: Mon Sep 12, 2005 15:18    Post subject: Reply with quote

Personman,

Easy ... I posted your video, as a test, on our site. Here's the xhtml (1.1) - valid code:

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 Very Happy

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!)


Last edited by stk on Mon Sep 12, 2005 15:35; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
personman
SuperGuru
SuperGuru

Joined: 09 Feb 2005
Posts: 2178
Reputation: 116.9 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 15

PostPosted: Mon Sep 12, 2005 15:34    Post subject: Reply with quote

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 developer id 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!
_________________
RTFM
Back to top
View user's profile Send private message Visit poster's website
personman
SuperGuru
SuperGuru

Joined: 09 Feb 2005
Posts: 2178
Reputation: 116.9 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 15

PostPosted: Tue Sep 13, 2005 7:15    Post subject: Reply with quote

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.
_________________
RTFM
Back to top
View user's profile Send private message Visit poster's website
stk
Guru
Guru

Joined: 30 Dec 2004
Posts: 1147
Reputation: 147.4 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 13

PostPosted: Tue Sep 13, 2005 8:48    Post subject: Reply with quote

Personman,

You've hit upon one of my b2evo pet peeves ... that "style" isn't (by default) a core attribute. Mad

No problem - A quick edit of the conf/_formatting.php file can remedy this shortcoming. Wink

Code:
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


Last edited by stk on Tue Sep 13, 2005 9:00; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
personman
SuperGuru
SuperGuru

Joined: 09 Feb 2005
Posts: 2178
Reputation: 116.9 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 15

PostPosted: Tue Sep 13, 2005 8:57    Post subject: Reply with quote

I added style to the core attribute list like this:
PHP:
// 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?

_________________
RTFM
Back to top
View user's profile Send private message Visit poster's website
stk
Guru
Guru

Joined: 30 Dec 2004
Posts: 1147
Reputation: 147.4 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 13

PostPosted: Tue Sep 13, 2005 9:05    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
personman
SuperGuru
SuperGuru

Joined: 09 Feb 2005
Posts: 2178
Reputation: 116.9 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 15

PostPosted: Tue Sep 13, 2005 9:09    Post subject: Reply with quote

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!
_________________
RTFM
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    b2evolution Forum Index -> b2evolution Support All times are GMT - 5 Hours
Goto page Previous  1, 2, 3, 4, 5  Next
Page 2 of 5


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
b2evolution Support Forum RSS Feed Forums powered by php Bulletin Board