11
Mamba
Re: Xoopstubes: integrating the embed
  • 2013/7/23 11:34

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


I am not sure what are you trying to achieve with it? What do you need it for? It seems like you're missing the $vidid variable. If you look at the function:
function xtubeShowVideo($vidid$source$screenshot$picurl)
in singlevideo.php you're passing to it following values, incl. the $video_arr['vidid']:
$video['showvideo'] = xtubeShowVideo(
    
$video_arr['vidid'],
    
$video_arr['vidsource'],
    
$video_arr['screenshot'],
    
$video_arr['picurl']
);
and are receiving back the "$vidid" included:
'. [color=FF0000]$vidid[/color] . '&autoplay='
                         
$autoplay '&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="295">';
If you're using the same function, but the Video Code is missing in the return, then it seems like you didn't submit it to the function in the first place. So make sure that the value $video_arr['vidid'] is being submitted to the function correctly.
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

12
tatane
Re: Xoopstubes: integrating the embed
  • 2013/7/23 12:22

  • tatane

  • Just can't stay away

  • Posts: 649

  • Since: 2008/5/6 1


Quote:

Mamba wrote:
I am not sure what are you trying to achieve with it? What do you need it for?


I want all simply display the video on the pages viewcat.php?cid=

For this I need the embed code that is on the page singlevideo.php?cid=x&lid=x ( this smarty <{$video.showvideo}>)

Do you understand?

13
tatane
Re: Xoopstubes: integrating the embed
  • 2013/7/23 15:57

  • tatane

  • Just can't stay away

  • Posts: 649

  • Since: 2008/5/6 1


I managed, I replaced

// Show links
if ($count 0) {
    
$moderate 0;
    while (
$video_arr $xoopsDB->fetchArray($result)) {
        if (
xtube_checkgroups($video_arr['cid']) == true) {
            require 
XOOPS_ROOT_PATH '/modules/' $xoopsModule->getVar('dirname') . '/include/videoloadinfo.php';
            
$xoopsTpl->append('video'$video);
            }
        }


by

// Show links
if ($count 0) {
    
$moderate 0;
    while (
$video_arr $xoopsDB->fetchArray($result)) {
        if (
xtube_checkgroups($video_arr['cid']) == true) {
            require 
XOOPS_ROOT_PATH '/modules/' $xoopsModule->getVar('dirname') . '/include/videoloadinfo.php';
            
$video['vidid']        = $video_arr['vidid'];
            
$video['showvideo'] = xtube_showvideo($video_arr['vidid'], $video_arr['vidsource'], $video_arr['screenshot'], $video_arr['picurl']);
            
$xoopsTpl->append('video'$video);
           }
    }


But I have another problem I'll open a new post

14
timgno
Re: Xoopstubes: integrating the embed
  • 2013/7/23 16:53

  • timgno

  • Module Developer

  • Posts: 1504

  • Since: 2007/6/21


This module will be rebuilt, even in the prospect of seeing him xoops 2.6.0

Login

Who's Online

270 user(s) are online (186 user(s) are browsing Support Forums)


Members: 0


Guests: 270


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