rkstar
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
daburna, the ISeeIt.TV service has undergone a name change, can you swap out the code above with this code below please? Basically it’s just a rename of ISEEIT to VODIFY.
// Vodify Code define("VODIFY_WIDTH", 960); define("VODIFY_HEIGHT", 380); define("VODIFY_REGEXP", "/\[vodify (:print:+)\]/"); define("VODIFY_TARGET", "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\"###WIDTH###\" height=\"###HEIGHT###\"><param name=\"movie\" value=\"http://www.vodify.me/video/###URL###\" /><param name=\"allowFullScreen\" value=\"true\" /><embed src=\"http://www.vodify.me/video/###URL###\" width=\"###WIDTH###\" height=\"###HEIGHT###\" allowFullScreen=\"true\" type=\"application/x-shockwave-flash\" /></object>"); function vodify_plugin_callback( $match ) { $tag_parts = explode(" ", rtrim($match[0], "]")); $output = VODIFY_TARGET; $output = str_replace("###URL###", $tag_parts[1], $output); if (count($tag_parts) > 2) { if ($tag_parts[2] == 0) { $output = str_replace("###WIDTH###", VODIFY_WIDTH, $output); } else { $output = str_replace("###WIDTH###", $tag_parts[2], $output); } if ($tag_parts[3] == 0) { $output = str_replace("###HEIGHT###", VODIFY_HEIGHT, $output); } else { $output = str_replace("###HEIGHT###", $tag_parts[3], $output); } } else { $output = str_replace("###WIDTH###", VODIFY_WIDTH, $output); $output = str_replace("###HEIGHT###", VODIFY_HEIGHT, $output); } return ($output); } function vodify_plugin( $content ) { return (preg_replace_callback(VODIFY_REGEXP, 'vodify_plugin_callback', $content)); } add_filter('the_content', 'vodify_plugin'); add_filter('the_content_rss', 'vodify_plugin'); add_filter('comment_text', 'vodify_plugin'); add_filter('the_excerpt', 'vodify_plugin');thanks!
awesome! yes, i’m the same guy. 🙂 thanks daburna.
i figured out how to do this:
first, i have a search.php page that determines which template to use based on query string vars.
next, i called the related_posts() func with my own set of opts:
$opts = array( "paged" => 1, "posts_per_page"=> 4, "template_file" => "yarpp-template-search-teachings.php" ); related_posts($opts, true, $post_id);i also made a couple of mods to the yarpp_related() func inside magic.php to deal with my “paged” and “posts_per_page” vars i’m sending.
i get back all the data i need!
Viewing 3 replies - 1 through 3 (of 3 total)