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

Players Are Not Working, Pagination Too


Best Answer Aïkido Rosheim, 18 February 2013 - 04:52 PM

Fantastic ! 

It' all working now. 

Great job and thanks for your efficiciency.

I'll rate this plugin 5 stars !

 

Just another question : is it possible to insert some content in the pop up window (for example share buttons code ?)

 

Thanks a lot !

Go to the full post


  • Please log in to reply
5 replies to this topic

#1 Aïkido Rosheim

Aïkido Rosheim

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 17 February 2013 - 02:44 AM

Hello, 

 

And first thanks for your plugin it offers real great possibilities.

 

Problem is that it is not working properly on my site.

 

Here's my videos page : http://aikidorosheim.com/actu/

 

For example, pop up is not loading anything, idem for the player when you click on the thumbnails (bottom of this page).

Its the same thing with the others players (except "statically")

 

And when i clik on pagination, for exemple page 2, all thumbnails disappear.

 

What can i do ? because it is impossible for me to deactivate other jquery versions.

 

Thanks for your answer.



#2 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 17 February 2013 - 09:48 PM

Hi,
 
I believe this may be a bug in TubePress 3.0.0. Please try the following fix. Open up

wp-content/plugins/tubepress/src/main/php/scripts/ajaxEndpoint.php

with your favorite text editor and change line 27 from

include dirname(__FILE__) . '/../../../../../../../wp-blog-header.php';

to

include substr(__FILE__, 0, strpos(__FILE__, 'wp-content/plugins/')) . 'wp-blog-header.php';

Hopefully that will fix the problem. Could you give it a try and let us know? Thanks!



#3 Aïkido Rosheim

Aïkido Rosheim

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 18 February 2013 - 04:32 AM

Hi Eric, 

 

I made the change but it's still the same.



#4 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 18 February 2013 - 12:27 PM

Hi,
 
It's actually looking better. You're about 95% fixed, but from what I can tell there is an extra character in ajaxEndpoint.php that is confusing the rest of TubePress. Some PHP files are extremely sensitive to extra whitespace, and I'm guessing that during your edit you had inadvertently introduced some extra whitespace.
 
To fix this, please ensure that the contents of

wp-content/plugins/tubepress/src/main/php/scripts/ajaxEndpoint.php

match exactly the contents of this file. Here are the contents, for your convenience:

<?php
/**
 * Copyright 2006 - 2013 TubePress LLC (http://tubepress.org)
 *
 * This file is part of TubePress (http://tubepress.org)
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */

/*
 * WordPress stubbornly will not load except from the global scope.
 */
if (strpos(realpath(__FILE__), 'wp-content' . DIRECTORY_SEPARATOR . 'plugins') !== false) {

    include substr(__FILE__, 0, strpos(__FILE__, 'wp-content/plugins/')) . 'wp-blog-header.php';
}

/**
 * Boot tubepress.
 */
require 'boot.php';

/**
 * Hand off the request to the Ajax handler.
 */
tubepress_impl_patterns_sl_ServiceLocator::getAjaxHandler()->handle();

The biggest thing to be careful of is that the "<?php" is on the very first line of the file, with no extra whitespace before it.

 

This fix will go out with TubePress 3.0.1, so this will be the last time you'll need to edit this file. Let us know. Thanks!



#5 Aïkido Rosheim

Aïkido Rosheim

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 18 February 2013 - 04:52 PM   Best Answer

Fantastic ! 

It' all working now. 

Great job and thanks for your efficiciency.

I'll rate this plugin 5 stars !

 

Just another question : is it possible to insert some content in the pop up window (for example share buttons code ?)

 

Thanks a lot !



#6 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 18 February 2013 - 08:10 PM

is it possible to insert some content in the pop up window (for example share buttons code ?)

 

You can add HTML by creating and activating a custom TubePress theme. In particular, you'll want to edit your theme's copy of players/normal.tpl.php.