81
tank1955
Re: Requests to add more services to Video Tube
  • 2008/8/22 0:58

  • tank1955

  • Module Developer

  • Posts: 276

  • Since: 2007/9/7 1


I now have Daily Motion completely installed in Video Tube v1.63 and it works great. Building the parser for the RSS feed they provide required using SimpleXML which is only available in PHP5.

Since many of those who are currently using Video Tube are still operating on PHP4 I feel I should at least try to figure out if there is a way to duplicate SimpleXML in a class written for PHP4.

If I am unsuccessful then the next release will be modified so if the PHP version on the site is less than 5.0.0 then certain features, such as Daily Motion, will be unavailable.



82
tank1955
Re: Is PHP version query possible?
  • 2008/8/17 21:35

  • tank1955

  • Module Developer

  • Posts: 276

  • Since: 2007/9/7 1


Thanks, Bandit. I didn't realize it was that simple. Not sure how I overlooked that when I was searching. Your assistance is very much appreciated.



83
tank1955
Is PHP version query possible?
  • 2008/8/17 4:42

  • tank1955

  • Module Developer

  • Posts: 276

  • Since: 2007/9/7 1


Was wondering if there is anyway to acquire the current site's PHP version from within a module. Some of my Video Tube module functions, in the next release, are going to require PHP5 and it would be great if I could automatically disable the functions if an older version of PHP is detected.



84
tank1955
Re: Requests to add more services to Video Tube
  • 2008/8/16 12:52

  • tank1955

  • Module Developer

  • Posts: 276

  • Since: 2007/9/7 1


I have been trying to add dailymotion videos to Video Tube as a trial and I am finding the addition of any services beyond YouTube is going to be quite challenging.

Some elements in the search result feed do not exist such as total search results.

Another problem is the RSS feed is in a format called MRSS (MediaRSS) which has some unique characteristics. To access all the info in the search result feed may require us to build our own RSS parser for the module. Existing parsers such as MagpieRSS do not fully support MRSS.

In building our own parser it may become a requirement to have PHP5 to use Video Tube 2.0 and higher.

More to come.



85
tank1955
Requests to add more services to Video Tube
  • 2008/8/12 1:35

  • tank1955

  • Module Developer

  • Posts: 276

  • Since: 2007/9/7 1


Many have asked if Video Tube can provide access to other video services besides YouTube. One of my primary concerns was I did not want to require the module user to have to sign up for any kind of special accounts to access API's, get a developer key and authentication code and so on.

What I have found so far is I believe I can access videos via RSS feed from dailymotion, metacafe and revver. The extent of how much content I can acquire from these sites will remain to be seen when I start development.

I did get some feedback from blip.tv who offer an API and the search results can be retrieved as a JSON feed similar to YouTube.

Once I have completed the current development and released Video Tube v1.7 I will begin working on the addition of other video services.



86
tank1955
Re: Need some help with OnUpdate in xoops_version.php
  • 2008/7/28 0:31

  • tank1955

  • Module Developer

  • Posts: 276

  • Since: 2007/9/7 1


Thx bandit. After reviewing how it was employed in CBB 3.08 this answered all of my questions.



87
tank1955
Need some help with OnUpdate in xoops_version.php
  • 2008/7/25 2:58

  • tank1955

  • Module Developer

  • Posts: 276

  • Since: 2007/9/7 1


I am preparing release of Video Tube version 1.6 and have completed all tasks except for the need to create an additional MySQL table for categories when the user is upgrading from a previous version of Video Tube. I tried using the OnUpdate function in the xoops_version file. When I performed the module update the software did call the function I defined but there was a problem with the parameters I passed to the function. Could anyone identify a good example of this feature I could review? Thanks in advance for any help you can provide.



88
tank1955
Re: Video Tube - need help accessing globals in admin/index.php
  • 2008/6/12 1:13

  • tank1955

  • Module Developer

  • Posts: 276

  • Since: 2007/9/7 1


Thanks for the suggestion Urban. I will be adding a video player block in version 1.6 in which you will be able to select Featured, Random, Latest or Most Viewed Video. Version 1.6 should be ready mid July 2008.



89
tank1955
Re: Video Tube - need help accessing globals in admin/index.php
  • 2008/6/10 2:13

  • tank1955

  • Module Developer

  • Posts: 276

  • Since: 2007/9/7 1


Right after I posed the question here I managed to locate the answer in the FAQ's. For those interested here is the code that solved my problem.

$module_handler =& xoops_gethandler('module');
$module         =& $module_handler->getByDirname('videotube');
$config_handler =& xoops_gethandler('config');
$moduleConfig   =& $config_handler->getConfigsByCat(0$module->getVar('mid'));

$vusecats $moduleConfig['videousecats'];
if (
$vusecats) {
  
$numcolumns 9;  
}else{  
  
$numcolumns 8;
}



90
tank1955
Video Tube - need help accessing globals in admin/index.php
  • 2008/6/10 1:33

  • tank1955

  • Module Developer

  • Posts: 276

  • Since: 2007/9/7 1


I am developing my next version (1.6) of Video Tube module and have hit a roadblock I can't figure out. I don't seem to be able to access the $xoopsModuleConfig global in admin/index.php file.

//admin/index.php excerpt
include_once("admin_header.php");

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

$vusecats $xoopsModuleConfig['videousecats'];
if (
$vusecats) {
  
$numcolumns 9;  
}else{  
  
$numcolumns 8;
}


$vusecats returns a '0' but it should be '1'. xoopsModuleConfig['videousecats'] is working in all of my other files, just not in the admin/index.php file.

//admin/adminheader.php excerpt
include_once '../../../mainfile.php';
include_once 
XOOPS_ROOT_PATH."/header.php";
include_once 
XOOPS_ROOT_PATH."/class/xoopsmodule.php";
include_once 
XOOPS_ROOT_PATH."/include/cp_functions.php";

if (
$xoopsUser) {
  
$xoopsModule XoopsModule::getByDirname("videotube");
  if ( !
$xoopsUser->isAdmin($xoopsModule->mid()) ) { 
    
redirect_header(XOOPS_URL."/",3,_NOPERM);;
    exit();
  }
} else {
  
redirect_header(XOOPS_URL."/",3,_NOPERM);
  exit();
}


I know I must be overlooking something.

I am working with XOOPS 2.0.16

//snippets from xoops_version.php
// Admin things
$modversion['hasAdmin'] = 1;
$modversion['adminindex'] = "admin/index.php";
$modversion['adminmenu'] = "admin/menu.php";

$modversion['config'][13]['name'] = 'videousecats';
$modversion['config'][13]['title'] = '_MI_VP_VCATEGORIESENABLE';
$modversion['config'][13]['description'] = '_MI_VP_VCATEGORIESENABLEDSC';
$modversion['config'][13]['formtype'] = 'yesno';
$modversion['config'][13]['valuetype'] = 'int';
$modversion['config'][13]['default'] = 0;


Any suggestions?




TopTop
« 1 ... 6 7 8 (9) 10 11 »



Login

Who's Online

217 user(s) are online (137 user(s) are browsing Support Forums)


Members: 0


Guests: 217


more...

Donat-O-Meter

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

Latest GitHub Commits