Morten Rand-Hendriksen
Forum Replies Created
-
Forum: Plugins
In reply to: Flash video only in single post viewjust a quick follow-up: it seems like this code kills the <!–more–> functionality leaving the full posts on the front page. I’m not 100% sure that this is the cause but I’m guessing it is. if so, how do I fix this so that I only get the content I want on the front?
Forum: Plugins
In reply to: Flash video only in single post viewStrike that. it shows an empty object box in IE. If I only insert the object replace it works in both IE and FireFox but leaves a blank line where the video should be. If I only insert the embed replace it leaves an empty object box in IE.
I know there is something wrong in my code, the question is what.
Forum: Plugins
In reply to: Flash video only in single post viewFantastic! I inserted this code in the index.php file and it works:
<?php $content = preg_replace('%<object.*<\/object>%smUi', '', $post->post_content); $content = preg_replace('%<embed.*<\/embed>%smUi', '', $post->post_content); echo apply_filters('the_content', $content); ?>thanks
Forum: Plugins
In reply to: Flash video only in single post viewKafkaesqui: What exactly does this do?
Here’s something for <embed>; replace the_content() in your template with:
<?php
$content = preg_replace(‘%<embed.*<\/embed>%smUi’, ”, $post->post_content);
echo apply_filters(‘the_content’, $content);
?>and do I replace it only in the single post template or globaly?
Forum: Plugins
In reply to: Flash video only in single post viewit’ll probably be html embedding. I tried the javascript option but it caused some weird problems. I can use either – whichever will allow what I want to do.