Recent Topics

1 Sep 12, 2009 19:45    

I had the same trouble in my 2.x install and now this one. It's probably user error, but I can't get any action from javascript entered directly into a post. In this case, I am using it for a 3rd party mp3 streamer.

My user privileges are set to allow everything. By contrast, if I add the same code to the free html widget, it works.... but I don't want this in the sidebar.

What I get is an empty post. :(

The code works fine in a regular html page. I've made sure its not a directory problem. It just doesn't seem to work.

Last time the fix was to use an object tag to call an html page, like an iframe, but that's not good enough a solution for this.

What's the dish?

2 Sep 12, 2009 21:13

mostmodernist_jenny wrote:

What's the dish?

tunafish :!:

So ... what does the code look like before you pop it into a post, and what does it look like when you "view source" on a page that this is supposed to be working but isn't? Therein probably lies the answer eh?

Also what happens if you turn off some of the renderers that are probably checked? Like auto-p comes to mind ... assuming auto-p exists in 3.whatever.

3 Sep 12, 2009 21:18

ITS SANDWICH TIME :!:

where are these renderers you speak of?

here's the code:

<script language="javascript" type="text/javascript" src="swfobject.js" ></script>

<script language="javascript" type="text/javascript">
var so = new SWFObject("flashmp3player.swf", "player", "600", "250", "9"); 
so.addParam("quality", "high");
so.addVariable("content_path", "mp3"); 
so.addVariable("color_path", "default.xml"); 
so.addVariable("script_path", "flashmp3player.php"); .
so.write("player");
</script>

4 Sep 12, 2009 23:23

So when you post something with that code in the post, then look at it like a visitor would, then right-click and do a view source how is it different? The theory here being that even though you enabled posting it MAYBE something b2evo is doing to it is making it bad. Like putting a <p> or a <br /> in the middle of it.

That'd be a renderer doing it's job ;)

When you post over on the right towards the bottom is a list of renderers. Like smilies and auto-p and maybe auto-links. Probably gotta be on expert instead of simple to see 'em ... assuming they're still there in v3. So now you can tell what changes between pasting in and viewing as a web page, then you can experiment with if it gets better when you turn some renderers off. I'm guessing one of the renderers is eating your script stuff. I'm guessing auto-p cuz it gets blamed for lots of weird stuff.

5 Sep 12, 2009 23:37

Unrelated to your javascript issue, but you may like to know a view source of mostmodernist, shows you seem to have a doubled up your html_header.inc.php info... doctype and head appears twice!!

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US"><!-- InstanceBegin template="/Templates/Standard.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta name="verify-v1" content="IZoWJO71Y2/OBIen+ymTb5ydcXlGb8KNGFLqVZiyTHQ=" >
<meta name="msvalidate.01" content="39A05B3F78C6BC63E1EFC80BFBE7C3D1" />
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />

	<base href="http://mostmodernist.com/blogjam/blogs/skins/A1/" />
	<meta name="description" content="" />
	<meta name="keywords" content="" />
	<meta name="generator" content="b2evolution 3.3.1" /> <!-- Please leave this for stats -->
	<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://mostmodernist.com/features/?tempskin=_rss2" />

	<link rel="alternate" type="application/atom+xml" title="Atom" href="http://mostmodernist.com/features/?tempskin=_atom" />
	<link rel="icon" type="image/gif" href="/mm_title.gif" />
</head>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
	<base href="http://mostmodernist.com/blogjam/blogs/skins/A1/" />
	etc etc etc

6 Sep 13, 2009 08:24

You have an error in your js and you're using deprecated attributes ;)

<script type="text/javascript" src="swfobject.js" ></script>

<script type="text/javascript">
var so = new SWFObject("flashmp3player.swf", "player", "600", "250", "9");
so.addParam("quality", "high");
so.addVariable("content_path", "mp3");
so.addVariable("color_path", "default.xml");
so.addVariable("script_path", "flashmp3player.php");
so.write("player");
</script>

¥

7 Sep 13, 2009 17:25

Wow YABS, whatever you did ALMOST did it! The box shows up at least... but not the tracks.

here's the [url=http://mostmodernist.com/lounge/]post page[/url]

and here's a [url=http://mostmodernist.com/blogjam/blogs/skins/A2/flashmp3player/flashmp3player.html]sample[/url] in working order.

and here's the source for the post page:

<script type="text/javascript" src="http://mostmodernist.com/blogjam/blogs/skins/A2/flashmp3player/swfobject.js"></script>
<div id="player">

<div id="player">
<h1>No flash player!</h1>
<p>It looks like you don't have flash player installed. <a href="http://www.macromedia.com/go/getflashplayer">Click here</a> to go to Macromedia download page.</p>

</div>
<script type="text/javascript">
var so = new SWFObject("http://mostmodernist.com/blogjam/blogs/skins/A2/flashmp3player/flashmp3player.swf", "player", "600", "250", "9");
so.addParam("quality", "high");
so.addVariable("content_path", "http://mostmodernist.com/blogjam/blogs/skins/A2/flashmp3player/mp3");
so.addVariable("color_path", "http://mostmodernist.com/blogjam/blogs/skins/A2/flashmp3player/default.xml");
so.addVariable("script_path", "http://mostmodernist.com/blogjam/blogs/skins/A2/flashmp3player/flashmp3player.php");
so.write("player");
</script>
Powered by <a href="http://www.flashmp3player.org">Flash MP3 Player</a></div>

8 Sep 14, 2009 08:41

<script type="text/javascript">
var so = new SWFObject("flashmp3player/flashmp3player.swf", "player", "600", "250", "9");
so.addParam("quality", "high");
so.addVariable("content_path", "mp3");
so.addVariable("color_path", "flashmp3player/default.xml");
so.addVariable("script_path", "flashmp3player/flashmp3player.php");
so.write("player");
</script>

¥


Form is loading...