donc les raccourcis que tu done ne fonctionne pas plus que les miens... j'ai essayer sur un site de test, et c'est pareil... je n'arrive pas a comprendre son systeme de path... il compare ca a linux, mais ca na aucun rapport. tout le monde n'a pas un serveur
j'ai regarder un peu le template pour voir comment faire, mais je ne pense pas que ca soit la seule chose a modifier, en effet cela fait référence a <{$xstreamer_video.filepath}> qui doit etre utiliser dans un autre fichier que des template non?
je vais rechercher toutes ses occurences pour voir...
je me serais bien rapprocher de la version payante, mais leur site est indisponible
edit
<td class="head">File Path<br><small>Full path the the FLV video file.</small></td>
<td class="even">
<input name="filepath" id="filepath" size="60" maxlength="255" value="<{$xstreamer_video.filepath}>">
</td></tr>
filepath est cité peu de fois
function filePath() {
return $this->getVar('filepath');
}
function videoFileSize() {
return filesize($this->getVar('filepath'));
}
//more checks
if ($this->name() == '')
$this->setErrors('name','Video name is required.');
if (!file_exists($this->filePath()))
$this->setErrors('filepath','File not found at this location. Check file path and file permissions.');
if (!($this->categoryID() > 0))
$this->setErrors('category_id','Category is required');
}
function streamVideo($position=null) {
require_once(XSTREAMER_CLASS_PATH.'/video/video.php');
//
$hCommon =& getPSPModuleHandler('common');
//
if (!($position > 0)) {
$hThis =& getPSPModuleHandler('video');
$hThis->incrementPlayed($this);
}
//
$bandwidth = $hCommon->getModuleOption('bandwidthThrottleValue');
//
$video =& new Video();
$video->setFile($this->filePath());
$video->setBitrate($bandwidth*1024);
$video->enableThrottle($hCommon->getModuleOption('bandwidthThrottle') == 1);
$video->streamVideo($position);
}
}
class xStreamerVideo extends PSPBaseObject {
function xStreamerVideo($id = null) {
$this->initVar('id', XOBJ_DTYPE_INT, null, false);
$this->initVar('category_id', XOBJ_DTYPE_INT, null, false);
$this->initVar('name', XOBJ_DTYPE_TXTBOX, null, true, 255, '', 'Video Name');
$this->initVar('width', XOBJ_DTYPE_INT, null, false);
$this->initVar('height', XOBJ_DTYPE_INT, null, false);
$this->initVar('filepath', XOBJ_DTYPE_TXTBOX, null, true, 255, '', 'FLV File Path');
$this->initVar('description', XOBJ_DTYPE_TXTBOX, null, false, 64000);
$this->initVar('date_added', XOBJ_DTYPE_INT, null, true);
$this->initVar('rating', XOBJ_PSP_DTYPE_FLOAT, 0, false);
$this->initVar('views', XOBJ_DTYPE_INT, 0, false);
$this->initVar('votes', XOBJ_DTYPE_INT, 0, false);
$this->initVar('comments', XOBJ_DTYPE_INT, 0, false);
$this->initVar('visible', XOBJ_DTYPE_INT, 1, false);
//
if (isset($id)) {
if (is_array($id)) {
$this->assignVars($id);
}
} else {
$this->setNew();
}
et dans le fichier sql
`filepath` varchar(255) NOT NULL default '',
donc je remplace dans le template
<td class="even">
<input name="filepath" id="filepath" size="60" maxlength="255" [b]value="http://"[/b]>
mais pour les autres bout de code, je vois pas trop ce qu'il faire...