flash weirdness

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
uptoeleven
Forum Members
Forum Members
Posts: 96
Joined: Sat Dec 04, 2004 10:30 pm
Location: London, England

flash weirdness

Post by uptoeleven »

Hi,

This is slightly OT as I can't work out if the problem is with TinyMCE or CMS. My suspicion is that it's to do with the way they're tied together.

When I add a flash movie in CMS instead of a movie, an image tag appears, thus:
Now from my reading of the source code it looks like the tag is supposed to get dynamically replaced but not only is this not happening, it's not throwing an error either (as far as I can see) - all that happens is when I view the page the image tag is still there as though I'd inserted an image.

I'm using Firefox 1.0 on Win XP but it also fails in IE 6.0

As I am not completely sure what is supposed to happen I don't know where to begin trying to trace the problem. Does anyone else experience the same?[/quote]
uptoeleven
Forum Members
Forum Members
Posts: 96
Joined: Sat Dec 04, 2004 10:30 pm
Location: London, England

that and the race conditions

Post by uptoeleven »

that and the race conditions which mean that if I post a lot of badly formed html (such as what comes out of Microsoft

Office) it doesn't always get to the database. Sloppy. Mind you maybe it's just that javascript isn't thread-safe
uptoeleven
Forum Members
Forum Members
Posts: 96
Joined: Sat Dec 04, 2004 10:30 pm
Location: London, England

flash weirdness

Post by uptoeleven »

This changes the image to the right path.

But it still doesn't fix the fact that there is no flash object being inserted.

Can anyone get it to work? Can you insert flash into your content using the flash insert in TinyMCE? If so, how?
Greg
Power Poster
Power Poster
Posts: 598
Joined: Sun Sep 26, 2004 6:15 pm
Location: Saskatchewan - Canada

flash weirdness

Post by Greg »

Hi

Wishy it looks like we need all the code in tintmce/modulefunctions.php at line 56:

Code: Select all

theme : "advanced",
theme_advanced_toolbar_location: "top",
verify_html: "false",
plugins : "advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,zoom,flash,ibrowser",
theme_advanced_buttons1_add : "fontselect,fontsizeselect,forecolor",
theme_advanced_buttons2_add_before: "cut,copy,paste,separator",
theme_advanced_buttons2_add : "separator,insertdate,inserttime,preview,zoom",
theme_advanced_buttons3_add : "emotions,iespell,flash,advhr,ibrowser",
plugin_insertdate_dateFormat : "%Y-%m-%d",
plugin_insertdate_timeFormat : "%H:%M:%S",
extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],font[face|size|color],hr[class|width|size|noshade]"
When I inserted this the flash module works correctly. This is the same code as the advanced example on the tinymce website.
Greg
uptoeleven
Forum Members
Forum Members
Posts: 96
Joined: Sat Dec 04, 2004 10:30 pm
Location: London, England

it works!!!

Post by uptoeleven »

Brill,

It works! Thanks very much!

Now I can go back to what I was doing before - making a clone of bulletmenu that can do this.
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

flash weirdness

Post by Ted »

I can't wait to see that...
Greg
Power Poster
Power Poster
Posts: 598
Joined: Sun Sep 26, 2004 6:15 pm
Location: Saskatchewan - Canada

flash weirdness

Post by Greg »

Here is a similar one that I run on some of my plain html sites
Go Here
Greg
uptoeleven
Forum Members
Forum Members
Posts: 96
Joined: Sat Dec 04, 2004 10:30 pm
Location: London, England

gave up

Post by uptoeleven »

it's a big nasty faff and taking far too much time. There are already solutions out there that do the same thing but don't need me to reinvent the wheel, I'll use Greg's solution.
Post Reply

Return to “Developers Discussion”