Buenas a todos, buscando por ahi he terminado de completar una modificacion para poder integrar los videos de Google Video y de YouTube en 4images:
Archivos a modificar:
template/details.htmlincludes/db_field_definitions.phpTambien se ha de modificar la Base de Datos.
http://www.4homepages.de/forum/index.php?action=dlattach;topic=13557.0;id=909-----------------------
Empezamos con la base de datos:
Subimos video_install.php al raiz de la web y lo ejecutamos
http://yoursite/video_install.phpVamos ahora con los archivos:
Abrimos db_field_definitions.php:y al final aņadimos: (antes de ?> )
$additional_image_fields['google_id'] = array($lang['google_video'], "text", 0);
$additional_image_fields['youtube_id'] = array($lang['youtube_video'], "text", 0);
Abrimos details.htmlDetras de {image} aņadimos
{if google_id}
<embed style="width:400px; height:326px;" id="VideoPlayback" align="middle" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docId={google_id}" allowScriptAccess="sameDomain" quality="best" bgcolor="#ffffff" scale="noScale" salign="TL" FlashVars="playerMode=embedded"> </embed>
{endif google_id}
{if youtube_id}
<object width="476" height="392"><param name="movie" value="http://www.youtube.com/v/{youtube_id}"></param><embed src="http://www.youtube.com/v/{youtube_id}" type="application/x-shockwave-flash" width="476" height="392"></embed></object>
{endif youtube_id}
en lang/spanish/main.php aņadimos al final:
$lang['google_video'] = "Google ID";
$lang['youtube_video'] = "YouTube ID";
------------------------------
Funcionamiento:De esta manera obtendremos estos resultados
http://www.misimagenes.net/details.php?image_id=992He aņadido los archivos IMAGEN y THUMBAIL como Attachs, para mayor facilidad
Saludos y espero que os parezca interesante esta modificacion. (siento ser un poco complicado explicandome)
www.misimagenes.net-------------------------------------------------------------------------------------------
Good to all, looking for that way I have finished completing a modification to be able to integrate the videos of Google Video and YouTube in 4images:
Archives to modify:
template/details.htmlincludes/db_field_definitions.phpAlso it is had to modify Base de Datos.
http://www.4homepages.de/forum/index.php?action=dlattach;topic=13557.0;id=909-----------------------
We began with the data base:
Upload video_install.php to your web site, and execute it.
http://yoursite/video_install.phpWe go now with the archives:
We opened db_field_definitions.php:and in the end we add before ?>
$additional_image_fields['google_id'] = array($lang['google_video'], "text", 0);
$additional_image_fields['youtube_id'] = array($lang['youtube_video'], "text", 0);
We opened details.htmlBehind {image} we added
{if google_id}
<embed style="width:400px; height:326px; "id="VideoPlayback" align="middle" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docId= {google_id}" allowScriptAccess="sameDomain" quality="best" bgcolor="#ffffff" scale="noScale" salign="TL" FlashVars="playerMode=embedded"> </embed>
{endif google_id}
{if youtube_id}
<object width="476" height="392"><param name="movie" value="http://www.youtube.com/v/{youtube_id}"></param><embed src="http://www.youtube.com/v/{youtube_id}" type="application/x-shockwave-flash" width="476" height="392" ></embed></object>
{endif youtube_id}
in lang/YOUR_LANGUAJE/main.php we added in the end:$lang['google_video']="Google ID";
$lang ['youtube_video']="YouTube ID";
------------------------------
Operation:This way we will obtain these
http://www.misimagenes.net/details.php?image_id=992 results
I have added to the archives IMAGE and THUMBAIL like Attachs, for greater facility
Greetings and I hope that this modification seems to you interesting. (I feel to be a little complicated explicandome)
www.misimagenes.net