splotch
Forum Replies Created
-
Can you post a link to a page with this issue so I can see what’s going on? If you’ve set the height and width correctly, the Flash file should be displaying correctly. I’ll need a closer look at the resulting html to see why it’s failing.
The
base
attribute “specifies the base directory or URL used to resolve all relative path statements in the SWF”. You can use the base attribute in the SwfObj shortcode as follows.[swfobj ... base="/base/directory"]
For more info on the available embed attributes see Adobe’s Flash OBJECT and EMBED tag attributes list.
Forum: Plugins
In reply to: swfobj plugin src attr bugBy the way, since you have figured out the problem, make sure to mark the thread as “Resolved”. Thanks.
Forum: Plugins
In reply to: swfobj plugin src attr bugHi saintist,
I understand now. Very glad you were able to track down the problem. And don’t worry about your English. You’ll only get better the more you use it. I can only speak English and Romanian, and my Romanian is not that great.
Forum: Plugins
In reply to: swfobj plugin src attr bugHi saintist,
Nice work in tracking down what is going on here. Unfortunately I can only control what my plugin does, not what others do to the content afterwards. I have no idea why that SEO pack would be adding in <p> tags randomly. Nor why text replace would be deleting all of your swf links.
Did the my_formatter function you added in your functions.php file resolve the issue, or are things still getting mangled by the other plugins?
Again, nice work in figuring out which plugins were breaking the functionality. I’m glad to know it wasn’t a bug in SwfObj.
Forum: Plugins
In reply to: swfobj plugin src attr bugThe gen11.swf should have shown up twice. Once in this line and once in the second object tag.
<param name="movie" value="" />
Very strange that the value there is empty and that it isn’t in the other line, but that all of the other attributes are set correctly. I have never seen the plugin do this before.
Can you list the other plugins that you have installed on your site as well?
You are very welcome.
If this fixed your problem, please mark the topic as “resolved”. If not, let me know and hopefully we can figure out what’s going on.Usually this is because, by default, Flash looks for the xml file in the same directory as the page it is embedded in. In WordPress, with fancy urls, the directory of the page doesn’t actually exist.
To get around this, most Flash galleries allow you to set a flashvar to define the actual path to the xml file. The particular variable varies depending on what Flash gallery you are using, so I can’t tell exactly what to set.
With SwfObj, you can add flashvars using the “flashvars” attribute. If the variable for your gallery happened to be
localpath
, then you would need to add the following to your swfobj shortcode.
[swfobj ... flashvars="localpath=/path/to/xmldir"]
Forum: Plugins
In reply to: [Plugin: SwfObj Plugin: for embedding Flash objects] wp_enqueue_scriptCorrected in the latest release. It’s been a looong time coming.
Forum: Plugins
In reply to: [Plugin: SwfObj] Alt Image appearing instead of .swfSame problem, just replace all of the double quotes (“) with single quotes (‘) inside the alt=”…” section. See my post above for an example.
I’m working on a new version of the plug-in that will let you put alt content in between swfobj tags because several people have complained about the current way of putting in alt content. Will update as soon as it’s complete.
Forum: Plugins
In reply to: SwfObj plugin not working on WP3 RC2I emailed Krun offline and found out the problem has been resolved. Here’s an excerpt from her email with the solution in case anyone has the same problem.
Problem Solved! I got desperate and downgraded the W.P. to 2.9.2 which I knew it worked in, then discovered it didn’t, which was very unsettling so I contacted my hosting company and they had a look and found a file permission error in the web folder! They amended the file permissions for me and the plugin now works, and in WP3 too. Might be worth mentioning to people to ensure their file permissions are set to the correct settings? It hadn’t occurred to me to check! I’ll know next time if it ever happens again!
Forum: Plugins
In reply to: [Plugin: SwfObj] Alt Image appearing instead of .swfThe problem is your use of double quotes inside the alt attribute. Double quotes should only be used at the beginning and end of the alt attribute. Everything inside it should use single quotes. If you switch to single quotes it should render correctly.
e.g.
[swfobj src="yourmovie.swf" alt="<img src='yourimage.jpg' width='229' height='448' alt='WordPress' />" width="229/448" id="wp" name="wp" class="wp" align="left" allowfullscreen="false" required_player_version="9.0"]
Forum: Plugins
In reply to: cant figure out allowscriptaccess paramiter for swfobject :(@spiglanin You are absolutely correct.
Thank you for tracking this down. I’ve made the fix in the swfobj.php code and resubmitted it to www.ads-software.com. The update should be available there soon.
Please contact me if you continue to have problems.
Forum: Plugins
In reply to: Need a How-To: Adding pages to 2.5 Media ManagerI’m in the process of putting together a series of tutorials on the WordPress media API. It took a lot of digging around in the code before I was able to find everything I needed to put together a plugin I was working on. Hopefully these articles will save other plugin developers some time.
Forum: Plugins
In reply to: Adding media typeFinally figured it out. For some reason typing my questions on this forum seems to expedite the process of finding the solution, whether or not someone replies.
After digging through the code, I realized that I needed to include the full mime type, not just ‘
flash
‘.Now Flash files show up correctly in the media library. Here’s a simplified snippet of the working code.
function modify_post_mime_types($post_mime_types) { $post_mime_types['application/x-shockwave-flash'] = array(__('Flash', 'swfobj'), __('Manage Flash', 'swfobj'), __ngettext_noop('Flash (%s)', 'Flash (%s)', 'swfobj')); return $post_mime_types; } add_filter('post_mime_types', 'modify_post_mime_types');