Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter bravenewniche

    (@bravenewniche)

    Finally getting back to finding an answer to this question.

    According to the Long Tail Video site, adding a plugin is as simple as changing the variables in the SWFobject, so perhaps I can try that in WordTube.

    Looking in wordtube.class.php, there’s a place to set the swfobject variables:

    // add all params & vars
    
    		$this->addParameter();
    
    		$this->ReturnLocation( $url );
    
    		$this->globalFlashVars();
    
    		$this->swfobject->add_flashvars( 'image', rawurlencode($image) );
    
    		$this->swfobject->add_flashvars( 'title', rawurlencode($this->media->name) );
    
    		$this->swfobject->add_flashvars( 'linktarget', '_self' );
    
    		$this->swfobject->add_flashvars( 'autostart', $autostart, 'false', 'bool');
    
    		$this->swfobject->add_attributes( 'id', 'WT'.$this->counter);
    
    		$this->swfobject->add_attributes( 'name', 'WT'.$this->counter);

    Will let you know how the experiment goes – I’m off to buy the Viral plugin licence.

    Thread Starter bravenewniche

    (@bravenewniche)

    Ok, had to get some money on the old credit card first… ??

    So having bought my licence, I tried this change to the wordtube.class.php file:

    $this->swfobject->add_attributes( 'id', 'WT'.$this->counter);
    
    		$this->swfobject->add_attributes( 'name', 'WT'.$this->counter);
    
    		// Modified to enable JWPlayer Viral plugin
    
    		$this->swfobject->add_flashvars( 'plugins', 'viral-1' );

    And it worked perfectly.

    You may not notice the Viral plugin at work until you look up in the top left hand corner of the video and you’ll see a little arrow which expands the choices for embedding, etc.

    Not keen on that as a user-interface, but it’s working!

    Thread Starter bravenewniche

    (@bravenewniche)

    ?? Well, the front-end is working great, but this change in the file has killed the admin interface, giving this error:

    Warning: Cannot modify header information - headers already sent by (output started at /public_html/wp-content/plugins/wordtube/lib/wordtube.class.php:795) in /public_html/wp-includes/pluggable.php on line 850

    When I put back the original wordtube.class.php file, it’s fine.

    Hmmm, back to the drawing board.

    Thread Starter bravenewniche

    (@bravenewniche)

    Ok, somehow when I worked on the wordtube.class.php an extra line got added below the ending tag of the php. Not sure how and I know enough about coding not to have added the space deliberately.

    Anyway, the plug is working fine and so is the admin!

    Just wanted to thank you right quick for taking the time to post all that even though no one was answering you or seemed interested.

    This is actually included in the settings menu of the newest Wordtube player- no code modifying required- just enter the name of the various plugins you’d like to use (separated by commas) into the Plugins section of the Media Player Tab. Flashvars can be entered in the field below- again, no code modifying required. Gotta love JW Player and Wordtube!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘WordTube – anyone added LongTail plugins?’ is closed to new replies.