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

Preventing anchor jump when clicking on video thumbnail link


  • Please log in to reply
9 replies to this topic

#1 Thomas Griffin

Thomas Griffin

    Newbie

  • Members
  • Pip
  • 8 posts

Posted 02 December 2010 - 06:16 PM

I posted this in a another thread, but I feel it should be here. I want to prevent the anchor jump that happens whenever you click on the video thumbnail. It is absolutely infuriating to have to deal with, and I don't know how to fix it. I've looked through the gallery.tpl.php code and can see why it anchor jumps, but I don't know how to fix it. Please advise me on how to fix this! So far I love TubePress Pro, and this is really the only drawback I have seen with the plugin so far. I would like to get this sorted out soon. Maybe there is a way to ajaxify this process?

Thanks,
Thomas

#2 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 03 December 2010 - 01:06 AM

You can simply edit tubepress/ui/lib/players/normal/normal.js. Comment out or delete the line that reads:

jQuery(embeddedTitleId)[0].scrollIntoView(true);
That should do it! Let us know. Thanks.

#3 Thomas Griffin

Thomas Griffin

    Newbie

  • Members
  • Pip
  • 8 posts

Posted 03 December 2010 - 02:02 AM

Eric, you are a genius, good sir! :)

Disabling that really enhances user experience with this plugin. I'm glad the solution was easy.

While I'm at it, I have another question. The videos I am using are in 16:9. However, even the HD thumbs that YT pulls are 4:3, which is incredibly lame. Does YT support 16:9 thumbs? If so, what is the script for it?

From what I've researched, they don't support it yet, but I could be wrong.

#4 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 03 December 2010 - 04:56 PM

YouTube only has 4:3 thumbnails as far as I know. They put in black bars when the video is a different scale :(

#5 Thomas Griffin

Thomas Griffin

    Newbie

  • Members
  • Pip
  • 8 posts

Posted 05 December 2010 - 04:29 PM

That's what I thought. :(

My next question then, is how do I go about manually adding image frames for the videos? The black bars look unprofessional, and I have 16:9 image frames ready to use. But, with the script, I'm not really sure how to add them in manually for each video. Is this possible? If so, how?

Also, is there a way to organize the videos in a specific order? Along with that, is there a way to setup a variable to always display a specific video first?

Thanks!

P.S. Eric, you've done an excellent job with this plugin. I haven't found another that comes close to matching yours! I appreciate your hard work and support. As another WP developer in training, this really means a lot!

#6 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 06 December 2010 - 07:36 PM

how do I go about manually adding image frames for the videos


This isn't really possible with the current version of TubePress. Feature requests are always welcome!

Also, is there a way to organize the videos in a specific order? Along with that, is there a way to setup a variable to always display a specific video first?


Yes to both, and they're both covered in the docs.

Eric, you've done an excellent job with this plugin. I haven't found another that comes close to matching yours! I appreciate your hard work and support. As another WP developer in training, this really means a lot!


Thanks ;)

#7 Sarah Stearns

Sarah Stearns

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 18 August 2011 - 12:23 PM

Hello,
How would I prevent anchor jump in 2.2.7?

#8 dan tamez

dan tamez

    Newbie

  • Members
  • Pip
  • 5 posts

Posted 09 September 2011 - 06:37 PM

I am also having some trouble turning off the anchor jump in the newer version of tubepress. Can you please tell us where we can tur of that function? Thanks!

#9 justin aziz

justin aziz

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 13 September 2011 - 03:38 PM

Doubt you guys are going to get any kind of timely response from the developer so I'll answer for him, in the same normal.js file (tubepress/sys/ui/static/players/normal), find the line that says scrollIntoView(true) and change it to scrollIntoView(false)

#10 dan tamez

dan tamez

    Newbie

  • Members
  • Pip
  • 5 posts

Posted 14 September 2011 - 02:21 PM

*EDIT*

It works! Thanks @jurixa :)