2 village_idiot Sep 21, 2007 15:40

I would appreciate one or two ways to use the embed or object tags. I really think other b2evo users will appreciate them as well.
The current instructions on post 12721 are a bit long.
have you blogged about any of this stuff?
Thanks Woo.
<object type="application/x-shockwave-flash" style="width:425px; height:350px;" data="http://www.youtube.com/v/lj3iNxZ8Dww">
<param name="movie" value="http://www.youtube.com/v/lj3iNxZ8Dww" />
</object>
is completely valid, and works.
I have done a plugin that allow embed tag.
You can get it here: http://b2evolution-pt.googlegroups.com/web/embed.zip
But I think that it will be deprecated soon: Looks that the b2evo 2.0 final will support straight embed, object and iframe.
[]'s
- Walter
Does this plug-in work with version 1.10?
How do I install it?
Regards
Sopur
It will probably work in 1.10, but you can find out for yourself without harming anything.
Download the zip, place the contents in your blog at ../blogs/plugins.
Go to the backoffice -> App setttings -> Plugins -> search for 'Allow Embed' in 'Available plugins' and install.
According to the description:
This plugin let your put the tag embed in your posts. It will allow also the attributes: src, type, quality, scale, salign, wmode and flashvars in the embed tag.
Good luck
Hello!
So, I tried, but with no luck.
Anybody an idea, how I could post Flash-Movies in 1.10?
Regards
Sopur
in ../config/_formatting.php
line 45 $use_html_checker = 0;
line 48 $use_security_checker = 0;
but: # WARNING: disabling both $use_html_checker and $use_security_checker is suicidal !
and flash works!
Thank for your reply.
At the moment, I didn't do it - because of security reasons.
Regards
Sopur
Meander down [url=http://forums.b2evolution.net/viewtopic.php?t=12963&postdays=0&postorder=asc&&start=15]this post[/url] and you'll see a tweak for the bbcode plugin that will let you post objects
¥
Hello!
So, today, I needed the embed tag. I now disabled the html checker. What are the risks of this?
Regards
Sopur
Sopur wrote:
Hello!
So, today, I needed the embed tag. I now disabled the html checker. What are the risks of this?
Regards
Sopur
Hi Sopur,
If you are the only blooger on your blog than the risks are minimal. Enabling the HTML checker has some benefits though.
To disable the html checker, crack open ../blogs/conf/_formatting.php and fine line 41-45 (or about):
# Html checking will validate posts and comments to a subset of valid XHTML.
# This will also do much cleaner security checking than the next option.
# Note: This option requires the PHP XML module. If your PHP installation doesn't have it
# disable html_checker and use security_checker.
$use_html_checker = 1;
and change to:
$use_html_checker = 0;
Good luck
tried substituting EMBED with the OBJECT example in this post. It is shown to be invalid. I decided to disable html spell checking - no harm will come of this since I'm the only one using the back-end.
Thank you - I also did it, and it works perfectly!
Regards
Sopur
Before:
<OBJECT id='OBJECT2' width="450" height="350"
classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'
type='application/x-oleobject'>
<param name='fileName' value='http://www.aseanmedia.net/Lists/Featured Video/Attachments/1/_c_malaysia festival_512k_stream.wmv'>
<param name='autoStart' value='1'>
<param name='ShowControls' value='1'>
<param name='ShowDisplay' value='0'>
<param name='ShowStatusBar' value='0'>
<EMBED type='application/x-mplayer2'
pluginspage='http://microsoft.com/windows/mediaplayer/ en/download/'
id='mediaPlayer' name='mediaPlayer' showcontrols='1' showdisplay='0' showstatusbar='0'
width="450" height="350"
src='http://www.aseanmedia.net/Lists/Featured Video/Attachments/1/_c_malaysia festival_512k_stream.wmv' autostart='1'>
</EMBED>
</OBJECT>
Since the EMBED element has been deprecated by the W3C (http://www.w3c.org) by HTML 4 (if I recall correctly), the use of EMBED to "embed" "objects" has lessen and all browsers since 2006 can render the OBJECT element.
Additionally, many browsers will render both the OBJECT and EMBED elements if you have both, thus you'll have two videos. The problem with the flash-video embeds like from YouTube is that when the idea was materialized, they chose to use the EMBED element for maximum compatibility, since during the alpha stages of such sites, the OBJECT element is not yet widely supported by the browsers. (In reality, the EMBED element is not even supported by all browsers :p )
Using the above example, you can shorten it to just:
<OBJECT id='OBJECT2' width="450" height="350"
classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'
type='application/x-oleobject'>
<param name='fileName' value='http://www.aseanmedia.net/Lists/Featured Video/Attachments/1/_c_malaysia festival_512k_stream.wmv'>
<param name='autoStart' value='1'>
<param name='ShowControls' value='1'>
<param name='ShowDisplay' value='0'>
<param name='ShowStatusBar' value='0'>
</OBJECT>
You can see a live sample here: http://asean.gameshogun.ws/12aseanculture/two-new-portals-about-the-asean-identity
Difference though is that I am using b2evo v2.0.x
Afwas wrote:
Hi Sopur,
If you are the only blooger on your blog than the risks are minimal. Enabling the HTML checker has some benefits though.
To disable the html checker, crack open ../blogs/conf/_formatting.php and fine line 41-45 (or about):
# Html checking will validate posts and comments to a subset of valid XHTML. # This will also do much cleaner security checking than the next option. # Note: This option requires the PHP XML module. If your PHP installation doesn't have it # disable html_checker and use security_checker. $use_html_checker = 1;
and change to:
$use_html_checker = 0;
Good luck
FANTASTIC! Thank you, I've been looking for a way to do this for ages!! Thanks much!
whoo wrote:
<object type="application/x-shockwave-flash" style="width:425px; height:350px;" data="http://www.youtube.com/v/lj3iNxZ8Dww"> <param name="movie" value="http://www.youtube.com/v/lj3iNxZ8Dww" /> </object>
is completely valid, and works.
Do you embed this in a PHP box??
just to summarize:
If you trust your bloggers, disabling the $use_html_checker is OK.
Right?
I'm really looking forward to being able to embed objects and movies and stuff...
hi all
where is $use_html_checker ???
I cannot find it in ../blogs/conf/_formatting.php
I'm using B2evo 2.4.0
Tv
Hi thanh,
It moved to the Dashboard. Look for Users -> SELECT A USERGROUP -> Blogging permissions. You need to select a group like 'Administrators', not single User.
Good luck
embed is deprecated - regardless of what crappy sites use it.
I can give you 10 ways to display objects without using it, and so can any google search. and guess what, they all display just fine in firefox/ie/safari/etc..