WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] WordTube - anyone added LongTail plugins? (7 posts)

  1. bravenewniche
    Member
    Posted 5 years ago #

    Liking WordTube a lot - wondering if anyone's had any success adding the Viral plug-in from LongTail.

    http://www.longtailvideo.com/addons/plugins/47/Viral?q=

    This plugin adds embedding/linking/recommending to the video player.

  2. bravenewniche
    Member
    Posted 5 years ago #

    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.

  3. bravenewniche
    Member
    Posted 5 years ago #

    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!

  4. bravenewniche
    Member
    Posted 5 years ago #

    :-( 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.

  5. bravenewniche
    Member
    Posted 5 years ago #

    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!

  6. ptvguy
    Member
    Posted 5 years ago #

    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.

  7. reeves31
    Member
    Posted 5 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.