1
tatane
Xoopstubes: integrating the embed
  • 2013/7/22 10:30

  • tatane

  • Just can't stay away

  • Posts: 649

  • Since: 2008/5/6 1


Hello
In Module XoopsTubes 1.06 ago on the page singlevideo.php?cid= a smarty that provides the video embed code.
Resized Image


I would also use this smarty to page viewcat.php?cid=

Resized Image


but it is not present in the php file. How to add?

Thank you

2
timgno
Re: Xoopstubes: integrating the embed
  • 2013/7/22 12:45

  • timgno

  • Module Developer

  • Posts: 1504

  • Since: 2007/6/21


You can use a xtubeShowVideo(); function added in include/videos.php for all uses.

Look this:

// Get video from source
$video['showvideo'] = xtubeShowVideo(
    
$video_arr['vidid'],
    
$video_arr['vidsource'],
    
$video_arr['screenshot'],
    
$video_arr['picurl']
);


in file singlevideo.php

3
tatane
Re: Xoopstubes: integrating the embed
  • 2013/7/22 13:20

  • tatane

  • Just can't stay away

  • Posts: 649

  • Since: 2008/5/6 1


I added this function to viewcat.php as mentioned but i get this error

Aucun Tout Erreur(s) (0) Deprécié(s) (1) Requête(s) (30) Bloc(s) (3) Extra (2) Temporisation(5)
Deprécié(s)
Class 'XoopsTree' is deprecated, check 'XoopsObjectTree' in tree.php


I tried

// Get video from source $video['showvideo'] = xtube_showvideo($video_arr['vidid'], $video_arr['vidsource'], $video_arr['screenshot'], $video_arr['picurl']);
in viewcat.php but This brings me
<embed src="http://www.youtube.com/v/&autoplay=0&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="295">embed>


instead of

<embed src="http://www.youtube.com/v/[color=CC0000]xxxxxxx[/color]&autoplay=0&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="295">embed>

4
Mamba
Re: Xoopstubes: integrating the embed
  • 2013/7/22 14:19

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


As long as it is working for you, you can ignore the "Deprecated" error. This is info only for developers.
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

5
tatane
Re: Xoopstubes: integrating the embed
  • 2013/7/22 14:21

  • tatane

  • Just can't stay away

  • Posts: 649

  • Since: 2008/5/6 1


Quote:

Mamba wrote:
As long as it is working for you, you can ignore the "Deprecated" error. This is info only for developers.


No ! Is not work !

Resized Image

6
timgno
Re: Xoopstubes: integrating the embed
  • 2013/7/22 19:56

  • timgno

  • Module Developer

  • Posts: 1504

  • Since: 2007/6/21


In place of XoopsTree, use XoopsObjectTree

In place of:
include XOOPS_ROOT_PATH"/class/xoopstree.php";


use:
include XOOPS_ROOT_PATH"/class/tree.php";

7
Mamba
Re: Xoopstubes: integrating the embed
  • 2013/7/22 20:42

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


You can not just replace xoopstree.php with tree.php. These are two different classes to use.
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

8
timgno
Re: Xoopstubes: integrating the embed
  • 2013/7/22 20:47

  • timgno

  • Module Developer

  • Posts: 1504

  • Since: 2007/6/21


Is true because there are different functions, but at least it solves the problem of errors in the files.

We should create sub-classes for each module and extend this.


9
Mamba
Re: Xoopstubes: integrating the embed
  • 2013/7/22 20:53

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


"Deprecated" notices are NOT errors!

The "deprecated" notices are just notices for the developers that the particular class won't be used in the future and it will disappear, and they need to rewrite their modules to accommodate that.

I'll take care of it in the future version of XoopsTube...
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

10
tatane
Re: Xoopstubes: integrating the embed
  • 2013/7/23 7:27

  • tatane

  • Just can't stay away

  • Posts: 649

  • Since: 2008/5/6 1


What I need to add then?

Login

Who's Online

287 user(s) are online (213 user(s) are browsing Support Forums)


Members: 0


Guests: 287


more...

Donat-O-Meter

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

Latest GitHub Commits