1
Mkjones
Xootube Problems
  • 2013/1/20 20:34

  • Mkjones

  • Just popping in

  • Posts: 24

  • Since: 2009/7/29


Hi

I have a few sites using the Xootube module. Only noticed lately that the tags and favourites are no longer working. Video is still streaming which is the main thing I suppose. Obviously something has been changed with regard to the Youtube api. What these changes are I have no idea. Anyone up on this?

Regards
Mark

UPDATE
It appears tags and possibly favourites are no longer included in the api.

2
Mamba
Re: Xootube Problems
  • 2013/1/20 20:49

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


Quote:
I have a few sites using the Xootube module.

Please ALWAYS let us know:

- PHP version
- XOOPS Version
- your module version

and steps to reproduce, or screenshot.

Did you change anything lately?
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

3
Mkjones
Re: Xootube Problems
  • 2013/1/20 20:51

  • Mkjones

  • Just popping in

  • Posts: 24

  • Since: 2009/7/29


Quote:

Mamba wrote:
Quote:
I have a few sites using the Xootube module.

Please ALWAYS let us know:

- PHP version
- XOOPS Version
- your module version

and steps to reproduce, or screenshot.

Did you change anything lately?


Sorry!

I did a google search for youtube api and managed to find some info. I have updated the original post rather than delete it as it might help others.

4
Mkjones
Re: Xootube Problems
  • 2013/1/22 0:23

  • Mkjones

  • Just popping in

  • Posts: 24

  • Since: 2009/7/29


- PHP version = 5.3.3
- XOOPS Version = 2.5.4
- your module version = 2.3
site url: apet4life

I have now removed bits and pieces from the template files and fixed the first problem but I have another one now. The player is being loaded with the video title which is causing the wrong video to play at times if there are a number of videos with the same title. What I would like to do is use the video id instead. This would allow me to use different player code if I want to. I am not familiar with the youtube api so it isn't an easy fix for me. Anyone able to have a gander at the code?

Regards
Mark

5
Mkjones
Re: Xootube Problems
  • 2013/1/22 9:21

  • Mkjones

  • Just popping in

  • Posts: 24

  • Since: 2009/7/29


Managed to find a solution to this. I added this to the xootube index.php file:

$vidid $_GET['id'];
        
$str $vidid;
        
$str=str_replace('_player'''$str);
    
$xoopsTpl->assign('vidid'$str);

and then used <{$vidid}> instead of <{$title}> in the flashvars url in the xootube_player.html

The above makes the player search for the video id instead of the video title.

The embed player that Youtube uses can now be implemented instead of the player code that youtube reloaded is using (searches for playlists) by replacing the player code in the xootube_player.html with this:

<iframe width="<{$width}>" height="<{$height}>" src="http://www.youtube.com/embed/<{$vidid}>" frameborder="0" allowfullscreen></iframe>


Use the above in both instances of the player code.

6
Cesagonchu
Re: Xootube Problems

Thanks for your information

7
Mkjones
Re: Xootube Problems
  • 2013/1/25 21:53

  • Mkjones

  • Just popping in

  • Posts: 24

  • Since: 2009/7/29


Had to make a few more alterations:

1. altered the user.php file and added the same code under $id = $_GET['id']; which can be found at the top of the file. The code then should read like this:

$id $_GET['id'];
$vidid $_GET['id'];
$str $vidid;
$str=str_replace('_player'''$str);
$xoopsTpl->assign('vidid'$str);


2. the youtube player code found in xootube_user.html should then be removed and replaced with this:

<iframe width="<{$width}>" height="<{$height}>" src="http://www.youtube.com/embed/<{$vidid}>" frameborder="0" allowfullscreen></iframe>


3. sometimes certain tags fail to load and it causes an error message to screw up the graphics so I removed the error message from the langauge/english/main.php file. The entry should look like this once the error message is removed ( 3rd from top ):

define("_MD_XOOTUBE_NOTID","");


If you are using any other language then the same file in their respective directories need to be altered too.

8
hipoonios
Re: Xootube Problems
  • 2015/5/26 19:22

  • hipoonios

  • Friend of XOOPS

  • Posts: 298

  • Since: 2005/9/24


Noticed that this module has stopped working today :(

I think it has to do that Google has updated their Data-API.

See:http://youtube-eng.blogspot.se/2015/04/bye-bye-youtube-data-api-v2.html

9
Mamba
Re: Xootube Problems
  • 2015/5/27 4:00

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


Quote:
Noticed that this module has stopped working today :(

Can you define what you mean by "stopped working today"?

Also, as we always ask, can provide your PHP and XOOPS versions?

I just checked, and for me it works just fine:

http://westend-cincinnati.org/modules/xoopstube/

Does anybody else experience problems with XoopsTube module?

NB: you can help us with writing a tutorial for XoopsTube! :)
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

10
hipoonios
Re: Xootube Problems
  • 2015/5/27 4:24

  • hipoonios

  • Friend of XOOPS

  • Posts: 298

  • Since: 2005/9/24


That seem to be a different module.

xoopstube is not the same as the xootube.

The problem is that the module does not show any content anymore.

For example:

/modules/xootube/user.php?uname=google

"Failed to get the information"

Login

Who's Online

215 user(s) are online (130 user(s) are browsing Support Forums)


Members: 0


Guests: 215


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits