1
tank1955
Video Tube - need some help troubleshooting
  • 2008/5/8 11:30

  • tank1955

  • Module Developer

  • Posts: 276

  • Since: 2007/9/7 1


There are several sites using Video Tube with no problem but have found two people who installed Video Tube and the index.php file displays only the footer and no videos. The fact that the footer "Powered by CVD" is displayed tells me the call to the smarty template is working but using debug modes shows no errors. Files involved are Video Tube v1.1 module and the version of XOOPS is 2.0.16

I am wondering if I have overlooked something in the way I employ the smarty template for displaying videos. Like maybe I did not consider certain site config settings that could affect module operation.

I would appreciate any help in resolving this issue.

2
tank1955
Re: Video Tube - need some help troubleshooting
  • 2008/5/9 1:59

  • tank1955

  • Module Developer

  • Posts: 276

  • Since: 2007/9/7 1


Here is what the code segment looks like at the beginning of the index page:

include_once '../../mainfile.php';
include_once XOOPS_ROOT_PATH."/header.php";
include 'include/functions.php';

global $xoopsOption, $xoopsDB, $xoopsUser, $xoopsConfig, $xoopsModuleConfig;

settype($vid,"integer");

$vid = intval($_GET['vid']);

$op ='';
$postnum ='';

if (isset($HTTP_GET_VARS['op'])) $op=$HTTP_GET_VARS['op'];
if (isset($HTTP_POST_VARS['op'])) $op=$HTTP_POST_VARS['op'];
$PHP_SELF = $_SERVER["PHP_SELF"];

And the segment where I assign the template:

// Designate Smarty template to be used

$xoopsOption['template_main'] = 'video_display.html';
include_once(XOOPS_ROOT_PATH."/header.php");

// Read Preferences configuration values

$vdispformat = $xoopsModuleConfig['videodisplayformat'];
$vautoplay = $xoopsModuleConfig['videoautoplay'];
$vdisporder = $xoopsModuleConfig['videodisplayorder'];
$vdispnumber = $xoopsModuleConfig['videodisplaynumber'];

My concern is that I may not be calling out the includes in such a way that it will work on all sites. Any suggestions on how to proceed?

3
tank1955
Re: Video Tube - need some help troubleshooting
  • 2008/5/9 22:19

  • tank1955

  • Module Developer

  • Posts: 276

  • Since: 2007/9/7 1


Well it seems that I made the problem much more complex than it really needed to be. The root cause was in the xoops_version file. Problem has been resolved.

Login

Who's Online

325 user(s) are online (259 user(s) are browsing Support Forums)


Members: 0


Guests: 325


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