Jump to content


These Forums Are Now Read-Only


For TubePress support, please post a question here or open a support ticket and we will be glad to assist.


Photo

From widget, click through to play video on the video page


  • Please log in to reply
5 replies to this topic

#1 Kenny McNett

Kenny McNett

    Member

  • Members
  • PipPip
  • 17 posts

Posted 17 December 2012 - 04:34 PM

In the tubepress widget, I'd like for users to click the thumbnail and be taken to the full tubepress video page, where the video thumb they just clicked becomes the main video that will be played.

Test case site is www.alchemyregion.com

I'm using a hack for this now, but it will be erased whenever I update tubepress. Any solution that is update-proof?

Thanks,
Kenny

The hack is:

In the tubepress plugin folder, go to sys/ui/static/players/vimeo

Make backups, then edit two files:
vimeo.js
vimeo-dev.js

In "vimeo.js"...

Replace
{window.location="http://www.vimeo.com/"+h}

With
{window.location="http://alchemyregion.com/video/?auto=true&ID="+h}


In "vimeo-dev.js"...

Replace
window.location = 'http://www.vimeo.com/' + videoId;

With
window.location = 'http://alchemyregion.com/video/?auto=true&ID=' + videoId;

#2 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 20 December 2012 - 11:57 PM

Hi,

At the moment, no, there is no upgrade-proof solution for your modification (which by the way is clever). Feature requests are always welcome! Features with the most votes will be implemented first.

But in the meantime I would say that your fix is relatively easy to apply and at the moment it's the easiest solution to your need.

#3 Kenny McNett

Kenny McNett

    Member

  • Members
  • PipPip
  • 17 posts

Posted 28 December 2012 - 06:47 PM

Ok, thanks Eric.

#4 Kenny McNett

Kenny McNett

    Member

  • Members
  • PipPip
  • 17 posts

Posted 04 February 2013 - 02:24 PM

Update: in Tubepress Pro 3.0.0, the files to edit are in src/main/web/players/vimeo, but they are identical to the files used in 2.4.5 Pro

 

Full code:

Sidebar Widget

[tubepress thumbHeight='165' thumbWidth='112' resultsPerPage='4' playerLocation='vimeo' length="false" description="false" title="false"]

 

 

src/main/web/players/vimeo/vimeo-dev.js:

 

/**
 * Copyright 2006 - 2012 Eric D. Hough (http://ehough.com)
 * 
 * This file is part of TubePress (http://tubepress.org) and is released 
 * under the General Public License (GPL) version 3
 *
 * Shrink your JS: http://developer.yahoo.com/yui/compressor/
 */
var TubePressVimeoPlayer = (function () {
	
	/* this stuff helps compression */
	var events	= TubePressEvents,
		name	= 'vimeo',
		
		invoke = function (e, videoId, galleryId, width, height) {
			/*window.location = 'http://www.vimeo.com/' + videoId;*/
			window.location = 'http://yourdomain.com/path-to-video-gallery-page/?auto=true&ID=' + videoId;
		};

	jQuery(document).bind(events.PLAYER_INVOKE + name, invoke);
}());

 

 

src/main/web/players/vimeo/vimeo.js:

 

var TubePressVimeoPlayer=(function(){var c=TubePressEvents,b="vimeo",a=function(i,h,g,f,d){window.location="http://yourdomain.com/path-to-video-gallery-page/?auto=true&ID="+h};jQuery(document).bind(c.PLAYER_INVOKE+b,a)}());


#5 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 04 February 2013 - 08:11 PM

Thanks for updating your post!

 

Once we tackle Issue 321, TubePress will have first-class support for this kind of functionality. It's becoming more and more of a priority, so you shouldn't have to wait too long.



#6 BossLady

BossLady

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 06 March 2013 - 01:38 PM

Just a quick note to say "thanks" - this is a great "hack," it works perfectly, and I'd like to raise my hand to vote for this as part of the next update. New here, so if I've missed the right page to vote for this, so sorry, but I wanted to acknowledge Kenny McNett's quick fix and say thanks. Love Love Love this plugin!


  • eric likes this