to solve this code please help me
Hi
I wold like to aske you if this code is ok to insert in my template
-------------------------------------------------------------
preg_match("#http://(?:www\.)?video\.vzaar\.com/player\?docid=([\-0-9]+)#i", $url, $matches);
return '';
}
function vzaarOracle($url)
{
return (bool) preg_match("#http://(?:www\.)?vzaar\.com/threads/([a-z0-9]+)#i", $url);
}
function vzaar_media_player($url, $width, $height) {
$matches = array();
------------------------------------
thank you for helping
Charlie
my email is box@justblue.biz
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?Charlie - it is hard for me to tell from what I can see in your original post.
Our embed code is designed to sit comfortably inside most HTML templates. When you upload our video we give back to you the code and that should be enough to copy and paste into the template.
What CMS system are you using for your website templates?
Jamie -
Inappropriate?Hi Jami
I use a free wordpress theme from the Press75 (http://www.press75.com/the-vodpod-wor...) the problem is the embed from vzaar works well but, in the code they use a link form we just put the link like youtube (example: http://www.youtube.com/watch?v=_dmPch...) and they wor better with this template I will send you the original php with the code here you can see,
---------------------------------------------------------------------------------------------------
||||||||||||||||<?php /**
* Video URL ?> video embed code class.
*
* Author: James Lao <lao.zephyr@gmail.com>
* Date: February 2009
*/
class p75VideoEmbedder
{
var $width; // The width of the player.
var $height; // The height of the player.
var $videoPlayers; // The array of registered players.
/**
* Uses singleton design pattern to make sure the
* same instance of the class is returned every time.
* Use p75VideoEmbedder::getInstance() to get an
* instance of this class.
*/
function getInstance()
{
static $instance;
if ( !isset($instance) ) {
$c = __CLASS__;
$instance = new $c;
}
return $instance;
}
/**
* Sets the width of the video player.
*
* @param $width The width.
*/
function setWidth($width) {
$this->width = $width;
}
/**
* Sets the height of the video player.
*
* @param $height The height.
*/
function setHeight($height) {
$this->height = $height;
}
/**
* Registers a new video player. $oracle is a function
* that accepts a URL and returns TRUE if it is the
* player that should be used for the video and FALSE
* otherwise. $player is the function that generates the
* embed code from the URL. The signatures of the functions
* are as follows:
*
* myOracle($url)
* myPlayer($url, $width, $height)
*
* @param $oracle The oracle function callback.
* @param $player The player function callback.
*/
function registerPlayer($oracle, $player) {
$this->videoPlayers[] = array( 'oracle'=>$oracle, 'player'=>$player );
}
/**
* Generates the proper embed code.
* It loops through all the registered players, asking each
* oracle if its corresponding player should handle the
* video in question. It returns the first one
* that says yes.
*
* @param $url The video URL.
*/
function getEmbedCode($url)
{
foreach ( $this->videoPlayers as $id=>$player )
{
if ( call_user_func($player['oracle'], $url) )
return call_user_func($player['player'], $url, $this->width, $this->height);
}
}
function checkURL($url)
{
foreach ( $this->videoPlayers as $id=>$player )
{
if ( $player['oracle']($url) )
return true;
}
return false;
}
}
?>|||||||||||||||||||
thank you for help
charlie
--------------------------------------------------------------------------------------------- -
Inappropriate?Charlie,
If you are using Wordpress then can I suggest you follow our guide to adding video into their templates. It requires the downloading of their vidpod software (which is free).
http://vzaar.com/help/faq_embedding_q...
In order to add video to the your pages you require the use of a plug-in. Wordpress have teamed up with Vodpod to create a smart blogging video button that you can drag on to your tool bar. Here is how it works.
1. When you want to add video to your Wordpress blog simply click on the “post To Wordpress” widget in your toolbar and it will open up a pop up window offering you a set of fields with details on your blog.
2. If you do this on the vzaar page of your chosen video, Vodpod will automatically insert the video from your chosen vzaar page into the "Post Video To Your Blog" box. If not then...
3. Simply insert the video code into the top left field marked "Video Preview"
The company says
this answers the question
Loading Profile...


