What I want to do is have the search function for the flash filter detect if there is a number in the link. Then I could have the filter choose a different object/embed tag based on the number.
The idea is for a way to support multiple sizes of flash files in the filter.
So 1.swf would use an object/embed tag with width 150 height 120
filename2.swf would use 240x180
filename3.swf would use 320x240, and so on. Then it would be pretty easy to support different size flash files in a moodle site.
But I can't figure out where the variable for the swf file name is being generated in the filter. Echoing out $search = '/<a(.*?)href=\"(.*?)\.swf\"([^>]*)>(.*?)<\/a>/i'; doesn't get it, nor do other echos from the filter_mediaplugin_ignore_swf if statement.
So how does this if statement work? It would seem that it would simply check if the link name included a .swf, then include the filter, but echos within the link seem to show up throughout the site, in pages without any swfs in them??
Thanks for any help with the structure of this filter, if I can find where the filename is being generated, it should be pretty easy to add custom sizing for swf files.
PS I already tried entering the object/embed codes in code view. Unfortunatly MSIE breaks the tag when viewed in the editor, and I can hardly expect all my teachers to edit only Moz.